Advanced users may want more control of where the categories, tags or other taxonomies (especially for custom posts types) are listed within a post or other bit of code where shortcodes are parsed. Shortcodes are great for easily dropping in those repetitive bits of static or dynamic content, while still being configurable.
Open up the functions.php file in your child theme and add the following code. The code should be entered at the end of the file, just before the closing ?> if there is one.
Within a post, I could now add add a linked list of categories for that post, by adding:
To add tags, and amend the “Filed in: ” prefix:
Perhaps you’ve defined a custom taxonomy for the services you provide: