wordpress cheat sheet for designers and developers

1
header.php footer.php index.php sidebar.phpWordPress Help Sheet. <?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'); ?> WordPress Help Sheet. WordPress Help Sheet. liquidicity liquidicity style.css index.php single.php archive.php searchform.php search.php 404.php comments.php footer.php header.php sidebar.php page.php Basic Template Files Style sheet file Lists PHP Snippets for Header © 2007 Go Squared Ltd. & WPCandy Home page file Single post page file Archive/category file Search form file Search content file Error page file Comments template file Footer content file Header content file Sidebar content file Single page file Title of the site Title of the specific post or page The style.css file's location Pingback URL for the site Location for the site’s theme files 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 <?php the_content(); ?> <?php if(have_posts()) : ?> <?php while(have_posts()) : the_post(); ?> <?php endwhile; ?> <?php endif; ?> <?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’); ?> PHP Snippets for Templates 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 file's content Sidebar.php file's content Footer.php file's content The date in '08-18-07' format Link for the comments on the post Title of a specific post or page Url of a specific post or page Category of a specific post or page Author of a specific post or page ID of a specific post or page Link to edit a specific post or page Links from the blogroll Comment.php file’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 Extra Stuff /%postname%/ Custom permalinks <?php include(TEMPLATEPATH . ‘/x’); ?> Include any file <?php the_search_query(); ?> Value for search form <?php _e(’Message’); ?> Prints out message <?php wp_register(); ?> Displays the register link <?php wp_loginout(); ?> Displays the login/logout link <!--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 2 1 1 Replace x with file name 2 Only for registered useres

Upload: susan

Post on 13-Jan-2015

218 views

Category:

Documents


0 download

TRANSCRIPT

header.php

footer.php

index.php

sidebar.php

WordPress Help Sheet.

<?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'); ?>

WordPress Help Sheet.WordPress Help Sheet.liquidicityliquidicity

style.cssindex.phpsingle.phparchive.phpsearchform.phpsearch.php404.phpcomments.phpfooter.phpheader.phpsidebar.phppage.php

Basic Template Files

Style sheet �le

Lists

PHP Snippets for Header

© 2007 Go Squared Ltd. & WPCandy

Home page �leSingle post page �leArchive/category �leSearch form �leSearch content �leError page �leComments template �leFooter content �leHeader content �leSidebar content �leSingle page �le

Title of the siteTitle of the speci�c post or pageThe style.css �le's locationPingback URL for the siteLocation for the site’s theme �lesWordPress version for the siteAtom URL for the siteRSS2 URL for the siteExact URL for the siteName of the site HTML version of the siteCharset parameter of the site

<?php the_content(); ?><?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?><?php endwhile; ?><?php endif; ?><?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’); ?>

PHP Snippets for Templates

Content of the postsChecks if there are postsShows posts if posts are availableCloses the 'while' PHP functionCloses the 'if' PHP functionHeader.php �le's contentSidebar.php �le's contentFooter.php �le's contentThe date in '08-18-07' formatLink for the comments on the postTitle of a speci�c post or pageUrl of a speci�c post or pageCategory of a speci�c post or pageAuthor of a speci�c post or pageID of a speci�c post or pageLink to edit a speci�c post or pageLinks from the blogrollComment.php �le’s contentList of pages of the List of categories for the siteUrl to the next postUrl to the previous postThe built-in calendarList of archives for the siteNext and previous post linkSite’s description

Extra Stu�

/%postname%/

Custom permalinks

<?php include(TEMPLATEPATH . ‘/x’); ?>

Include any file

<?php the_search_query(); ?>

Value for search form

<?php _e(’Message’); ?>

Prints out message

<?php wp_register(); ?>

Displays the register link

<?php wp_loginout(); ?>

Displays the login/logout link

<!--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

2

1

1 Replace x with file name 2 Only for registered useres