Blogging Fusion » Wordpress Cheat Sheet

Search Traffic, Engagement, Popularity, Unique Visitors, Audience Geography, Increase Website Traffic


Wordpress Cheat Sheet

What you need to know about Wordpress Themes, Wordpress Theme files, Wordpress Tags, Wordpress Globals and Wordpress Themes Basic Structure.
SHARE THIS PAGE ON:

Templates: The basic files and theme structure

style.css
The themes style sheet.
footer.php
The global footer file.
header.php
The global header file
sidebar.php
The global sidebar file
page.php
The single page file.
archive.php
The archive and category file.
searchform.php
The search form file.
search.php
The search file returns the search results to a file.
404.php
The error page file.
comments.php
The comments file.

Templates: The include tags.

<?php get_header(); ?>
Includes the header.php file from your theme.
<?php get_sidebar(); ?>
Includes the sidebar.php file from your theme.
<?php get_footer(); ?>
Includes the footer.php file from your theme.
<?php comments_template(); ?>
Includes the comments.php file from your theme.

Templates: Theme definition and details. File readme.txt

##################################################
# Theme Name: Blogging Fusion
# Theme URI: https://www.bloggingfusion.com/free-templates/
# Author: Blogging Fusion Blog Directory
# Author URI: https://www.bloggingfusion.com
# Description: Theme description and details
# Version: 2.0
# License: GNU General Public License v3 or later
# License URI: http://www.gnu.org/licenses/gpl-3.0.html
# Tags: left-sidebar, right-sidebar, full-width-template, one-column, two-columns, fluid-layout,
# responsive-layout, theme-options, custom-background, custom-header, custom-menu, editor-style,
# featured-images, post-formats, sticky-post , translation-ready
##################################################

Templates: The Template Tags for Pages and Posts

Wordpress: PAGES AND POSTS
<?php the_title(); ?>
Displays the Title of the Pages and Post.
<?php the_content(); ?>
Displays the content of the Pages and Post.
<?php the_excerpt(); ?>
Displays the excerpt of the Pages and Post.
<?php the_date(); ?>
Displays the published date of Pages and Post.
<?php the_time(); ?>
Displays the published time of Pages and Post.
<?php the_category(); ?>
Displays the Category of the Post.
<?php the_permalink(); ?>
Displays the URL of Pages and Post permalink.
<?php the_ID(); ?>
Displays the Number ID of the Post or Page.
<?php the_author(); ?>
Displays the author of Pages and Post.
<?php post_nav_link(); ?>
Displays previous and next page links.
<?php next_post_link(); ?>
Displays the newer Post links.
<?php previous_post_link(); ?>
Displays the previous Post links.
<?php edit_post_link(_('Edit Post')); ?>
Displays Edit Post links.
<?php the_search_query(); ?>
Displays the search form value.
Wordpress: Lists
<?php wp_list_pages(); ?>
Displays the Pages.
<?php wp_tag_cloud(); ?>
Displays the tag cloud.
<?php wp_list_cats(); ?>
Displays the Categories.
<?php get_calendar(); ?>
Displays the Calendar.
<?php wp_get_archive(); ?>
Displays the Archive by Date.
<?php get_links_list(); ?>
Displays the blogroll Links.
Wordpress: Admin and Login
<?php wp_register(); ?>
Displays a Register Link.
<?php wp_loginout(); ?>
Displays a Login/Log Out link.
<?php wp_meta(); ?>
Displays the Admin Meta.

Templates: The Header Tags

<?php bloginfo('name'); ?>
The blogs Title.
<?php bloginfo('url'); ?>
The blogs web URL.
<?php bloginfo('stylesheet_url'); ?>
The stylesheet location.
<?php bloginfo('template_url'); ?>
The location of the theme files.
<?php bloginfo('atom_url'); ?>
The Atom URL of the blog.
<?php bloginfo('rss2_url'); ?>
The RSS2 URL of the blog.
<?php bloginfo('charset'); ?>
The Charset for the blog.
<?php bloginfo('pingback_url'); ?>
The Pingback URL of the blog.
<?php bloginfo('version'); ?>
The Wordpress Version of the blog.
<?php bloginfo('html_type'); ?>
The HTML version of the blog.

Templates: The Miscellaneous Tags

<?php timer_stop(1); ?>
Displays pageload time.
<?php include(TEMPLATEPATH.'*/*/*'); ?>
Include files from Theme Folder.
<?php _e('Message'); ?>
Prints out a Message.
<!– – next page – –>
Divides content into Pages.
<!– – more – –>
Cuts content and adds link to readmore.
<?php echo get_num_gueries(); ?>
How many Queries to load a page.
Notes:
***
Replace with filename(s) seperated with a forward /
Wordpress & Blogging Fusion Blog Directory © 2017