.php
is template file for showing posts of any post_tag
.
- I want to show description of
post_tag
taxonomy term.
how can I do this in WordPress.
Edit
I think you did not understood my question. actually i want to convert this:-
into
https://www.example/tag_name-tag.php
is template file for showing posts of any post_tag
.
https://www.example/tag_name/about
- I want to show description of post_tag
taxonomy term.
how can I do this in WordPress.
Edit
I think you did not understood my question. actually i want to convert this:-
https://www.example/tag-name?content=about
into
https://www.example/tag-name/about
1 Answer
Reset to default 0The taxonomy term should helps you, see the documentation.
The possibilities
- taxonomy-{taxonomy}-{term}.php
- taxonomy-{taxonomy}.php
- tag-{slug}.php
- tag-{id}.php
Your example
- tag-about.php
See the template hierarchy for tag for a deeper documentation about this feature. So it is possible to have a specific template without coding, a plugin.
tag_name-tag.php
in your root folder? WP already has tag archives, is it that you want to show your own template on the tag archives? Take a look at the template hierarchy, and avoid standalone PHP files that the browser directly accesses like the plague – Tom J Nowell ♦ Commented Mar 20, 2019 at 17:09example/tag_name-tag.php
come from? Where does?content=about
come from? There's no code in your question can you include what you're currently doing in the question so that we might understand? – Tom J Nowell ♦ Commented Mar 21, 2019 at 1:42