Quick and Simple WordPress Shortcode – Straight from the Developers Desk

Interested in creating custom shortcodes in WordPress? It is really easy.  Below is an example of a shortcode that we recently used:

Screenshot on 10.1.2014 at 10.27.05 AM

You can add this directly to the functions.php file.  Something to keep in mind is that you do not want to echo anything, so just set variables then return whatever at the end.  This short code lists all practice areas when you enter “[list_practices]” in the text editor in WordPress.

Related Articles in Coding, WordPress,

PaperStreet: Our Services & Portfolio


Leave a Reply

Your email address will not be published. Required fields are marked *

*