[wordpress插件] Category Page Extender分类页面扩展器

wordpress 插件 文章 2020-03-18 11:50 509 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

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

访问插件页面此处

Usage

用法

To view complete instructions read here

要查看完整的说明,请在此处阅读

Open up page.php in your template folder (you may also set up a seperate a Page Template)

在您的模板文件夹中打开page.php(您也可以设置单独的页面模板)

For the most basic setup, insert the following below the loop statement in the page.php file:

对于最基本的设置,在page.php文件中的循环语句下面插入以下内容:

ID);} ?>

 <?php if(function_exists(page2cat_pages)){page2cat_pages($ post-> ID);}?> 

I recommend you wrap the function in your standard post class.

我建议您将函数包装在标准post类中。

For example:

例如:

 

ID);} ?>

<?php if(function_exists(page2cat_pages)){page2cat_pages($ post-> ID);}?>

Plugin Options

插件选项

ID, posts per page, number of pages);} ?>

  <?php if(function_exists(page2cat_pages)){page2cat_pages($ post-> ID,每页帖子数,页数);}?> 

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.

这样可以设置一次在页面上显示的帖子数。

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.

告诉您一次在页面导航栏上显示多少个页码。

Example of Category Page Extender with variables:

带有变量的“类别页面扩展器”示例:

ID, 5, 10);} ?>

 <?php if(function_exists(page2cat_pages)){page2cat_pages($ post-> ID,5,10);}?> 

This will list 5 posts and up to 10 page numbers at a time on the page navigation bar.

这将在页面导航栏上一次列出5个帖子和最多10个页码。

Plugin Homepage

插件主页

安装步骤

***Requires a current installation of Category Page: https://wordpress.org/extend/plugins/page2cat/

***需要当前安装的类别页面:https://wordpress.org/extend/plugins/page2cat/

    1. Download the plugin Zip archive.
    2. 下载插件Zip存档。

    3. Upload Category Page Extender folder to your /wp-content/plugins/ directory
    4. Category Page Extender 文件夹上传到您的 / wp-content / plugins / 目录

    5. Activate the plugin through the ‘Plugins’ menu in WordPress
    6. 通过WordPress中的“插件”菜单激活插件

    7. Setup some relationship between Categories and Pages using the Category Page plugin
    8. 使用“类别页面”插件在类别和页面之间建立一些关系

    9. Tweak page.php in your theme folder (please read here to learn how

    10. 在主题文件夹中调整 page.php (请在此处阅读以了解如何

      ).

    11. )。

    12. Enjoy!
    13. 享受!

下载地址
https://downloads.wordpress.org/plugin/category-page-extender.1.0.3.zip
-EOF-

AI助手支持GPT4.0