Home › Forums › Calendar Products › Events Calendar PRO › List view breaking links
- This topic has 8 replies, 3 voices, and was last updated 9 years, 9 months ago by
Geoff.
-
AuthorPosts
-
December 3, 2015 at 10:50 am #1034876
Justin
ParticipantHello,
We have encountered a critical issue: the ‘List’ view of our calendar is stripping out our ‘Book Here’ links.
Here is a screenshot of how the link/button appears on the event page, and how it appears from within the calendar list view: http://london-meditation.co.uk/troubleshooting/calendar-book-links.png
Not only is it stripping out the HTML, but it is stripping out the link entirely.
Could you please help sort out this issue?
December 4, 2015 at 8:25 am #1035560Josh
ParticipantHey Justin,
Thanks for reaching out to us!
To start, how is the button being added to the page? Is it being added to the content of the event description? If so, is it being added with inline code or is it being added via a shortcode?
Thanks!
December 4, 2015 at 9:38 am #1035604Justin
ParticipantHello,
The buttons are being added by a shortcode as this is the only way for regular organizational staff (non-developers) to be able to add buttons.
Does that mean that we are simply out of luck? Shortcodes will work on the individual event pages but will not work within the calendar list view?
December 7, 2015 at 7:48 pm #1037291Josh
ParticipantHey Justin,
No problem, shortcodes are currently being filtered out however we can adjust that with a little snippet to allow them to work in your archive views again.
add_filter( 'tribe_events_excerpt_allow_shortcode', 'mysite_allow_shortcode' ); function mysite_allow_shortcode() { return true; }You can add the above snippet to your theme’s functions file to allow for shortcodes to show again within your excerpts.
Let me know if this helps.
Thanks!
December 9, 2015 at 3:30 am #1038024Justin
ParticipantThis reply is private.
December 10, 2015 at 8:40 am #1038924Josh
ParticipantHey Justin,
Thanks for following up with us here.
It looks like this is currently a bug with the display of shortcodes in those excerpts. I’ve logged an internal ticket for this issue and you’ll be notified here as we make progress on this issue.
In the meantime, you can get around this issue by modifying a core plugin file by changing the Events Calendar > src > functions > template-tags > general.php on line #1322 to:
return wpautop( do_shortcode($excerpt) );Let me know if this helps.
Thanks!
December 12, 2015 at 7:53 pm #1040294Justin
ParticipantThis reply is private.
December 15, 2015 at 7:46 am #1041702Josh
ParticipantHey Justin,
No problem!
I’ll go ahead and close this thread for now. If you have any further questions, please don’t hesitate to open a new thread.
Thanks!
July 7, 2016 at 12:54 pm #1136826Geoff
MemberHey there,
We wanted to follow-up to let you know that we were able to patch this up in The Events Calendar 4.2.2, which is now available to download and install if you haven’t done so already.
Please do be sure to check out our release notes for a full overview of what’s new in the release and feel free to let us know if you run into this or any other issues after the update.
Thanks so much for your patience while we worked on this!
Cheers,
Geoff -
AuthorPosts
- The topic ‘List view breaking links’ is closed to new replies.
