[英]Wordpress: Adding an extra folder name in the url before all posts
Is there anyway of doing the following? 反正有做以下事情吗?
In my wordpress build I have a homepage [test.com] an index page [news] and single posts [single] 在我的wordpress版本中,我有一个主页[test.com],一个索引页[新闻]和单个帖子[单个]
At the moment if I navigate to news and then onto single the url is as follows: test.com/single 目前,如果我导航至新闻,然后进入单个网址,则网址如下:test.com/single
However ideally I want: test.com/news/single 但是理想情况下,我想要:test.com/news/single
Is there a function/ plugin I can use to add in this extra folder name? 有没有可以用来添加此额外文件夹名称的功能/插件?
I think what you are looking for is a Permalinks structure. 我认为您正在寻找的是永久链接结构。 They can be used to create a structure similar to what you are trying to achieve.
它们可用于创建类似于您要实现的结构。
http://codex.wordpress.org/Using_Permalinks . http://codex.wordpress.org/Using_Permalinks 。
Assign that single post to a category 将该单个帖子分配给一个类别
Check if your permalinks are set to "Post Name" 检查您的永久链接是否设置为“帖子名称”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.