[wordpress插件] Custom Post Type Lister – CPT Lister自定义帖子类型列表器– CPT列表器

wordpress 插件 文章 2020-04-09 06:40 358 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Hello there!

你好!

This plugin will give you the possibility to list any of your custom post types (even a built in post types) to any of your posts or pages, with one simple shortcode [cpt_show]

使用此插件,您可以使用一个简单的短代码 [cpt_show] 列出所有自定义帖子类型(甚至是内置的帖子类型)到您的任何帖子或页面。

What it does ?

它做什么?



This plugin makes a WP_Query and gets all posts from the custom post type that you’ve given to it.

此插件生成WP_Query并从您为其指定的自定义帖子类型中获取所有帖子。

What are the parameters ?

参数是什么?

    •     

    •     

      type – Here you have to tell the plugin from which post type you would like to get your posts.
          

      类型–在这里,您必须告诉插件您要从哪种帖子类型获取帖子。
          

      Example: type=”posts”    

      示例:type =“ posts”    

    •     

    •     

      post_status – This is the type of posts that should be listed.
          

      post_status –这是应列出的帖子类型。
          

      Example: post_status=”published”    

      示例:post_status =“已发布”    

    •     

    •     

      order – This is how the results should be ordered ASC / DESC.
          

      订单–这是应如何按ASC / DESC排序结果的方式。    

      Example: order=”ASC”    

      示例:order =“ ASC”    

    •     

    •     

      order_by – This tells the plugin by what the results should be ordered.
          

      order_by –告诉插件应按什么顺序排序结果。
          

      Example: order_by=”publish_date”    

      示例:order_by =” publish_date”    

    •     

    •     

      posts_per_page – With this you tell the plugin how much posts should be listed on the page.
          

      posts_per_page –通过此操作,您可以告诉插件页面上应列出多少帖子。
          

      Example: posts_per_page=”5″    

      示例:posts_per_page =“ 5”    

    •     

    •     

      titles_as_links – This tells the shortcode if the titles of the listed posts should be links that are pointing to the specific page for every unique post.

      titles_as_links –告诉简码,列出的帖子的标题是否应该是指向每个唯一帖子的特定页面的链接。

      Possible values are 0 & 1. If the value is set to 0 it will print the title without wrapping it in HTML Link tag (), but if the value is set to 1 it will wrap the post title into HTML Link tag and it will

      可能的值为0和1。如果将该值设置为0,则将打印标题而不将其包装在HTML Link标记()中;但是,如果将该值设置为1,则将其标题包装到HTML Link标记中,并且它将

      point to the specific post page.
          

      指向特定的帖子页面。
          

      Example: titles_as_links=”1″    

      示例:titles_as_links =“ 1”    

    •     

    •     

      show_post_content – This tells the shortcode if it should show the post content under their titles.

      show_post_content –告诉简码是否应在标题下显示帖子内容。

      Possible values are 0 & 1. If the value is 0 it won’t show the post content under its title, but if the value is set to 1 it will list the post content also.
          

      可能的值为0和1。如果值为0,则不会在标题下显示帖子内容,但是,如果将值设置为1,则会同时列出帖子内容。
          

      Example: show_post_content=”0″    

      示例:show_post_content =“ 0”    

    •     

    •     

      cptl_title_link_class – This is used to tell the shortcode what class should be added to the Link Wrapper of the post title.

      cptl_title_link_class –用于告诉简码应将哪个类添加到帖子标题的链接包装中。

      By default it is cptl_title_link.    

      默认情况下为cptl_title_link。    

    •     

    •     

      cptl_title_class – This tells the shortcode what class should be added to the Title Wrapper of the post title.

      cptl_title_class –告诉简码应将什么类添加到帖子标题的标题包装中。

      By default it is cptl_title.    

      默认情况下为cptl_title。    

    •     

    •     

      cptl_content_class – This is used to tell the shortcode what class should be added to the Content Wrapper of the post content.

      cptl_content_class –用于告诉简码应将哪些类添加到帖子内容的内容包装器中。

      By default it is cptl_content    

      默认情况下为cptl_content    

    •     

    •     

      cptl_content_wrapper – This is used to tell the shortcode how wrap the listed results.

      cptl_content_wrapper –用于告诉简码如何包装列出的结果。

      It can be ‘h1’, ‘h2’, ‘h3’, ‘h4’, ‘h4’, ‘h6’, ‘li’, ‘span’, ‘div’    

      可以是“ h1”,“ h2”,“ h3”,“ h4”,“ h4”,“ h6”,“ li”,“ span”,“ div”     

    Why to use the plugin ?

    为什么要使用插件?



    The need of quick listing of custom post type on some page or post ?

    是否需要在某些页面或帖子上快速列出自定义帖子类型?

    Well this is your reason and this is your plugin.

    好吧,这是您的原因,这是您的插件。



    Note :

    注意:



    You can use the standart WordPress options for those parameters:

    您可以为这些参数使用标准的WordPress选项:

    type, post_status, order, order_by, posts_per_page

    类型,岗位状态,订单,订购者,帖子每页

    You don’t find your functionality ?

    找不到功能吗?



    Custom Post Type Lister is Open Source plugin, which means that you can contribute to it.

    自定义帖子类型列表器是开源插件,这意味着您可以为此做贡献。

    Yup that’s right!

    是的,没错!

    If you don’t find the needed functionality just add it.

    如果找不到所需的功能,请添加它。

    Here is the repository.

    这是 存储库

    Cheers!

    干杯!

安装步骤

    1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
    2. 将插件文件上传到 / wp-content / plugins / plugin-name 目录,或直接通过WordPress插件屏幕安装插件。

    3. Activate the plugin through the ‘Plugins’ screen in WordPress
    4. 通过WordPress中的“插件”屏幕激活插件

    5. Use the Settings->Plugin Name screen to configure the plugin
    6. 使用“设置”->“插件名称”屏幕来配置插件

下载地址
https://downloads.wordpress.org/plugin/custom-post-type-lister-cpt-lister.2.0.zip
-EOF-

AI助手支持GPT4.0


三叔工具箱

摸鱼人热门新闻聚合

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] Datafeedr Comparison SetsDatafeedr比较集
[wordpress插件] Crypto Live Widget加密实时小部件
[wordpress插件] Free Responsive Off-Canvas Menu Plugin for WordPress – 8Degree Fly Menu LiteWordPress的免费响应式Canvas菜单插件– 8Degree Fly Menu Lite
[wordpress插件] Before And After: Lead Capture Plugin For WordPress之前和之后:WordPress潜在客户捕获插件
[wordpress插件] Category D3 TreeD3类树
随便看看
微信公众号免300认证教程 4681
小程序已经上线,作为管理员无法在小程序数据助手查看数据? 3797
小程序广告组件通过审核,但是小程序内没有显示广告? 3873
企业微信通讯录账号被管理员误/恶意删除,怎么办? 7750
问题? 7021
如何快速搭建抽奖助手小程序(无需代码知识) 4831
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 5778
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 5217
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 5023
如何解决渲染层网络错误Failed to load media? 16279