GlobalWork on all pages and hierarchy.
|
Shortcode |
Usage |
Attributes |
Description |
---|
mtw_bloginfo |
[mtw_bloginfo key="name"]
|
$key
|
based on get_bloginfo()
|
mtw_sidebar |
[mtw_sidebar]
|
$name (optional)
|
Display the WordPress sidebar
|
mtw_get_term_link |
[mtw_get_term_link term="my-cat"]
[mtw_get_term_link term="my-tag" taxonomy="tag"]
|
$term (require) Slug of the term
$taxonomy (optional) Name of the taxonomy, default: "category"
|
Get the url to a category, tag or custom taxonomy.
Use in a Muse hyperlink
|
single / item |
Shortcode |
Usage |
Attributes |
Description |
---|
mtw_title |
[mtw_title]
|
-
|
Can be use to display title for:
- post
- page
- custom post
- archive
- term
|
mtw_content |
[mtw_content max="100"]
|
$max (optional) maximum number of letters to display
|
Display content for post, page and custom post type
|
mtw_excerpt |
[mtw_excerpt]
|
-
|
Returns the excerpt of the post.
|
mtw_permalink |
[mtw_permalink]
|
-
|
Get the post url. Use it in an item to go on the single post.
Use in a Muse hyperlink.
|
mtw_date |
[mtw_date]
|
-
|
Display publish date for post, page and custom post type
|
mtw_post_count_comments |
[mtw_post_count_comments]
|
-
|
Get the number of comments
|
mtw_get_next_post_url |
[mtw_get_next_post_url]
|
$in_same_term (optional) Whether post should be in a same taxonomy term
$taxonomy (optional) Taxonomy name, if $in_same_term is true.
|
Use in single. Get next post url.
Use in a Muse hyperlink.
|
mtw_get_prev_post_url |
[mtw_get_prev_post_url]
|
$in_same_term (optional) Whether post should be in a same taxonomy term
$taxonomy (optional) Taxonomy name, if $in_same_term is true.
|
Use in single. Get previous post url.
Use in a Muse hyperlink.
|
mtw_back_to_archive_url |
[mtw_back_to_archive_url]
|
-
|
Get the url of the post list, based on the current post type.
Use in a Muse hyperlink.
|
mtw_categories |
[mtw_categories]
|
-
|
Return categories of current post with hyperlink and separator ","
|
mtw_tags |
[mtw_tags]
|
-
|
Return tags of current post with hyperlink and separator ","
|
mtw_tax |
[mtw_tax tax="product_category"]
|
$taxonomy (optional) The taxonomy for which to retrieve terms. Default: "category"
|
Return terms of current post with hyperlink and separator ","
|
mtw_author_name |
[mtw_author_name]
|
-
|
Get the author "display name" on page, post or custom post.
|
mtw_author_avatar |
[mtw_author_avatar size="32"]
|
$size
|
|
mtw_author_meta |
[mtw_author_meta key="description"]
|
$key
$author_id
|
|
mtw_post_meta |
[mtw_post_meta key="my_meta"]
|
$key
|
A post meta is also named custom field in WordPress
|
category / tag / term |
Shortcode |
Usage |
Attributes |
Description |
---|
mtw_term_meta |
[mtw_term_meta key="your_field"]
|
$key
|
[!] Introduced in WP 4.4.0
|
mtw_term_description |
[mtw_term_description]
|
-
|
Return description of catergory, tag or term.
|