.Shortcodes General

Using the WordPress shortcode feature on a page Yes you need to include the square brackets! Calling a function from post or page content Just add [my_special_shortcode] within any post or page and the function will be called Passing arguments with a shortcode In the wordpress content (N.B. keep attributes lowercase, they will get converted […]

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

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 javascript .innerHTML Use javascript .innerHTML to cause the content of something on the page to be […]

Read More