• Resolved chris971

    (@chris971)


    Hello,
    WP Bakery shortcode is not converted – in calendar views after export in icalendar or googlecalendar, Calendars by Readdle and others.

    I use the free version of events calendars. After I export and import the calendar with the calendar subscribe function, the shortcodes in the calendar views are not converted. Please see also screenshots. Instead of the subscribe button, rows and other elements, only the WP Bakery shortcode is displayed, how can I fix this? I am looking forward to your suggestions.

    Thank you for your support.
    Chris

    https://www.screenshare.de/6z6f-kbxd-8y3k/#key=9k3q-a8g6-k56h-fmib-m4ym-fx3a-7bzi-wgk4

    • This topic was modified 2 years ago by chris971.
    • This topic was modified 2 years ago by chris971.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Darian

    (@d0153)

    Hi @chris971

    Thanks for reaching out.

    By default, shortcodes added to the event description will not be rendered/converted when the event is added to a calendar.

    Your desired use-case scenario may be possible with some custom coding, but if you decide to give that a try, please note we cannot provide full support for custom implementations like that.

    If you want the shortcode to be removed from the description when you add the event to a calendar, then you could try the snippet code below:

    add_filter( 'tec_views_v2_single_event_gcal_link_parameters', 'tribe_change_content_to_excerpt_in_gcal', 10, 2 );
    
    function tribe_change_content_to_excerpt_in_gcal( $pieces, $event ) {
    	$pieces["details"] = urlencode(ltrim(preg_replace( '/(\[.*?\])/', '', $event->post_content )));
    	return $pieces;
    }

    Please let me know if you have other questions or concerns.

    Thread Starter chris971

    (@chris971)

    Hi Darian,

    thanks, I would like to try this. In which function file should the script be added?
    Thank you.

    Thread Starter chris971

    (@chris971)

    Hi Darian,
    another question, could the problem be solved with the premium plugin?
    Thank you.
    Chris

    Plugin Support Darian

    (@d0153)

    Hi @chris971

    Thanks for your response.

    Unfortunately, the premium plugin does not address the “shortcodes” when you add your event to a calendar.

    Custom code snippets can be inserted in functions.php a file that is under your currently active theme folder. It is advisable to insert it on the child theme so that it will not affect your customization every time there’s an update with the parent theme. You can find more details on how to properly implement the custom code snippets here.

    If you’re not familiar with coding, you can use the Code Snippets plugin, which removes the need to add custom snippets to your theme’s functions.php file.

    I hope that helps, and let me know if you have further concerns.

    Plugin Support Darian

    (@d0153)

    Hi @chris971

    This thread has been inactive for a while, so we’ll go ahead and mark it Resolved. Please open a new thread if any other questions arise, and we’d be happy to help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WP Bakery shortcode is not converted’ is closed to new replies.