List view breaking links

Home Forums Calendar Products Events Calendar PRO List view breaking links

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1034876
    Justin
    Participant

    Hello,

    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?

    #1035560
    Josh
    Participant

    Hey 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!

    #1035604
    Justin
    Participant

    Hello,

    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?

    #1037291
    Josh
    Participant

    Hey 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!

    #1038024
    Justin
    Participant

    This reply is private.

    #1038924
    Josh
    Participant

    Hey 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!

     

    #1040294
    Justin
    Participant

    This reply is private.

    #1041702
    Josh
    Participant

    Hey 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!

    #1136826
    Geoff
    Member

    Hey 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

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘List view breaking links’ is closed to new replies.