- Visit Plugins > Add New
- 访问 strong>插件>添加新内容 li>
- Search for “Albnet Shortcodes”
- 搜索 strong>以查找“ Albnet简码” li>
- Activate Albnet Shortcodes from your Plugins page
- 激活 strong>“插件”页面中的Albnet简码 li>
- Click on the new menu item “Albnet Shortcodes” to views plugin settings!
- 单击 strong>在新菜单项“ Albnet简码”上查看插件设置! li>
- Read the documentation to get started
- 阅读 strong>文档以入门 li
>
>
ol>
Use [albnet_shortcode] to show plugin in code.
使用[albnet_shortcode]显示代码中的插件。 p>
Shortcodes options:
简码选项: p>
layout: card, horizontal, slideshow, archive
布局 strong>:卡片,水平,幻灯片,存档
Block layout
区块布局 p>
show_ads: boolean
show_ads strong>:布尔值
Show Ads
显示广告 p>
ads_step: number
ads_step strong>:编号
Ads frequency to show
广告展示频率 p>
image_size: 300×300
图片大小 strong>:300×300
Thumbnail image size
缩略图图像大小 p>
title: string
标题 strong>:字符串
Section title
栏目标题 p>
post_type: string
post_type strong>:字符串
Post type for filter loop
过滤器循环的帖子类型 p>
posts_per_page: int
posts_per_page strong>:int
Posts per page
每页的帖子数 p>
paged: int
分页 strong>:int
Current page
当前页面 p>
show_pagination: boolean
show_pagination strong>:布尔值
Show pagination (for achive layout only)
显示分页(仅针对主动布局) p>
offset: int
偏移量 strong>:int
Number to start from getting posts
从获取帖子开始的数字 p>
taxonomy: string
分类 strong>:字符串
Taxonomy to filter (default: category)
要过滤的分类法(默认:类别) p>
field: string
字段 strong>:字符串
Field to filter (default: slug)
要过滤的字段(默认值:slug) p>
terms: string
术语 strong>:字符串
Terms to filter
过滤条件 p>
only_with_thumb: boolean
only_with_thumb strong>:布尔值
Show only posts with featured image
只显示带有特色图片的帖子 p>
show_thumb: boolean
show_thumb strong>:布尔值
Show thumbnail
显示缩略图 p>
show_video: boolean
show_video strong>:布尔值
Show video player embeded
显示嵌入的视频播放器 p>
show_title: boolean
show_title strong>:布尔值
Show post title
显示帖子标题 p>
show_excerpt: boolean
show_excerpt strong>:布尔值
Show post title
显示帖子标题 p>
show_author: boolean
show_author strong>:布尔值
Show author
显示作者 p>
show_date: boolean
显示日期 strong>:布尔值
Show date
显示日期 p>
show_times_ago: boolean
show_times_ago strong>:布尔值
Show time ago
显示时间前 p>
show_category: boolean
show_category strong>:布尔值
Show category
显示类别 p>
show_comments: boolean
show_comments strong>:布尔值
Show comments count
显示评论数 p>
title_icon: string
title_icon strong>:字符串
Title to show before icon.
图标前显示的标题。
Accept HTML.
接受HTML。
Default is empty
默认为空 p>
container_class: string
container_class strong>:字符串
Class to loop container.
类来循环容器。
Default: empty
默认值:空 p>
item_class: string
item_class strong>:字符串
Class to add to item in loop.
要添加到循环中的项目的类。
Default: empty
默认值:空 p>