liquidicity      WordPress Help Sheet.


                             Basic Template Files                                                                   PHP Snippets for Header
  style.css               Style sheet le                       <?php bloginfo('name'); ?>                Title of the site
  index.php               Home page le                         <?php wp_title(); ?>                      Title of the speci c post or page
  single.php              Single post page le                  <?php bloginfo('stylesheet_url'); ?>      The style.css le's location
  archive.php             Archive/category le                  <?php bloginfo('pingback_url'); ?>        Pingback URL for the site
  searchform.php          Search form le                       <?php bloginfo('template_url'); ?>        Location for the site’s theme les
  search.php              Search content le                    <?php bloginfo('version'); ?>             WordPress version for the site
  404.php                 Error page le                        <?php bloginfo('atom_url'); ?>            Atom URL for the site
  comments.php            Comments template le                 <?php bloginfo('rss2_url'); ?>            RSS2 URL for the site
  footer.php              Footer content le                    <?php bloginfo('url'); ?>                 Exact URL for the site
  header.php              Header content le                    <?php bloginfo('name'); ?>                Name of the site
  sidebar.php             Sidebar content le                   <?php bloginfo('html_type'); ?>           HTML version of the site
  page.php                Single page le                       <?php bloginfo('charset'); ?>             Charset parameter of the site



                                                                     PHP Snippets for Templates                                          Extra Stu
   <?php the_content(); ?>                                   Content of the posts                       /%postname%/
   <?php if(have_posts()) : ?>                               Checks if there are posts                          header.php
                                                                                                        Custom permalinks              s
   <?php while(have_posts()) : the_post(); ?>                Shows posts if posts are available                                          i
                                                                                                        <?php include(TEMPLATEPATH . ‘/x’); ?>
   <?php endwhile; ?>                                        Closes the 'while' PHP function                                               d
                                                                                                        Include any file 1                   e
   <?php endif; ?>                                           Closes the 'if' PHP function                                                      b
         Lists
   <?php get_header(); ?>                                    Header.php le's content                    <?php the_search_query(); ?> a
                                                                                                                   index.php                     r
   <?php get_sidebar(); ?>                                   Sidebar.php le's content                   Value for search form                      .
                                                                                                                                                     p
   <?php get_footer(); ?>                                    Footer.php le's content                    <?php _e(’Message’); ?>                        h
   <?php the_time('m-d-y') ?>                                The date in '08-18-07' format                                                               p
                                                                                                        Prints out message
   <?php comments_popup_link(); ?>                           Link for the comments on the post
                                                                                                        <?php wp_register(); ?>
                                                                                                                footer.php
   <?php the_title(); ?>                                     Title of a speci c post or page
   <?php the_permalink() ?>                                  Url of a speci c post or page              Displays the register link
   <?php the_category(', ') ?>                               Category of a speci c post or page         <?php wp_loginout(); ?>
   <?php the_author(); ?>                                    Author of a speci c post or page           Displays the login/logout link 2
   <?php the_ID(); ?>                                        ID of a speci c post or page               <!--next page-->
   <?php edit_post_link(); ?>                                Link to edit a speci c post or page
                                                                                                        Divides the content into pages
   <?php get_links_list(); ?>                                Links from the blogroll
                                                                                                        <!--more-->
   <?php comments_template(); ?>                             Comment.php le’s content
   <?php wp_list_pages(); ?>                                 List of pages of the                       Cuts off the content and adds a link to
                                                                                                        the rest of the content
   <?php wp_list_cats(); ?>                                  List of categories for the site
                                                                                                        <?php wp_meta(); ?>
   <?php next_post_link(' %link ') ?>                        Url to the next post
   <?php previous_post_link('%link') ?>                      Url to the previous post                   Meta for administrators
   <?php get_calendar(); ?>                                  The built-in calendar                      <?php timer_stop(1); ?>
   <?php wp_get_archives() ?>                                List of archives for the site              Time to load the page
   <?php posts_nav_link(); ?>                                Next and previous post link                <?php echo get_num_queries(); ?>
   <?php bloginfo(’description’); ?>                         Site’s description
                                                                                                        Queries to load the page

   1                              2
       Replace x with file name       Only for registered useres



                                                                                                   © 2007 Go Squared Ltd. & WPCandy

Word Press Help Sheet

  • 1.
    liquidicity WordPress Help Sheet. Basic Template Files PHP Snippets for Header style.css Style sheet le <?php bloginfo('name'); ?> Title of the site index.php Home page le <?php wp_title(); ?> Title of the speci c post or page single.php Single post page le <?php bloginfo('stylesheet_url'); ?> The style.css le's location archive.php Archive/category le <?php bloginfo('pingback_url'); ?> Pingback URL for the site searchform.php Search form le <?php bloginfo('template_url'); ?> Location for the site’s theme les search.php Search content le <?php bloginfo('version'); ?> WordPress version for the site 404.php Error page le <?php bloginfo('atom_url'); ?> Atom URL for the site comments.php Comments template le <?php bloginfo('rss2_url'); ?> RSS2 URL for the site footer.php Footer content le <?php bloginfo('url'); ?> Exact URL for the site header.php Header content le <?php bloginfo('name'); ?> Name of the site sidebar.php Sidebar content le <?php bloginfo('html_type'); ?> HTML version of the site page.php Single page le <?php bloginfo('charset'); ?> Charset parameter of the site PHP Snippets for Templates Extra Stu <?php the_content(); ?> Content of the posts /%postname%/ <?php if(have_posts()) : ?> Checks if there are posts header.php Custom permalinks s <?php while(have_posts()) : the_post(); ?> Shows posts if posts are available i <?php include(TEMPLATEPATH . ‘/x’); ?> <?php endwhile; ?> Closes the 'while' PHP function d Include any file 1 e <?php endif; ?> Closes the 'if' PHP function b Lists <?php get_header(); ?> Header.php le's content <?php the_search_query(); ?> a index.php r <?php get_sidebar(); ?> Sidebar.php le's content Value for search form . p <?php get_footer(); ?> Footer.php le's content <?php _e(’Message’); ?> h <?php the_time('m-d-y') ?> The date in '08-18-07' format p Prints out message <?php comments_popup_link(); ?> Link for the comments on the post <?php wp_register(); ?> footer.php <?php the_title(); ?> Title of a speci c post or page <?php the_permalink() ?> Url of a speci c post or page Displays the register link <?php the_category(', ') ?> Category of a speci c post or page <?php wp_loginout(); ?> <?php the_author(); ?> Author of a speci c post or page Displays the login/logout link 2 <?php the_ID(); ?> ID of a speci c post or page <!--next page--> <?php edit_post_link(); ?> Link to edit a speci c post or page Divides the content into pages <?php get_links_list(); ?> Links from the blogroll <!--more--> <?php comments_template(); ?> Comment.php le’s content <?php wp_list_pages(); ?> List of pages of the Cuts off the content and adds a link to the rest of the content <?php wp_list_cats(); ?> List of categories for the site <?php wp_meta(); ?> <?php next_post_link(' %link ') ?> Url to the next post <?php previous_post_link('%link') ?> Url to the previous post Meta for administrators <?php get_calendar(); ?> The built-in calendar <?php timer_stop(1); ?> <?php wp_get_archives() ?> List of archives for the site Time to load the page <?php posts_nav_link(); ?> Next and previous post link <?php echo get_num_queries(); ?> <?php bloginfo(’description’); ?> Site’s description Queries to load the page 1 2 Replace x with file name Only for registered useres © 2007 Go Squared Ltd. & WPCandy