40 Shortcodes available via the Template Tag Shortcodes plugin
Template Tag Shortcodes is a plugin that turns many of the WordPress template tags into easy-to-use shortcodes that can be used in a post, page, text widget, header text, or footer text.
To use any of the following shortcodes, you need go to Dashboard → Plugins, and activate the Template Tags Shortcodes plugin.
The following information was taken from the plugin’s readme file.
Thank you to Justin Tadlock for writing the plugin.
Each of the shortcodes are listed below. Click the relevant link to see the WordPress Codex article which describes what each of the parameters do.
Author Shortcodes
[wp_list_authors]- Template Tag: wp_list_authors()
- Parameters:
optioncount,exclude_admin,show_fullname,hide_empty,feed,feed_image,style,html [the_author_meta]- Template Tag: the_author_meta()
- Parameters:
field,user_id [the_author]- Template Tag: the_author()
- This shortcode has no parameters.
[the_author_description]- Template Tag: the_author_description()
- This shortcode has no parameters.
[the_author_login]- Template Tag: the_author_login()
- This shortcode has no parameters.
[the_author_firstname]- Template Tag: the_author_firstname()
- This shortcode has no parameters.
[the_author_lastname]- Template Tag: the_author_lastname()
- This shortcode has no parameters.
[the_author_nickname]- Template Tag: the_author_nickname()
- This shortcode has no parameters.
[the_author_ID]- Template Tag: the_author_ID()
- This shortcode has no parameters.
[the_author_url]- Template Tag: the_author_url()
- This shortcode has no parameters.
[the_author_email]- Template Tag: the_author_email()
- This shortcode has no parameters.
[the_author_link]- Template Tag: the_author_link()
- This shortcode has no parameters.
[the_author_aim]- Template Tag: the_author_aim()
- This shortcode has no parameters.
[the_author_yim]- Template Tag: the_author_yim()
- This shortcode has no parameters.
[the_author_posts]- Template Tag: the_author_posts()
- This shortcode has no parameters.
[the_author_posts_link]- Template Tag: the_author_posts_link()
- This shortcode has no parameters.
[the_modified_author]- Template Tag: the_modified_author()
- This shortcode has no parameters.
Category Shortcodes
[wp_list_categories]- Template Tag: wp_list_categories()
- Parameters:
show_option_all,order,orderby,show_last_update,style,show_count,hide_empty,use_desc_for_title,child_of,feed,feed_image,exclude,include,current_category,hierarchical,title_li,echo,depth,number [wp_dropdown_categories]- Template Tag: wp_dropdown_categories()
- Parameters:
show_option_none,show_option_all,order,orderby,show_last_update,style,show_count,hide_empty,use_desc_for_title,child_of,feed,feed_image,exclude,include,current_category,hierarchical,title_li,echo,depth,number,selected,name,class,postform [the_category]- Template Tag: the_category()
- Parameters:
separator,parents [get_category_link]- Template Tag: get_category_link()
- Parameters:
category_id
Date and Time Shortcodes
[the_date]- Template Tag: the_date()
- Parameters:
format,before,after [the_time]- Template Tag: the_time()
- Parameters:
format [the_modified_date]- Template Tag: the_modified_date()
- Parameters:
format [the_modified_time]- Template Tag: the_modified_time()
- Parameters:
format
Tag shortcodes
[wp_tag_cloud]- Template Tag: wp_tag_cloud()
- Parameters:
taxonomysmallest,largest,unit,number,format,order,orderby,exclude,include,link [the_tags]- Template Tag: the_tags()
- Parameters:
before,separator,after [get_tag_link]- Template Tag: get_tag_link()
- Parameters:
tag_id
Taxonomy shortcodes
[the_terms]- Parameters:
id,taxonomy,separator,before,after [term_description]- Template Tag: term_description()
- Parameters:
term,taxonomy
Bookmarks/Links shortcodes
[wp_list_bookmarks]- Template Tag: wp_list_bookmarks()
- Parameters:
categorize,category,exclude_category,category_name,category_before,category_after,class,category_orderby,category_order,title_li,title_before,title_after,show_private,include,exclude,orderby,order,limit,before,after,link_before,link_after,between,show_images,show_description,show_name,show_rating,show_updated,hide_invisible
Post Shortcodes
[the_title]- Template Tag: the_title()
- Parameters:
before,after [the_title_attribute]- Template Tag: the_title_attribute()
- Parameters:
before,after [the_ID]- Template Tag: the_ID()
- This shortcode has no parameters.
[the_permalink]- Template Tag: the_permalink()
- This shortcode has no parameters.
[get_permalink]- Template Tag: get_permalink()
- Parameters:
id [comments_link]- Template Tag: comments_link()
- This shortcode has no parameters.
General Shortcodes
[wp_list_pages]- Template Tag: wp_list_pages()
- Parameters:
depth,show_date,date_format,child_of,exclude,include,title_li,authors,sort_column,link_before,link_after,exclude_tree,sort_order,depth,hierarchical,meta_key,meta_value [wp_dropdown_pages]- Template Tag: wp_dropdown_pages()
- Parameters:
name,show_option_none,selected,depth,show_date,date_format,child_of,exclude,include,title_li,authors,sort_column,exclude_tree,sort_order,depth,hierarchical,meta_key,meta_value [wp_get_archives]- Template Tag: wp_get_archives()
- Parameters:
type,limit,format,before,after,show_post_count [bloginfo]- Template Tag: bloginfo()
- Parameters:
show [allowed_tags]- Template Tag: allowed_tags
- This shortcode has no parameters.
[wp_logout_url]- Template Tag: wp_logout_url()
- Parameters:
redirect [wp_login_url]- Template Tag: wp_login_url()
- Parameters:
redirect
