wordpress snippets last updated   : January 29, 2015
we now have 646 snippets

Creating nested shortcode concept

wordpress snippet

Surely I’m not the first but after recently being asked by a visitor about nested shortcodes I figure I would fool around with the idea. Adding this snippet to the functions.php of your wordpress theme will let you fool around with the following nested shortcode [link][my_text][/link]. No tricks just pass $content into do_shortcode() and works like a charm.

read more