最新消息: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 - Separate link structure for specific posts (blogglossary in stead of just blog)

matteradmin10PV0评论

I would like to create the following link structure:

my.domain/blog/'postname': this is the standard structure for blog posts my.domain/blog/glossary/'postname': this is a separate structure for specific posts

'blog' is the main category for both types of posts and 'glossary' could be a second category or a tag (whichever works best for what I'm trying to accomplish).

How can this be done?

Thanks!

I would like to create the following link structure:

my.domain/blog/'postname': this is the standard structure for blog posts my.domain/blog/glossary/'postname': this is a separate structure for specific posts

'blog' is the main category for both types of posts and 'glossary' could be a second category or a tag (whichever works best for what I'm trying to accomplish).

How can this be done?

Thanks!

Share Improve this question asked Jan 4, 2019 at 15:37 JiverJiver 213 bronze badges 2
  • Create a separate custom post type called "glossary" and set with_front to true. – Jacob Peattie Commented Jan 4, 2019 at 15:48
  • Thank you. Isn't true the default setting for with_front? – Jiver Commented Jan 4, 2019 at 16:25
Add a comment  | 

2 Answers 2

Reset to default 1

I just found out that what I want can be easily accomplished by creating a category 'glossary' which is a subcategory for 'blog'.

You can try using Custom Permalinks. It enables you to assign custom permalinks for specific posts. Follow these steps:

  1. Install and activate Custom Permalink.
  2. Go to the post where you want to use custom permalink.
  3. In the Permalink field, type in your custom URL. You can even include the "/" character to replicate a folder structure.
  4. Finally, save the changes.
Post a comment

comment list (0)

  1. No comments so far