$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>permalinks - Dynamic Template file for subpage|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

permalinks - Dynamic Template file for subpage

matteradmin14PV0评论

.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

Share Improve this question edited Mar 21, 2019 at 7:09 bueltge 17.1k7 gold badges62 silver badges97 bronze badges asked Mar 20, 2019 at 15:50 A'dii SunlayA'dii Sunlay 213 bronze badges 4
  • 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
Add a comment  | 

1 Answer 1

Reset to default 0

The 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.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far