AW WordPress Yearly Category Archives has two (2) shortcodes available, both of which are required for the plugin to function properly.
AW WordPress年度类别归档文件提供了两(2)个短代码,插件必须使用这两个短代码才能正常运行。 h4>
Follow the instructions below to use the plugin.
按照以下说明使用插件。 p>
The first shortcode is [aw_year_links cat="X" postslug="slug-to-post-or-page"]
, which is used to build and display the year links. 第一个简码是 [aw_year_links cat =“ X” postslug =“ slug-to-post-or-page”] code>,用于构建和显示年份链接。
strong> p>
The following list explains this shortcode’s usage and requirements.
以下列表说明了此简码的用法和要求。 p>
- This shortcode has two (3) attributes.
- 此短代码具有两(3)个属性。
Two (2) are required, and one (1) is optional.
两(2)是必需的,一(1)是可选的。
li>
- The
cat="X"
attribute is the category ID you wish to display yearly links from. -
cat =“ X” code>属性是您希望从中显示年度链接的类别ID。Replace the X with the numerical ID of the category you wish to query.
将X替换为您要查询的类别的数字ID。
You may include a comma separated list of category IDs with this attribute if you want to query multiple categories.
如果要查询多个类别,则可以在此属性中包括一个用逗号分隔的类别ID列表。
This attribute is required.
此属性为必填项。 strong> li>- The
postslug="slug-to-post-or-page"
attribute is the slug to the page that will display your yearly archived posts. -
postslug =“ slug-to-post-or-page” code>属性是对将显示您的年度存档帖子的页面的提示。This is also the slug of the page you will include the second shortcode on.
这也是您将在其中包含第二个简码的页面的一部分。
This attribute is required.
此属性为必填项。 strong> li>- The
dropdown="yes"
attribute will allow a dropdown select input to be used in place of the standard unordered list of the year links. -
dropdown =“ yes” code>属性将允许使用下拉选择输入来代替年份链接的标准无序列表。 This attribute is optional and can be left off completely.
此属性是可选的,可以完全省略。 strong> li>- Place this shortcode where you would like to display the year links to the specified category.
- 将此简码放在您要显示指向指定类别的年份链接的位置。 li>
ul>
The second shortcode is [aw_show_posts cat="X" readmore="Continue Reading" publishedon="n/j/Y"]
, which is used to display the post content after 第二个短代码为 [aw_show_posts cat =“ X” readmore =“ Continue Reading” Published on =“ n / j / Y”] code>,用于在之后显示帖子内容click a year link.
点击年份链接。 strong> p>
The following list explains this shortcode’s usage and requirements.
以下列表说明了此简码的用法和要求。 p>
- This shortcode has three (3) attributes.
- 此短代码具有三(3)个属性。
One (1) is required, and two (2) are optional.
一(1)是必需的,两(2)是可选的。
li>
- The
cat="X"
attribute is the category ID you wish to display yearly archived posts from. -
cat =“ X” code>属性是您希望从中显示年度存档帖子的类别ID。Replace the X with the numerical ID of the category you wish to query.
将X替换为您要查询的类别的数字ID。
You may include a comma separated list of category IDs with this attribute if you want to query multiple categories.
如果要查询多个类别,则可以在此属性中包括一个用逗号分隔的类别ID列表。
This attribute is required.
此属性为必填项。 strong> li>- The
readmore="Continue Reading"
attribute is the text you wish to display for the “Read More” link. -
readmore =“继续阅读” code>属性是您希望为“阅读更多”链接显示的文本。This attribute is optional and will default to “Read More” if left out.
此属性是可选的,如果省略,则默认为“更多”。
li>
- The
publishedon="n/j/Y"
attribute is the PHP date format the published on date will appear in the archived posts. -
publishedon =“ n / j / Y” code>属性是PHP的日期格式,该日期的发布日期将显示在已归档的帖子中。This attribute is optional and will default to “M jS, Y” if left out.
该属性是可选的,如果省略,则默认为“ M jS,Y”。
Refer here for further info on the PHP date format.
有关PHP日期格式的更多信息,请此处。 li>
- The
showsubheader="no"
attribute is used to display a subheader above the post output that says which category and year is being displayed. -
showsubheader =“ no” code>属性用于在帖子输出上方显示一个子标题,该标题显示要显示的类别和年份。it will read like this: Category: Example Category Name – Year: 20XX.
将会显示为:类别:示例类别名称-年:20XX strong>。This is an optional shortcode attribute.
这是一个可选的shortcode属性。
If left off the shortcode the subheader will be shown.
如果省略短代码,将显示子标题。
Use showsubheader="no"
to not output the subheader.
使用 showsubheader =“ no” code>不输出子标题。 This attribute is optional and can be left off completely.
此属性是可选的,可以完全省略。 strong> li>- Place this shortcode where you would like to display your archived posts.
- 将此简码放在您要显示已存档帖子的位置。 li>
ul>
Additional Notes
附加说明 strong> p>