This plugin builds on the Category Page plugin making it possible to automatically insert posts into pages and subpages based on categories.
此插件建立在“类别页面”插件的基础上,可以根据类别自动将帖子插入页面和子页面。
You must have a current version of Category Page installed in order to function.
您必须具有类别页面的当前版本才能运行。
.
。
Visit plugin page here
访问插件页面此处 p>
Usage
用法 h3>
To view complete instructions read here
要查看完整的说明,请在此处阅读 p>
Open up page.php in your template folder (you may also set up a seperate a Page Template)
在您的模板文件夹中打开page.php(您也可以设置单独的页面模板) p>
For the most basic setup, insert the following below the loop statement in the page.php file:
对于最基本的设置,在page.php文件中的循环语句下面插入以下内容: p>
ID);} ?>
<?php if(function_exists(page2cat_pages)){page2cat_pages($ post-> ID);}?> pre> p>
I recommend you wrap the function in your standard post class.
我建议您将函数包装在标准post类中。
For example:
例如: p>
ID);} ?>
<?php if(function_exists(page2cat_pages)){page2cat_pages($ post-> ID);}?>
div> pre>
p>
Plugin Options
插件选项 p>
ID, posts per page, number of pages);} ?>
<?php if(function_exists(page2cat_pages)){page2cat_pages($ post-> ID,每页帖子数,页数);}?>
code> pre>
Posts per page: (default = 10) set to 0 to show all
每页的帖子数:(默认= 10)设置为0以显示全部
This sets the number of posts to show at one time on the page.
这样可以设置一次在页面上显示的帖子数。 p>
Number of pages: (default = 15) set to 0 to show all
页数:(默认= 15)设置为0以显示全部
This tells how many page numbers to show at a time on the page navigation bar.
告诉您一次在页面导航栏上显示多少个页码。 p>
Example of Category Page Extender with variables:
带有变量的“类别页面扩展器”示例: p>
ID, 5, 10);} ?>
<?php if(function_exists(page2cat_pages)){page2cat_pages($ post-> ID,5,10);}?> pre>This will list 5 posts and up to 10 page numbers at a time on the page navigation bar.
这将在页面导航栏上一次列出5个帖子和最多10个页码。 p>
Plugin Homepage
插件主页 p>