Shortcodes in event description runs twice

Home Forums Calendar Products Events Calendar PRO Shortcodes in event description runs twice

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1328539
    Nick Hadsund
    Participant

    If the content of an event contains a shortcode, that retrieves text, this is loaded twice. First in the div, tribe-events-content, and again in tribe-events-cal-links, which is not expected.
    I have tried to generalize the example as much as I can to show this.

    I can’t provide an URL to show this, as our development site is offline-based. I can provide the following information which generated the shot of the event page:

    Shortcode:

    function get_text($atts) {
    	$a = shortcode_atts( array(
    	), $atts );
    	echo '<span style="border: 2px solid red; padding: 4px;">Repeated text</span>';
    }	
    add_shortcode( 'get_text', 'get_text' );

    Event name:
    Event Title

    Event description:
    Event description... [get_text]

    #1329707
    Shelby
    Participant

    Hi Nick,

    I’d love to help you out with this!

    Could you possibly throw your development site up on a live environment (maybe on a sub-domain?) It would be REALLY helpful to be able to see this firsthand. Let me know, and I’d be happy to take a look!

    Thanks,

    Shelby 🙂

    #1330861
    Nick Hadsund
    Participant

    After a clean reinstall of wordpress, the issue was resolved.

    #1332575
    Shelby
    Participant

    Hi Nick,

    So glad you got this resolved! Please let us know if we can help you out in the future! 🙂

    Take care,

    Shelby 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Shortcodes in event description runs twice’ is closed to new replies.