Dynamic Term ID shortcode
-
On my custom post template I want to show the image assigned to the category.
There are many categories so I don’t want to create a new template for each one.
Can I dynamically get the term ID to populate the Post ID field?
I created a shortcode to return it along with the prefix (eg. course_category_31) but this doesn’t work in the Post ID field (I knew it was a long shot but worth a try!).
Any idea how to make this happen?
Works great when I enter ‘course_category_31’ manually.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Dynamic Term ID shortcode’ is closed to new replies.