WordPress 3.0 Template Tags

Here is almost all the tags you will need to get started with developing your own WordPress themes.

❖TEMPLATES & FILES

  • 404.php
  • home.php
  • index.php
  • front-page.php
  • single.php
  • single-{post-type}.php
  • page.php
  • pag-{id}.php
  • page-{slug}.php
  • archive.php
  • category.php
  • category-{id}.php
  • category-{slug}.php
  • tag.php
  • tag-{id}.php
  • tag-{slug}.php
  • taxonomy.php
  • taxonomy-{taxonomy}.php
  • taxonomy-{taxonomy}-{term}.php
  • author.php
  • author-{id}.php
  • author-{nicename}.php
  • date.php
  • search.php
  • searchform.php
  • attachment.php
  • MIME_type.php (image.php, video.php..)
  • functions.php
  • style.css
  • editor-style.css

❖❖BLOGINFO TAGS

  • bloginfo(‘admin_email’);
  • bloginfo(‘atom_url’);
  • bloginfo(‘blogname’);
  • bloginfo(‘charset’);
  • bloginfo(‘comments_atom_url’);
  • bloginfo(‘comments_rss2_url’);
  • bloginfo(‘description’);
  • bloginfo(‘home’);
  • bloginfo(‘html_type’);
  • bloginfo(‘language’);
  • bloginfo(‘name’);
  • bloginfo(‘rdf_url’);
  • bloginfo(‘rss2_url’);
  • bloginfo(‘rss_url’);
  • bloginfo(‘site_url’);
  • bloginfo(‘stylesheet_directory ’);
  • bloginfo(‘stylesheet_url ’);
  • bloginfo(‘template_directory ’);
  • bloginfo(‘template_url’);
  • bloginfo(‘text_direction’);
  • bloginfo(‘url’);
  • bloginfo(‘version’);
  • bloginfo(‘wpurl’);
  • bloginfo_rss();
  • get_bloginfo();
  • get_bloginfo_rss()

❖❖TITLE TAGS

  • single_cat_title();
  • single_month_title();
  • single_post_title();
  • single_tag_title();
  • the_search_query();
  • wp_title();

❖❖INCLUDE TAGS

  • comments_template();
  • get_footer();
  • get_header();
  • get_search_form();
  • get_sidebar();
  • get_template_part();

❖❖MENU TAGS

  • wp_get_nav_menu();
  • wp_get_nav_menu_item();
  • wp_nav_menu();

❖❖CONDITIONAL TAGS

  • comments_open();
  • has_excerpt();
  • has_tag();
  • in_the_loop();
  • is_404();
  • is_active_sidebar();
  • is_admin();
  • is_archive();
  • is_attachment();
  • is_author();
  • is_category();
  • is_comments_popup();
  • is_date();
  • is_day();
  • is_feed();
  • is_front_page();
  • is_home();
  • is_month();
  • is_page();
  • is_page_template();
  • is_paged();
  • is_post_type_hierarchical();
  • is_preview();
  • is_search();
  • is_single();
  • is_singular();
  • is_sticky();
  • is_tag();
  • is_tax();
  • is_time();
  • is_trackback();
  • is_user_logged_in();
  • is_year();
  • pings_open();

❖❖LOGIN & LOGOUT TAGS

  • is_user_logged_in();
  • wp_login_form();
  • wp_login_url();
  • wp_loginout();
  • wp_logout();
  • wp_logout_url();
  • wp_lostpassword_url();
  • wp_register();
  • wp_registration_url();

❖❖LISTS & DROPDOWNS

  • wp_dropdown_categories();
  • wp_dropdown_pages();
  • wp_dropdown_users();
  • wp_get_archives();
  • wp_list_authors();
  • wp_list_bookmarks();
  • wp_list_categories();
  • wp_list_comments();
  • wp_list_pages();
  • wp_page_menu();

❖❖QUERY TAGS

  • get_posts();
  • query_posts();
  • rewind_posts();
  • wp_reset_query();

❖❖PERMALINK TAGS

  • get_permalink();
  • get_post_permalink();
  • permalink_anchor();
  • permalink_single_rss();
  • post_permalink();
  • the_permalink();

❖❖SHORTLINK TAGS

  • the_shortlink();
  • wp_get_shortlink();
  • wp_shortlink_header();
  • wp_shortlink_wp_head();

❖❖EDIT LINK TAGS

  • edit_bookmark_link();
  • edit_comment_link();
  • edit_post_link();
  • edit_tag_link();

❖❖POST TAGS

  • body_class();
  • next_image_link();
  • next_post_link();
  • next_posts_link();
  • post_class();
  • post_password_required();
  • posts_nav_link();
  • previous_image_link();
  • previous_post_link();
  • previous_posts_link();
  • single_post_title();
  • sticky_class();
  • the_category();
  • the_category_rss();
  • the_content();
  • the_content_rss();
  • the_excerpt();
  • the_excerpt_rss();
  • the_ID();
  • the_meta();
  • the_shortlink();
  • the_tags();
  • the_title();
  • the_title_attribute();
  • the_title_rss();
  • wp_link_pages();

❖❖POST THUMBNAIL TAGS

  • get_post_thumbnail_id();
  • get_the_post_thumbnail();
  • has_post_thumbnail();
  • the_post_thumbnail();

❖❖CATEGORY TAGS

  • category_description();
  • single_cat_title();
  • the_category();
  • the_category_rss();
  • wp_dropdown_categories();
  • wp_list_categories();

❖❖TAG TAGS

  • single_tag_title();
  • tag_description();
  • the_tags();
  • wp_generate_tag_cloud();
  • wp_tag_cloud();

❖❖AUTHOR TAGS

  • the_author();
  • the_author_link();
  • get_the_author_link();
  • the_author_meta();
  • the_author_posts();
  • the_author_posts_link();
  • wp_dropdown_users();
  • wp_list_authors();

❖❖DATE & TIME TAGS

  • get_calendar();
  • get_the_date();
  • single_month_title();
  • the_date();
  • the_date_xml();
  • the_modified_author();
  • the_modified_date();
  • the_modified_time();
  • the_time();

❖❖COMMENT TAGS

  • cancel_comment_reply_link();
  • comment_author();
  • comment_author_email();
  • comment_author_email_link();
  • comment_author_IP();
  • comment_author_link();
  • comment_author_rss();
  • comment_author_url();
  • comment_author_url_link();
  • comment_class();
  • comment_date();
  • comment_excerpt();
  • comment_form_title();
  • comment_form();
  • comment_ID();
  • comment_id_fields();
  • comment_reply_link();
  • comment_text();
  • comment_text_rss();
  • comment_time();
  • comment_type();
  • comments_link();
  • comments_number();
  • comments_popup_link();
  • comments_popup_script();
  • comments_rss_link();
  • get_avatar();
  • next_comments_link();
  • paginate_comments_links();
  • permalink_comments_rss();
  • previous_comments_link();
  • wp_list_comments();

❖❖LINKS MANAGER TAGS

  • get_bookmark();
  • get_bookmark_field();
  • get_bookmarks();
  • wp_list_bookmarks();

❖❖ATTACHMENT TAGS

  • get_attachment_link();
  • is_attachment();
  • the_attachment_link();
  • wp_attachment_is_image();
  • wp_get_attachment_image();
  • wp_get_attachment_image_src();
  • wp_get_attachment_metadata();

❖❖URL TAGS

  • get_admin_url();
  • get_home_url();
  • get_search_link();
  • get_site_url();
  • home_url();
  • the_feed_link();
  • wp_ajaxurl();
Did you like this? Share it: