P. 1



|Views: 190|Likes:
Published by nicolargo
Wordpress theme memo
Wordpress theme memo

More info:

Published by: nicolargo on Jan 02, 2009
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less






WordPress Help Sheet.
Basic Template Files PHP Snippets for Header <?php bloginfo('name'); ?> <?php wp_title(); ?> <?php bloginfo('stylesheet_url'); ?> <?php bloginfo('pingback_url'); ?> <?php bloginfo('template_url'); ?> <?php bloginfo('version'); ?> <?php bloginfo('atom_url'); ?> <?php bloginfo('rss2_url'); ?> <?php bloginfo('url'); ?> <?php bloginfo('name'); ?> <?php bloginfo('html_type'); ?> <?php bloginfo('charset'); ?>
Title of the site Title of the speci c post or page The style.css le's location Pingback URL for the site Location for the site’s theme les WordPress version for the site Atom URL for the site RSS2 URL for the site Exact URL for the site Name of the site HTML version of the site Charset parameter of the site

style.css index.php single.php archive.php searchform.php search.php 404.php comments.php footer.php header.php sidebar.php page.php

Style sheet le Home page le Single post page le Archive/category le Search form le Search content le Error page le Comments template le Footer content le Header content le Sidebar content le Single page le

PHP Snippets for Templates <?php the_content(); ?> <?php if(have_posts()) : ?> <?php while(have_posts()) : the_post(); ?> <?php endwhile; ?> <?php endif; ?> Lists <?php get_header(); ?> <?php get_sidebar(); ?> <?php get_footer(); ?> <?php the_time('m-d-y') ?> <?php comments_popup_link(); ?> <?php the_title(); ?> <?php the_permalink() ?> <?php the_category(', ') ?> <?php the_author(); ?> <?php the_ID(); ?> <?php edit_post_link(); ?> <?php get_links_list(); ?> <?php comments_template(); ?> <?php wp_list_pages(); ?> <?php wp_list_cats(); ?> <?php next_post_link(' %link ') ?> <?php previous_post_link('%link') ?> <?php get_calendar(); ?> <?php wp_get_archives() ?> <?php posts_nav_link(); ?> <?php bloginfo(’description’); ?>

Extra Stu
/%postname%/ header.php Custom permalinks

Content of the posts Checks if there are posts Shows posts if posts are available Closes the 'while' PHP function Closes the 'if' PHP function Header.php le's content Sidebar.php le's content Footer.php le's content The date in '08-18-07' format Link for the comments on the post Title of a speci c post or page Url of a speci c post or page Category of a speci c post or page Author of a speci c post or page ID of a speci c post or page Link to edit a speci c post or page Links from the blogroll Comment.php le’s content List of pages of the List of categories for the site Url to the next post Url to the previous post The built-in calendar List of archives for the site Next and previous post link Site’s description

s i <?php include(TEMPLATEPATH . ‘/x’); ?> d 1 e Include any file b <?php the_search_query(); ?> a index.php r . Value for search form p h <?php _e(’Message’); ?> p Prints out message <?php wp_register(); ?> footer.php Displays the register link <?php wp_loginout(); ?> Displays the login/logout link 2 <!--next page--> Divides the content into pages <!--more--> Cuts off the content and adds a link to the rest of the content <?php wp_meta(); ?> Meta for administrators <?php timer_stop(1); ?> Time to load the page <?php echo get_num_queries(); ?> Queries to load the page

Replace x with file name


Only for registered useres

© 2007 Go Squared Ltd. & WPCandy

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->