AI助手支持GPT4.0
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] strong> p>列出所有自定义帖子类型(甚至是内置的帖子类型)到您的任何帖子或页面。What it does ? 它做什么? strong> This plugin makes a WP_Query and gets all posts from the custom post type that you’ve given to it.此插件生成WP_Query并从您为其指定的自定义帖子类型中获取所有帖子。 p>What are the parameters ? 参数是什么? strong> p> type – Here you have to tell the plugin from which post type you would like to get your posts. 类型–在这里,您必须告诉插件您要从哪种帖子类型获取帖子。 Example: type=”posts” 示例:type =“ posts” li> post_status – This is the type of posts that should be listed. post_status –这是应列出的帖子类型。 Example: post_status=”published” 示例:post_status =“已发布” li> order – This is how the results should be ordered ASC / DESC. 订单–这是应如何按ASC / DESC排序结果的方式。 Example: order=”ASC” 示例:order =“ ASC” li> order_by – This tells the plugin by what the results should be ordered. order_by –告诉插件应按什么顺序排序结果。 Example: order_by=”publish_date” 示例:order_by =” publish_date” li> 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” li> 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” li> 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” li> 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。 li> 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。 li> 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 li> 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” strong> li> ul>Why to use the plugin ? 为什么要使用插件? strong> The need of quick listing of custom post type on some page or post ?是否需要在某些页面或帖子上快速列出自定义帖子类型?Well this is your reason and this is your plugin.好吧,这是您的原因,这是您的插件。 p> Note :注意:You can use the standart WordPress options for those parameters:您可以为这些参数使用标准的WordPress选项:type, post_status, order, order_by, posts_per_page类型,岗位状态,订单,订购者,帖子每页 strong> p>You don’t find your functionality ? 找不到功能吗? strong> Custom Post Type Lister is Open Source plugin, which means that you can contribute to it.自定义帖子类型列表器是开源 strong>插件,这意味着您可以为此做贡献。Yup that’s right!是的,没错!If you don’t find the needed functionality just add it.如果找不到所需的功能,请添加它。Here is the repository.这是 存储库 strong>。Cheers!干杯! p>
What it does ?
它做什么? strong> This plugin makes a WP_Query and gets all posts from the custom post type that you’ve given to it.此插件生成WP_Query并从您为其指定的自定义帖子类型中获取所有帖子。 p>What are the parameters ? 参数是什么? strong> p> type – Here you have to tell the plugin from which post type you would like to get your posts. 类型–在这里,您必须告诉插件您要从哪种帖子类型获取帖子。 Example: type=”posts” 示例:type =“ posts” li> post_status – This is the type of posts that should be listed. post_status –这是应列出的帖子类型。 Example: post_status=”published” 示例:post_status =“已发布” li> order – This is how the results should be ordered ASC / DESC. 订单–这是应如何按ASC / DESC排序结果的方式。 Example: order=”ASC” 示例:order =“ ASC” li> order_by – This tells the plugin by what the results should be ordered. order_by –告诉插件应按什么顺序排序结果。 Example: order_by=”publish_date” 示例:order_by =” publish_date” li> 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” li> 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” li> 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” li> 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。 li> 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。 li> 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 li> 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” strong> li> ul>Why to use the plugin ? 为什么要使用插件? strong> The need of quick listing of custom post type on some page or post ?是否需要在某些页面或帖子上快速列出自定义帖子类型?Well this is your reason and this is your plugin.好吧,这是您的原因,这是您的插件。 p> Note :注意:You can use the standart WordPress options for those parameters:您可以为这些参数使用标准的WordPress选项:type, post_status, order, order_by, posts_per_page类型,岗位状态,订单,订购者,帖子每页 strong> p>You don’t find your functionality ? 找不到功能吗? strong> Custom Post Type Lister is Open Source plugin, which means that you can contribute to it.自定义帖子类型列表器是开源 strong>插件,这意味着您可以为此做贡献。Yup that’s right!是的,没错!If you don’t find the needed functionality just add it.如果找不到所需的功能,请添加它。Here is the repository.这是 存储库 strong>。Cheers!干杯! p>
This plugin makes a WP_Query and gets all posts from the custom post type that you’ve given to it.
此插件生成WP_Query并从您为其指定的自定义帖子类型中获取所有帖子。 p>
What are the parameters ?
参数是什么? strong> p> type – Here you have to tell the plugin from which post type you would like to get your posts. 类型–在这里,您必须告诉插件您要从哪种帖子类型获取帖子。 Example: type=”posts” 示例:type =“ posts” li> post_status – This is the type of posts that should be listed. post_status –这是应列出的帖子类型。 Example: post_status=”published” 示例:post_status =“已发布” li> order – This is how the results should be ordered ASC / DESC. 订单–这是应如何按ASC / DESC排序结果的方式。 Example: order=”ASC” 示例:order =“ ASC” li> order_by – This tells the plugin by what the results should be ordered. order_by –告诉插件应按什么顺序排序结果。 Example: order_by=”publish_date” 示例:order_by =” publish_date” li> 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” li> 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” li> 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” li> 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。 li> 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。 li> 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 li> 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” strong> li> ul>Why to use the plugin ? 为什么要使用插件? strong> The need of quick listing of custom post type on some page or post ?是否需要在某些页面或帖子上快速列出自定义帖子类型?Well this is your reason and this is your plugin.好吧,这是您的原因,这是您的插件。 p> Note :注意:You can use the standart WordPress options for those parameters:您可以为这些参数使用标准的WordPress选项:type, post_status, order, order_by, posts_per_page类型,岗位状态,订单,订购者,帖子每页 strong> p>You don’t find your functionality ? 找不到功能吗? strong> Custom Post Type Lister is Open Source plugin, which means that you can contribute to it.自定义帖子类型列表器是开源 strong>插件,这意味着您可以为此做贡献。Yup that’s right!是的,没错!If you don’t find the needed functionality just add it.如果找不到所需的功能,请添加它。Here is the repository.这是 存储库 strong>。Cheers!干杯! p>
type – Here you have to tell the plugin from which post type you would like to get your posts.
类型–在这里,您必须告诉插件您要从哪种帖子类型获取帖子。
Example: type=”posts”
示例:type =“ posts”
li>
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” strong>
ul>
Why to use the plugin ?
为什么要使用插件? strong> The need of quick listing of custom post type on some page or post ?是否需要在某些页面或帖子上快速列出自定义帖子类型?Well this is your reason and this is your plugin.好吧,这是您的原因,这是您的插件。 p> Note :注意:You can use the standart WordPress options for those parameters:您可以为这些参数使用标准的WordPress选项:type, post_status, order, order_by, posts_per_page类型,岗位状态,订单,订购者,帖子每页 strong> p>You don’t find your functionality ? 找不到功能吗? strong> Custom Post Type Lister is Open Source plugin, which means that you can contribute to it.自定义帖子类型列表器是开源 strong>插件,这意味着您可以为此做贡献。Yup that’s right!是的,没错!If you don’t find the needed functionality just add it.如果找不到所需的功能,请添加它。Here is the repository.这是 存储库 strong>。Cheers!干杯! p>
The need of quick listing of custom post type on some page or post ?
是否需要在某些页面或帖子上快速列出自定义帖子类型?
Well this is your reason and this is your plugin.
好吧,这是您的原因,这是您的插件。 p>
Note :注意:You can use the standart WordPress options for those parameters:您可以为这些参数使用标准的WordPress选项:type, post_status, order, order_by, posts_per_page类型,岗位状态,订单,订购者,帖子每页 strong> p>You don’t find your functionality ? 找不到功能吗? strong> Custom Post Type Lister is Open Source plugin, which means that you can contribute to it.自定义帖子类型列表器是开源 strong>插件,这意味着您可以为此做贡献。Yup that’s right!是的,没错!If you don’t find the needed functionality just add it.如果找不到所需的功能,请添加它。Here is the repository.这是 存储库 strong>。Cheers!干杯! p>
Note :注意:You can use the standart WordPress options for those parameters:您可以为这些参数使用标准的WordPress选项:type, post_status, order, order_by, posts_per_page类型,岗位状态,订单,订购者,帖子每页
Note :
注意:
You can use the standart WordPress options for those parameters:
您可以为这些参数使用标准的WordPress选项:
type, post_status, order, order_by, posts_per_page
类型,岗位状态,订单,订购者,帖子每页
strong> p>
You don’t find your functionality ?
找不到功能吗? strong> Custom Post Type Lister is Open Source plugin, which means that you can contribute to it.自定义帖子类型列表器是开源 strong>插件,这意味着您可以为此做贡献。Yup that’s right!是的,没错!If you don’t find the needed functionality just add it.如果找不到所需的功能,请添加它。Here is the repository.这是 存储库 strong>。Cheers!干杯! p>
Custom Post Type Lister is Open Source plugin, which means that you can contribute to it.
自定义帖子类型列表器是开源 strong>插件,这意味着您可以为此做贡献。Yup that’s right!是的,没错!If you don’t find the needed functionality just add it.如果找不到所需的功能,请添加它。Here is the repository.这是 存储库 strong>。Cheers!干杯! p>
Yup that’s right!
是的,没错!
If you don’t find the needed functionality just add it.
如果找不到所需的功能,请添加它。
Here is the repository.
这是 存储库 strong>。Cheers!干杯! p>
Cheers!
干杯! p>
/wp-content/plugins/plugin-name
/ wp-content / plugins / plugin-name code>目录,或直接通过WordPress插件屏幕安装插件。 li>Activate the plugin through the ‘Plugins’ screen in WordPress通过WordPress中的“插件”屏幕激活插件 li>Use the Settings->Plugin Name screen to configure the plugin使用“设置”->“插件名称”屏幕来配置插件 li>
ol>
原文出处:http://www.sanshu.cn/a/9699.html
群主管理都是支付大佬