Description
mywp_term
shortcode can be get the specific term.
Usage
This shortcode must be term id and “field” attribute is must have a value.
1 | [[mywp_term term_id="*" field="****"]] |
Attributes
field=”id“
Get the term ID.
1 | [[mywp_term term_id="1" field="id"]] |
Result
1
field=”name“
Get the term name.
1 | [[mywp_term term_id="1" field="name"]] |
Result
Uncategorized
field=”slug“
Get the term slug.
1 | [[mywp_term term_id="1" field="slug"]] |
Result
uncategorized
field=”link“
Get the term link.
1 | [[mywp_term term_id="1" field="link"]] |
Result
https://example.com/taxonomy/term
term_id=”****“
Get the specific term data.
1 | [[mywp_term term_id="1"]] |
This Post Has 0 Comments