permalinks - Dynamic Template file for subpage
.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.
- Win11革命性新变化来了!31年的NTFS被取代:ReFS将成默认文件系统
- 与微信支付宝较量有难度 解析Apple Pay入华细节
- 死忠安卓粉看iPhone 6S:根本没创新!
- 2014年IT五大发展趋势
- 软件定义:英特尔携VMware重塑数据中心
- 微软推Surface平板 成硬件合作伙伴竞争对手
- 微软发布平板是明智之举还是自寻死路
- javascript - Read text file and put result to innerHTML? - Stack Overflow
- python - How to change the color of an individual bar in a MatPlot FuncAnimation? - Stack Overflow
- soa - How to use a variable in a composite or wsdl, as I need to have this variable per environment? - Stack Overflow
- android - No recomposition called when State Holder class modified - Stack Overflow
- How to configure PhpStorm to work with Node.js and ESLint inside a running Docker container? - Stack Overflow
- python - NaN loss output when training DNN with Keras - Stack Overflow
- Has Paho MQTT Client for Ionic on Android limitations regarding the number of client instances? - Stack Overflow
- Composing dependent functions in Lean - Stack Overflow
- Blockchain record extraction - Stack Overflow
- Angular mfe with @module-federationenhanced having issue to use ngx-translate with remote apps - Stack Overflow
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