Home » Social Media » Blogging » List of WordPress Parameters, Values, and Template Tags

List of WordPress Parameters, Values, and Template Tags

List of WordPress Parameters, Values, and Template Tags

Cheat Sheet to WordPress Theme

A cheat sheet to the four core parameters to a WordPress theme.

Template Pages

Header.php – Displays the document header and navigation menus.
Sidebar.php – Displays widgets.
Footer.php – Displays footer just before closing the body tag.
Index.php – Displays a list of posts in excerpt or full-length form.
Archive.php – Displays the archives for tags, categories, date based posts or author based posts.
Page.php – Displays the page title and content, comments, and metadata associated/
Single.php – Displays the title and content, categories, and post tags.
Comments.php – Displays avatars, threaded comments, trackbacks/pingbacks.
Search.php – Displays a list of posts in excerpt or full length form.

Tags

General Tags: general-template.php
Author Tags: author-template.php
Post Thumbnail Tags: post-thumbnail-template.php
Category Tags: category-template.php
Navigation Menu Tags: nav-menu-template.php
Comment Tags: comment-template.php
Post Tags: post-template.php
Link Tags: link-template.php

Functions

Get_header(), get_footer(), get_sidebar() all accept a single parameter.
Get_template_part() accepts two parameters.
Get_bloginfo() returns information about the site which can be used elsewhere in the code.

Parameters

Name: Returns the site title from the blogname record.
Description: Returns the tagline from the blogdescription record.
URL/Home: Returns the site address (URL).
Charset: Returns the encoding for pages and fees.
Version: Returns the WordPress version you use.

Values

Post_author: User ID of the author.
Post_date: In the format yyyy-mm-dd
Post_title: Human readable post title.
Post_excerpt: Content of the excerpt, if one has been explicitly set.
Post_content: Similar to HTML view in editor. No paragraphs or line breaks.

About The Author
Although millions of people visit Brandon's blog each month, his path to success was not easy. Go here to read his incredible story, "From Disabled and $500k in Debt to a Pro Blogger with 5 Million Monthly Visitors." If you want to send Brandon a quick message, then visit his contact page here.