Call Shortcode inside another Shortcodes callback

tl;dr Find where the shortcode is registered. Find the shortcode output function. Pray for a filter. Report as a bug. Remember: All of the functions below are made up. The point of the first two steps is finding the right values to plug into the snippets. Find where the shortcode is registered Use a program … Read more

How to add source code into wordpress post really?

Since you are self hosting the blog, you will need to: Install the SyntaxHighlighter Evolved plugin. Make sure that you enable the plugin on your blog (this is not done automatically after install). You should now be able to add the code to a post or page via either the visual or text editor. [code … Read more

Shortcode return $content vs do_shortcode($content)

This is useful if you don’t know if the $content contains unknown shortcodes. Example Your shortcode add_shortcode( ‘foo’, ‘shortcode_foo’ ); function shortcode_foo( $atts, $content=”” ) { return ‘Foo!’ . do_shortcode( $content ); } Now your user might write something like this: [foo][bar][/foo] You have no idea what [bar] does or that it even exists. So … Read more

Shortcode: display list of created shortcode in popup

You get all shortcodes, there are registered in WordPress with the default function in the global $shortcode_tags. You can loop about this shortcodes and filter via tag or functiion. foreach( $shortcode_tags as $tag => $function ) { } If the $function is a array, then can also read the parameters. See the source below. I … Read more