• Resolved mjgilbert

    (@mjgilbert)


    Hello,

    I am currently using TablePress and have shortcodes in each cell (2×7 table).

    However, the shortcode in each cell is rendering before the table itself, so I end up with all of shortcode rendered on top of the table (as if it were a long title) and then the table rendered underneath it.

    Is there a step I am missing in adding my shortcode? Do I need to write a function to delay the cell shortcode to wait until the table is rendered?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mjgilbert

    (@mjgilbert)

    I was able to figure this one out shortly after posting.

    The issue was, in my shortcode that I wrote, I was echo-ing my variable.

    I changed that to return instead of echo and now things are rendering in place as they should.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Indeed, Shortcode always need to return and must not use echo. Good to hear that it’s working now 🙂

    Best wishes,
    Tobias

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Cell shortcodes rendering before table shortcode’ is closed to new replies.