[英]Wordpress Help: How to use custom blog page for blog category
My blog page is a custom tempate page-blog.php
. 我的博客页面是一个自定义
page-blog.php
。 I want to use the same template for blog category as well /blog/category/architectural/
. 我想对博客类别
/blog/category/architectural/
使用相同的模板。 Currently it is pointing to the homepage of the website that is the index.php
目前,它指向的是
index.php
网站的主页
I also tried this Rewrite plugin http://wordpress.org/plugins/rewrite/ to change the rules for blog/category
. 我还尝试了这个Rewrite插件http://wordpress.org/plugins/rewrite/来更改
blog/category
的规则。
Any idea on how to tackle this? 关于如何解决这个问题的任何想法?
Thanks! 谢谢!
Create the file category-architectural.php with this content <?php include "page-blog.php"; ?>
使用以下内容创建文件category-architectural.php
<?php include "page-blog.php"; ?>
<?php include "page-blog.php"; ?>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.