Praktické útržky kódu

**Title of the site**
/—code php

\—

**Basic URL of the site**
/—code php

\—
/—code php

\—

**Exact URL for the site (incl. path)**
/—code php

\—

**Name of the site**
/—code php

\—

**Site’s description**
/—code php

\—

**The style.css style’s location**
/—code php

\—

**The style.css style’s directory**
/—code php

\—

**Location for the site’s theme files**
/—code php

\—

**Title of the specific post or page**
/—code php


\—

**Url of a specific post or page**
/—code php

\—

**Category of a specific post or page**
/—code php

\—

**Author of a specific post or page**
/—code php

\—

**ID of a specific post or page**
/—code php

\—

**Link to edit a specific post or page**
/—code php

\—

**RSS2 URL for the site**
/—code php

\—

**Content of the posts**
/—code php

\—

**Header.php file’s content**
/—code php

\—

**Sidebar.php file’s content**
/—code php

\—

**Footer.php file’s content**
/—code php

\—

**The date in ’08-18-07′ format**
/—code php

\—

**Link for the comments on the post**
/—code php

\—

**Links from the blogroll**
/—code php

\—

**Comment.php file’s content**
/—code php

\—

**List of pages **
/—code php

\—

**List of categories**
/—code php

\—

**Url to the next post**
/—code php

\—

**Url to the previous post**
/—code php

\—

**The built-in calendar**
/—code php

\—

**List of archives for the site**
/—code php

\—

**Next and previous post link**
/—code php

\—

**Include any file**
/—code php

\—

**Value for search form**
/—code php

\—

**Prints out message**
/—code php

\—

**Displays the register link**
/—code php

\—

**Displays the login/logout link**
/—code php

\—

**Divides the content into pages**
/—code php

\—

**Cuts off the content and adds a link to the rest of the content**
/—code php

\—

**This snippet will include the file specified, only if the user is on the home page of the site**
/—code php

\—

**Styling Difierent Categories**

This snippet assigns a specific stylesheet (category-15.css) to category 15 and will assign the rest of the site the default stylesheet (style.css). Place this code in the area.
/—code php
/cat-15.css“
type=“text/css“ media=“screen“ />;

. Now you can style that individual post in the CSS as #post-8. Place this code within the loop.
/—code php

Navigace pro příspěvek