admin管理员组文章数量:1026989
.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.
.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
-
Have you put an actual
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:09 - i think you did not understood my question. actually i want to convert this:- example/tag-name?content=about into example/tag-name/about – A'dii Sunlay Commented Mar 20, 2019 at 18:28
-
hmmm where does
example/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 - actually i want permalink structure like facebook facebook/username/about facebook/username/posts facebook/username/photos facebook/username/videos facebook/username/reviews – A'dii Sunlay Commented Mar 21, 2019 at 10:03
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.
本文标签: permalinksDynamic Template file for subpage
版权声明:本文标题:permalinks - Dynamic Template file for subpage 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745669738a2162390.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
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