archivespress-terms

Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

Definition
[archivespress-terms taxonomy="post_tag" orderby="name" /]
Attributes
Name
Type
Description
Default
_source
string
Internal output source identifier; normally leave this unset.
shortcode
layout
string
basic or compact.
basic
post_type
string
Public post type slug; default can be filtered.
post
order
string
Sort direction: asc or desc.
desc
taxonomy
string
Public taxonomy registered for the post type.
category
orderby
string
Sort by posts, id, name, or slug.
posts
columns
integer
Number of columns, rendered within 1–6.
4
show-counts
boolean
Show counts; use true or false.
true
class
string
Additional CSS class.
Empty
var-font-size
string
Optional font size; for example 16px.
Empty
var-line-height
string
Optional line height; for example 1.5.
Empty
var-background
string
Item background color.
Empty
var-color
string
Item text color.
Empty
Output
HTML index of matching terms, or an empty string when selection is invalid or no data exists.

Indexes terms assigned to published, non-password-protected posts. The definition shows example attributes, not a complete list. Style values are validated before output: font sizes require an accepted unit (except zero), line heights may be unitless or use px, em, rem, or %, and colors must use a supported color syntax. Invalid values are ignored.

Example

[archivespress-terms taxonomy="post_tag" orderby="name" order="asc"]
Rate this reference
0
0
5

You are not allowed to rate this post.

Leave a Comment

0
0
0
0
0
0
0
0
0