How can I add shortcode functionality to a WordPress theme that doesn't support shortcodes?
migrated from stackoverflow.com Jan 7 at 20:45
This question came from our site for professional and enthusiast programmers.
Your theme has to be removing the shortcodes.
If that doesn't do it, the theme is probably doing something odd with the post content-- like bypassing the normal WordPress functions. And fixing that is going to take a lot more information.
If your theme doesn't include [shortcodes] out of the box they can be added by creating them in the functions.php file.
Here is a basic shortcode to get you started:
I could have also added the divider class to my stylesheet but for purposed here I left it in the function.php file.
Then in your post/page content area all you need to do is type in [divider] and it will render the div as you have styled it.