frequently used wordpress tags

STYLE.CSS HEADER

/*
Theme Name: My Site name
Description: an awesome theme that I built
Author: Your name
Author URI: http://www.yoursite.com
*/

HEADER STUFF

head tags

>



<?php
/*
* Print the <title> tag based on what is being viewed.
* We filter the output of wp_title() a bit -- see
* twentyten_filter_wp_title() in functions.php.
*/
wp_title( '|', true, 'right' );?>






* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to  such
* as styles, scripts, and meta tags.
*/
wp_head();
?>

BODY

>

Page content– THE LOOP



'' . __( 'Pages:', 'twentyten' ), 'after' => '' ) ); ?>

NAV MENU

 'menu-header', 'theme_location' => 'primary' ) ); ?>

SIDEBAR

FOOTER


* tag of your theme, or you will break many plugins, which
* generally use this hook to reference JavaScript files.
*/
wp_footer();
?>

OTHER USEFUL STUFF

insert post thumbnail



or give it a class of 'alignleft'...

 'alignleft'));?>

insert custom field

ID, 'right_box', true); ?>

add a second loop to a page

have_posts() ) : $blogquery->the_post(); ?>

Named Page Template


Insert a link to the post that you are listing (such as on the main blog list)


create an absolute link to a file that will not break when you migrate the site.

link text 

Want more in-depth training on this topic? Schedule a one-on-one training session!