[wordpress插件] Custom Posts Order自定义帖子顺序

wordpress 插件 文章 2020-04-09 10:30 459 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Custom Posts Order plugin will order posts with simple Drag and Drop Sortable capability.

自定义帖子订购插件将使用简单的拖放排序功能订购帖子。

Place a shortcode in page, post, text widget or template files to display in front-end.

在页面,帖子,文本小部件或模板文件中放置一个简码以显示在前端。

It’s that simple.

就这么简单。

    1. Quick and easy drag and drop for rearranging of posts.
    2. 快速轻松地拖放以重新排列帖子。

    3. Set the number of posts to display in front-end.
    4. 设置要在前端显示的帖子数。

    5. User can add different list of sections of particular posts.
    6. 用户可以添加特定帖子的不同部分列表。

    Usage

    用法

    Place this shortcode in page, post or text widget where you’d like to display posts.

    将此简码放置在您想要显示帖子的页面,帖子或文本小部件中。

    [posts_order posts=2 section=porder_name]

      [posts_order posts = 2 section = porder_name]

    Parameters

    参数

    Custom Posts Order plugin supports the “posts” parameter where you can pass the number of posts you want to display in frontend and “section” parameter where you can pass the name of the section to be displayed in frontend.

    Custom Posts Order插件支持“ posts”参数,您可以在其中传递要在前端显示的帖子数,而“ section”参数可以在此处传递要在前端显示的部分名称。

    For example if you want to display 3 posts from Section1 at a time then place the following code:

    例如,如果您想一次显示第1节中的3个帖子,则放置以下代码:

    [posts_order posts=3 section=Section1]

      [posts_order posts = 3 section = Section1]

    By default it displays 5 posts.

    默认情况下,它显示5个帖子。

    Templates

    模板

    Place this shortcode in any template parts of your theme.

    将此简码放置在主题的任何模板部分中。

      <?php echo do_shortcode('[posts_order posts = 3 section =“ Section1”]'); 

    ?>

    ?>

安装步骤

Installation

安装

    1. Upload “custom_posts_order” to the “/wp-content/plugins/” directory.
    2. 将“ custom_posts_order”上传到“ / wp-content / plugins /”目录。

    3. Activate the plugin through the “Plugins” menu in WordPress.
    4. 通过WordPress中的“插件”菜单激活插件。

    How to Use

    使用方法

      1. Place shortcode [posts_order posts=3 section=porder_name] in wordpress page, post or text widget, where in the “posts” parameter you can pass the number of posts and name of the section in “section” parameter you want to

      2. 在wordpress页面,帖子或文本小部件中放置简码[posts_order posts = 3 section = porder_name],在“ posts”参数中,您可以传递帖子数和想要在“ section”参数中的部分名称

        display in frontend.

        在前端显示。

        5 posts will be displayed by default .

      3. 默认情况下,将显示5条帖子。

      4. Place the code

      5. 放置代码 <?php echo do_shortcode('[posts_order posts = 3 section = porder_name]');

        ?> in template files, where in the “posts” parameter you pass the number of posts and name of the section in “section” parameter you want to display in frontend.

        模板文件中的?> ,其中在“ posts”参数中传递要在前端显示的“ section”参数中的帖子数和部分名称。

        5 posts will be displayed by default .

      6. 默认情况下,将显示5条帖子。

下载地址
https://downloads.wordpress.org/plugin/custom-posts-order.zip
-EOF-

AI助手支持GPT4.0