Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    This sounds strange, and I don’t really see how TablePress could be causing this to be honest… It just doesn’t have any functions that could be causing that early output of the content… Also, it doesn’t know what’s happening inside your Shortcode, it just gets the value.

    I really suggest to try this again, as the Shortcode approach is much safer than allowing PHP code.

    Note that it might be good to turn off the TablePress output cache for this table, so that you always get an up to date Shortcode value. For this, you should embed the table with the extended Shortcode

    [table id=123 cache_table_output=false /]
    

    Regards,
    Tobias

    Thread Starter Jeffinho2016

    (@jeffinho2016)

    Hi Tobias, I should have made more testing before writing this message sorry.
    Turns out I have the exact same issue with my “return” transforming into an “echo” if I launch the shortcode outside of tablepress.
    So it has indeed nothing to do with your plugin.
    Yet, incredibly weird as it’s the first time ever I’m encountering that.
    My apologies.

    Thread Starter Jeffinho2016

    (@jeffinho2016)

    Turns out the same shortcode was mapped to 2 functions haha.
    sorry!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    ah, great find! I would never have guessed that! I hadn’t even realized that a Shortcode might be mapped to two functions! Good catch!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcode not returning the value’ is closed to new replies.