Skip Navigation

[Resolved] Shortcode executing first rather than layout row order

This support ticket is created 6 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Beda 6 years, 8 months ago.

Author
Posts
#892525
problem with shortcode and layout row order display.jpg

I am trying to run a shortcode that uses a custom function in functions.php. The shortcode runs, but it is outputting the display at the top of the page and prior to outputting the code for the other rows I have defined in the layout for the page.

Link to a page where the issue can be seen: hidden link

I expected to see that Rows 1 2, 3 and 4 in my layout would be output in that order. My shortcode is in row 2.

Instead, row 2 is being output before row 1.

#892604

This is not a Support Forum for Custom Code assistance.

Only Toolset related things can be discussed here.

How is your Custom ShortCode involved with Toolset?
Does the ShortCode work outside of Toolset?

I suspect, you echo the content of the ShortCode, instead of returning it, but that is just a wild guess.

Please share how Toolset is involved in this code, how it affects it, and the code itself.

Here is the official WordPress API For ShortCodes:
https://codex.wordpress.org/Shortcode_API