AI助手支持GPT4.0
This plugin allow you to display post list in your page or post by using shortcode.
此插件可让您在页面中显示帖子列表或使用简码显示帖子。 p>
ul>
just put this shortcode in your post or pages
只需将此简码放在您的帖子或页面中 p>
[cat totalposts=”3″ category=”1,3″ thumbnail=”true” excerpt=”true” ]
[cat totalposts =” 3” category =” 1,3” thumbnail =“ true”摘录=” true”] p>
default is -1
默认值为-1 li>
use comma , for multiple id
使用逗号,以获取多个ID li>
default is false
默认为false li>
default is false.
默认为false。
Uses format set in WordPress Settings > General > Date Format
使用在WordPress设置>常规>日期格式中设置的格式 li>
default is true
默认为true li>
default post_date .
默认为post_date。
check https://codex.wordpress.org/Template_Tags/get_posts for detail
检查https://codex.wordpress.org/Template_Tags/get_posts了解详情 li>
thumbnail
缩略图 strong> * create custom field key as thumbnail-url and put your thumbnail url in the value area*将自定义字段键创建为缩略图网址,并将您的缩略图网址放入值区域 p>style at your own 自己的风格 strong> * you need to style your category-post-shortcode plugin in your style.css example*您需要在style.css示例中为您的category-post-shortcode插件设置样式 p>.cat-post{ .cat-post { width:100%;宽度:100%; }} .cat-post-list{ .cat-post-list { display: block; 显示:块; margin-bottom: 20px; 底边距:20px; position: relative;位置:相对; p>}} .cat-post-images{ .cat-post-images { float:left; float:left; width:140px; 宽度:140像素; display:block;display:block; }} p>.cat-content{ .cat-content { width:350px; 宽度:350像素; float:right;float:right; }} .cat-post-title{ .cat-post-title { display: block; 显示:块; width:100%;宽度:100%; }} .cat-post-date{ .cat-post-date { display: block; 显示:块; width:100%;宽度:100%; }} .cat-clear{ .cat-clear { clear:both;清除:两者; }} p>more info or sample, please visit http://ibnuyahya.com/wordpress-plugins/category-post-shortcode更多信息或示例,请访问http://ibnuyahya.com/wordpress-plugins/category-post-shortcode li> ol>
* create custom field key as thumbnail-url and put your thumbnail url in the value area
*将自定义字段键创建为缩略图网址,并将您的缩略图网址放入值区域 p>
style at your own
自己的风格 strong> * you need to style your category-post-shortcode plugin in your style.css example*您需要在style.css示例中为您的category-post-shortcode插件设置样式 p>.cat-post{ .cat-post { width:100%;宽度:100%; }} .cat-post-list{ .cat-post-list { display: block; 显示:块; margin-bottom: 20px; 底边距:20px; position: relative;位置:相对; p>}} .cat-post-images{ .cat-post-images { float:left; float:left; width:140px; 宽度:140像素; display:block;display:block; }} p>.cat-content{ .cat-content { width:350px; 宽度:350像素; float:right;float:right; }} .cat-post-title{ .cat-post-title { display: block; 显示:块; width:100%;宽度:100%; }} .cat-post-date{ .cat-post-date { display: block; 显示:块; width:100%;宽度:100%; }} .cat-clear{ .cat-clear { clear:both;清除:两者; }} p>more info or sample, please visit http://ibnuyahya.com/wordpress-plugins/category-post-shortcode更多信息或示例,请访问http://ibnuyahya.com/wordpress-plugins/category-post-shortcode li> ol>
* you need to style your category-post-shortcode plugin in your style.css example
*您需要在style.css示例中为您的category-post-shortcode插件设置样式 p>
.cat-post{
.cat-post {
width:100%;
宽度:100%;
}
.cat-post-list{
.cat-post-list {
display: block;
显示:块;
margin-bottom: 20px;
底边距:20px;
position: relative;
位置:相对; p>
.cat-post-images{
.cat-post-images {
float:left;
float:left;
width:140px;
宽度:140像素;
display:block;
display:block;
} p>
.cat-content{
.cat-content {
width:350px;
宽度:350像素;
float:right;
float:right;
.cat-post-title{
.cat-post-title {
.cat-post-date{
.cat-post-date {
.cat-clear{
.cat-clear {
clear:both;
清除:两者;
ol>
Install like any other basic plugin:
与其他任何基本插件一样安装: strong> p>Copy the category-post-shortcode folder to your /wp-content/plugins/ folder将category-post-shortcode文件夹复制到您的/ wp-content / plugins /文件夹中 p> li>Activate the Category Post Shortcode on your plugin-page.在插件页面上激活“ Category Post Shortcode”。 p> li> ol>
Copy the category-post-shortcode folder to your /wp-content/plugins/ folder
将category-post-shortcode文件夹复制到您的/ wp-content / plugins /文件夹中 p>
li>
Activate the Category Post Shortcode on your plugin-page.
在插件页面上激活“ Category Post Shortcode”。 p>
原文出处:http://www.sanshu.cn/a/6564.html
群主管理都是支付大佬