WordPress at a glance
Home Functions Template Tags Main Functions

Main Functions (category)

bloginfo()

Displays information about the current site.

calendar_week_mod()

Get number of days since the start of the week.

get_bloginfo()

Retrieves information about the current site.

get_calendar()

Display calendar with days that have posts as links.

get_current_blog_id()

Retrieve the current site ID.

get_footer()

Includes the footer.php template file from your current theme's directory. If a $name is specified then footer-{name}.php file will be included.

get_header()

Includes the header.php template file from your current theme's directory. If a $name is specified then header-{name}.php file will be included.

get_search_form()

Display search form.

get_sidebar()

Includes the sidebar.php template file from your current theme's directory. If a $name is specified then sidebar-{name}.php will be included.

get_template_part()

Searches for and connects the specified theme file. Like include(), but no need to specify the path to the template.

is_404()

Checks whether the 404 error page is displayed (HTTP 404: page not found). Conditional tag.

is_active_sidebar()

Whether a sidebar is in use.

is_admin()

Whether the current request is for an administrative interface page.

is_archive()

Conditional tag. Return true when any of the archive pages are shown (Year, Category, Author, Post Type archive...).

is_attachment()

Is the query for an existing attachment page?

is_author()

Is the query for an existing author archive page?

is_category()

Conditional tag. Checks whether the category page is displayed or not.

is_comment_feed()

Is the query for a comments feed?

is_date()

Determines whether the date archive page is displayed. Conditional tag.

is_day()

Determines whether a day archive page is shown (example.com/2009/08/05) — page with posts for a specific day. A conditional tag.

is_dynamic_sidebar()

Whether the dynamic sidebar is enabled and used by theme.

is_embed()

Is the query for an embedded post?

is_feed()

Is the query for a feed?

is_front_page()

Checks whether the main (home) page of the site is displayed. Conditional tag.

is_home()

The conditional tag that checks if the page with the last posts is displayed, usually it is the main page of the site or the blog homepage.

is_month()

Determines whether a monthly archive page is shown (example.com/2009/08) — page with posts for a specific month. A conditional tag.

is_page_template()

Whether currently in a page template.

is_paged()

Checks whether the pagination page is displayed (page type /page/2, /page/3). Conditional tag.

is_post_type_archive()

Is the query for an existing post type archive page?

is_preview()

Is the query for a post or page preview?

is_search()

Works when the search results page is displayed. Conditional tag.

is_single()

Checks whether the post page of any post type except attachment and page is displayed. Conditional tag.

is_singular()

Checks whether the post page is viewed (post, page, attachment, any post type). Conditional Tag.

is_ssl()

Checks whether secure HTTPS (SSL) connection is used. A conditional tag.

is_sticky()

Check if post is sticky.

is_tag()

Is the query for an existing tag archive page?

is_tax()

Works on the custom taxonomy archive page. Conditional tag.

is_year()

Determines whether a year archive page is shown (example.com/2009) — page with posts for a specific year. A conditional tag.

post_type_archive_title()

Display or retrieve title for a post type archive.

register_sidebar()

Builds the definition for a single sidebar and returns the ID.

setup_postdata()

Set up the global post data. Useful for easy usage of Template Tags related to the design of the post: the_title(), the_permalink(), etc.

the_archive_description()

Display category, tag, term, or author description.

the_archive_title()

Display the archive title based on the queried object.

wp_enqueue_script()

Adds a script (JavaScript file) to the page.

wp_enqueue_style()

Adds a CSS stylesheet file to the page. Also registers the stylesheet file if it wasn't registered.

wp_footer()

Fire the wp_footer action.

wp_get_archives()

Display archive links based on type and format.

wp_get_document_title()

Returns document title for the current page.

wp_head()

Fire the wp_head action.

wp_login_form()

Provides a simple login form for use anywhere within WordPress.

wp_login_url()

Retrieves the login URL.

wp_loginout()

Display the Log In/Out link.

wp_logout_url()

Retrieves the logout URL. Returns the URL that allows the authorized user to log out of the site.

wp_lostpassword_url()

Returns the URL that allows the user to retrieve the lost password

wp_register()

Displays either the link to the dashboard ("Site Admin") if the user is logged in or "Register" link if the user is not logged in.

wp_title()

Display or retrieve page title.