- This topic has 3 replies, 2 voices, and was last updated 6 years, 2 months ago by .
Viewing 4 posts – 1 through 4 (of 4 total)
Viewing 4 posts – 1 through 4 (of 4 total)
Forums › Forums › Search & Filter Pro › Adding Custom Taxonomy links to Shortcode results?
Hello,
I’d like to list particular custom taxonomy links in my shortcode results (the way categories and tags are already listed).
In the results.php file (saved in a child theme), how do I go about that? I’m guessing it’s to do with the_terms(), but I’m struggling to set it up.
<div>
<h2>“><?php the_title(); ?></h2>
<p><?php the_excerpt(); ?></p>
<p><?php the_category(); ?></p>
the_terms() ???
<p><small><?php the_date(); ?></small></p>
</div>
For example I have a taxonomy with an ID called ‘content-type’ which I’d like to list.
Any help would be brilliant.
Many thanks