• Resolved Frontliner

    (@frontliner)


    Hey there,

    thanks for a really nice + simple plugin. I installed it a few weeks ago and just connected a customer’s google calendar to it. Works really well.

    What I’m trying to achieve is to use my own shortcode in the feed display code. I just registered my shortcode in the file functions.php and on other pages it’s working just like it should. But when I’m using it in my feed code, the shortcode is just displayed as raw text.

    Is there any way or workaround so my shortcode can be used?

    (Furthermore my final goal is to get the last character/token of the event title – which is always a number – to generate a link to a detail site. My intention is to write a shortcode which gets [event-title] as passed variable and then returns the final link / or link-url).

    Maybe there’s in easier way for what I’m trying to approach?

    https://ww.wp.xz.cn/plugins/google-calendar-events/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Nick Young

    (@nickyoung87)

    I would start by checking here to see if any of these look like what you are trying to achieve:

    http://wpdocs.philderksen.com/google-calendar-events/event-builder/

    Thread Starter Frontliner

    (@frontliner)

    Hey Nick and thanks for your reply. Compliment for the awesome plugin!

    Cool to see even more shortcodes (supplied by the plugin) which i can use for further tweaking of my calendar.

    Unfortunately I’m not able to use one of these for the first stated problem (getting the last character/token of the event’s title).

    My current workaround: write the single number in the event’s description to generate the link.

    Example:

    Event in google calendar

    Event title: “My neat Event 12”
    Description: “12”

    Feed display markup

    [...]
    <div><a href="http://www.my-domain.com/my-topics/topic-number-[description]/">Go to topic</a></div>
    [...]

    Maybe you have another clue for me?

    Plugin Contributor Nick Young

    (@nickyoung87)

    Ok I didn’t really see what you were going for at first, but now it is all clear to me. However, at this time there is not something that I can think of that we have to be able to do this. What you would need is a filter to modify the value and return it. Unforunately, we haven’t gotten all the filters set in place yet but it is definitely something we are working on.

    Sorry about that!

    Thread Starter Frontliner

    (@frontliner)

    Hey Nick,

    thanks for your explanation. At least I now know that there isn’t some sort of feature that I’m missing. And yes, I tried to use a variety of shortcodes in the feed display code and finally implemented my own – but with no luck.

    I’m looking forward to shortcode integration – or some simple hook/filter to use for my issue. Til’ then I will just stick with my workaround.

    Best regards from Germany!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Own Shortcodes in feed display code’ is closed to new replies.