• Resolved christumc

    (@christumc)


    I’m using the upcoming event shortcode in a widget on the front page of our website. Some of these events have a url rather than a typical event listing on the calendar.

    Those urls are working fine from the main calendar and shortcode until I click on the “read more” tag on the front page widget. The “read more” link takes me to the calendar’s event detail page and not to the url stipulated when the event was created.

    The upcoming events widget is located here…

    http://www.christumcmarietta.org/

    https://wordpress.org/plugins/my-calendar/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    If you want a link to the URL you entered for the event, you need to use the {link_title} or {linking_title} template tag. It looks like you’re currently using the {details} template tag, which only links to the events details page. Take a look at the list of template tags on the Help screen for details on the difference between tags.

    Thread Starter christumc

    (@christumc)

    Sorry to be so long in replying, I had other work issues come up and had to set this aside.

    Is there a way to publish an excerpt with the “read more” link pointing to url rather than the calendar?

    I am using {linking_title} as the event’s title and it does work as you describe, but I would also like the “read more” and the thumbnail to link to the url as well.

    I have read through the shortcodes and the manual and am not seeing a way.

    Thank you for your help.

    Thread Starter christumc

    (@christumc)

    This is a copy of the shortcode and styling that I’m using…

    [my_calendar_upcoming ltype=”event_region” lvalue=”Featured” template='{date before=”<div>” after=”</div>”}<div class=”thumbscale”>{thumbnail before=”” after=”“}</div><h3>{linking_title} – {time}</h3><div class=”upcomingtxt”>{excerpt}{details}</div>’ before=”0″ after=”3″ type=”event” order=”asc”]

    Thread Starter christumc

    (@christumc)

    Update. A little creative thinking took care of the thumbnail issue. I used {link_image} and for those events that didn’t have a url, I substituted the actual calendar event link.

    That leaves me with the “read more”…

    Thread Starter christumc

    (@christumc)

    Update #2. I used the {linking} with before and after to sandwich it in the tag. And it worked!

    Thanks for letting me brainstorm publicly. I’m including my “short”code incase it helps someone else.

    [my_calendar_upcoming ltype=”event_region” lvalue=”Featured” template='{date before=”<div>” after=”</div>”}<div class=”thumbscale”>{link_image}</div><h3>{linking_title} – {time}</h3><div class=”upcomingtxt”>{excerpt}{linking before=”Read More“}</div>’ before=”0″ after=”3″ type=”event” order=”asc”]

    Plugin Author Joe Dolson

    (@joedolson)

    Glad you were able to figure it out on your own! I always find that more satisfying, in the end. 🙂

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

The topic ‘Read More in Upcoming Events shortcode’ is closed to new replies.