Sharing values between shortcodes

You can output a shortcode from a shortcode and within that create an attribute value dynamically of course, but sharing a value from one shortcode triggered function call to another later in a page is presumably not possible. Use PHP global variables Global Variables Shortcode 1 Shortcode 2 Use javascript .innerHTML Use javascript .innerHTML to […]

Read More

Blank shortcode output

You may want to add a shortcode to your page content on a line on its own. Even if you SHIFT+RETURN to cause a <br> after it instead of it placed in a new paragraph, if you return(”) from your shortcode you’ll still have a blank line output on the page. Return a zero height […]

Read More