How do I add a custom Content Tag for use in post_html?
-
At the moment I have the following Post HTML Markup in the plugin’s widget:
<li>{thumb} <div class="caption"><h4 class="title">{text_title}</h4></div> {stats}</li>
I would like to include a custom shortcode (defined in functions.php) which outputs space separated category names like this: https://d.pr/i/1a9Ok
Tried
<li>{thumb} <div class="caption"><h4 class="title">{text_title}</h4>[post_categories_plus before="" sep=" "]</div> {stats}</li>
and it outputs the shortcode literally.
Is there a way to create a custom Content Tag like
{post_categories_plus}
which is equivalent to running the shortcode,[post_categories_plus before="" sep=" "]
?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How do I add a custom Content Tag for use in post_html?’ is closed to new replies.