30 July Fri, 2010

Basic WordPress template file

Basic WordPress template file
A complete set of WordPress templates should be at least the following documents:

style.css: CSS (style sheet) file
index.php: Home Templates
archive.php: Archive / Category Templates
404.php: Not Found error page template
comments.php: Message / Reply Template
footer.php: Footer Template
header.php: Header templates
sidebar.php: Sidebar template
page.php: content pages (Page) templates
single.php: page content (Post) template
searchform.php: template search form
search.php: search results template
Of course, specific to a particular section of a template, might have been more than these documents, but generally speaking, these documents are necessary for each template.

Tag to determine the basic conditions for
is_home (): whether to Home
is_single (): whether the content pages (Post)
is_page (): whether the content pages (Page)
is_category (): whether the Category / Archive Page
is_tag (): whether or not to Tag Archive pages
is_date (): whether the archive page for the specified date
is_year (): whether the archive page for the specified year
is_month (): whether or not to designate the month archive page
is_day (): whether or not for a specific day archive page
is_time (): whether the archive page for a specified period of time
is_archive (): whether or not to archive page
is_search (): whether the search results page
is_404 (): whether the “HTTP 404: Not Found” error page
is_paged (): Home / Category / Archive Page is a multi-page display
Header part of the PHP function used to
: blog name (Title)
: CSS file path
: PingBack Url
: template file path
: WordPress version
: Atom Url
: RSS 2.o Url
: blog Url
: the type of blog page Html
: blog page coding
: blog description
: page-specific content (Post / Page) of the title
PHP template commonly used functions and commands
: Call Header Template
: call Sidebar template
: call Footer Template
: display the contents of (Post / Page)
: check the existence of Post / Page
: If there Post / Page will be displayed
: While the end of
: If the end of
: show time, time format from “string” parameter determines the specific reference to PHP Manual
: the body of the message link. If you use comments_popup_script (), the message will open in a new window, on the contrary, in the current window
: page content (Post / Page) title
: page content (Post / Page) Url
: page-specific content (Post / Page) owned Category
: author
: page-specific content (Post / Page) ID
: If the user has to log in and have permission to show the Edit link
: display the link in the Blogroll
: Call Message / Reply Template
: Showing Page List
: display the list of Categories
: under an article link
: on an article link
: Calendar
: display the contents of archive
: navigation, display a / under the link to an article
: embedded in other documents, for customizable templates, or other type of document
Template associated with the other function
: output the corresponding information
: display the registration link
: show the logon / logoff link
: the content of the current page
: the content of the current cut-off in order to not be home / directory page displays the entire contents of
: page load time (seconds)
: page load queries

  • PHP and MySQL 5

    Beginning PHP 5 and MySQL: From Novice to Professional offers a comprehensive introduction to two of the most popular open source technologies on the planet: the PHP scripting language and the MySQL database server.

    Read More | Postd by Ltm.ming
  • Base AJAX Codes and Examples

    Make your Web pages stand out above the noise with JavaScript and the expert instruction in this much-anticipated update to the bestselling JavaScript Bible.

    Read More | Postd by Ltm.ming
  • Mastering CSS with DW CS3

    Durch Integration von Datenbankanbindung und Skriptsprachen wird Dreamweaver CS 4 zum alltagstauglichen Werkzeug für die Erstellung einfacher Redaktionssysteme.

    Read More | Postd by Ltm.ming
  • Pro JavaScript Techniques

    Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites.

    Read More | Postd by Ltm.ming
  • MySQL 5.0 Certification Study Guide

    This book is a very comprehensive guide to what MySQL offers and can teach you. br / br /Would definitely recommend for anyone needing a great book about MySQL.

    Read More | Postd by Ltm.ming
fashion handbags wow gold Hermes Birkin Bags Knockoff bag air max 2010 chanel handbags cheap golf clubs