Sunteți pe pagina 1din 2

Wordpress Help Sheet

PHP Snippets for Header Title of the site <?php bloginfo('name');?> Title of specific post or page <?php wp_title();?> The style.css files theme location <?php bloginfo('stylesheet_url');?> Pingback URL for the site <?php bloginfo('pingback_url');?> Location for the sites theme file <?php blofinfo('template_url');?> Wordpress version for the site <?php blofinfo('version);?> Atom URL for the site <?php blofinfo('atom_url');?> Exact URL for the site <?php blofinfo('rss2_url');?> Name of the site <?php blofinfo('name');?> Html version of the site <?php blofinfo('html_type');?> Charset parameter of the site <?php blofinfo('charset');?> Basic Template Files Style sheet file Homepage 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 style.css index.php single.php archive.php searchform.php search.php 404.php comments.php footer.php header.php header.php page.php Additional Information /%postname%/ <?php include(TEMPLATEPATH.'/x');?> <?php the_search_query();?> <?php_e('Message');?> <?php wp_register();?> <?php wp_loginout();?> <!--next page--> <!--more--> <?php wp_meta();?> <?php timer_stop(1);?> <?php echo get_num_queries();?>

Custom permalinks Include any file Value for search form Prints out message Displays the register link Displays the login/logout link Divides the content into pages Cuts off the content Meta for administrators Time to load the page Queries to load the page

The Adsense Guild

Wordpress Help Sheet


PHP Snippets for Templates Author of a specific post or page <?php the_author();?> ID of a specific post or page <?php the_ID();?> Link to edit a specific post or page <?php edit_post_link();?> Links from the blogroll <?php get_links_list();?> Comment.php files content <?php comments_template();?> List of pages of the site <?php wp_list_pages();?> List of categories for the site <?php wp_list_cats();?> URL to the next post <?php next_post_link('%link')?> URL to the previous post <?php previous_post_link('%link')?> The built-in calendar <?php get_calendar();?> List of archives for the site <?php wp_get_archives()?> Next and previous post link <?php posts_nav_link();?> Sites description <?php bloginfo('description');?> PHP Snippets for Templates Content of the posts <?php the_content();?> Checks if there are posts <?php if(have_posts()):?> Shows posts if posts are available <?php while(have_posts()) : the_post();?> Closes the while PHP function <?php endwhile; ?> Closes the if PHP function <?php endif; ?> Header.php files content <?php get_header();?> Sidebar.php files content <?php get_sidebar();?> Footer.php files content <?php get_footer();?> The date in 04-18-11 format <?php the_time('m-d-y')?> Link for the comments on the post <?php comments_popup_link();?> Title of a specific post or page <?php the_title();?> URL of a specific post or page <?php the_permalink()?> Category of a specific post or page <?php the_category(',')?>

The Adsense Guild

S-ar putea să vă placă și