[英]How to create a blog page, show all posts and change the blog post url structure in a wordpress installed website
Hello I am a little new to wordpress. 您好,我是wordpress的新手。 I know how to create website & theme in wordpress.
我知道如何在wordpress中创建网站和主题。 But when I am going to create a blog page for website, I am able to show all posts in blog page but unable to change the url structure.
但是,当我要为网站创建博客页面时,我能够显示博客页面中的所有帖子,但无法更改URL结构。 Ex yourwebsite.com/blog/postname.
例如yourwebsite.com/blog/postname。 If any plugin is there please tell me.
如果有任何插件,请告诉我。 Any help will be appreciate.
任何帮助将不胜感激。 Thank you.
谢谢。
After a long research I found the answer. 经过长时间的研究,我找到了答案。
1 - Create a page like www.yourwebsite.com/blog 1-创建一个类似于www.yourwebsite.com/blog的页面
2 - Setting -> Permalink -> Custom Structure -> Add /blog before /%postname%/ -> Save 2-设置->永久链接->自定义结构->在/%postname%之前添加/ blog //->保存
3 - Setting -> Reading -> Postpage -> select your blog page(where you want to appear your post) 3-设置->阅读->帖子->选择您的博客页面(要在其中显示帖子)
This works for me. 这对我有用。 Hope it helps you.
希望对您有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.