| 62 | | <li>Copy wp-config.sample.php to wp-config.php. Open wp-config.php in a text editor and modify the variables as explained in the comments. Comments are lines that start with <code>/*</code> or <code>//</code></li> |
|---|
| 63 | | <li>Upload everything. This release is designed to sit in your root folder, IE the folder where your WordPress-powered page will reside.</li> |
|---|
| 64 | | <li>The weblogs.com cache file needs to be writable by the web server. <a href="http://www.evolt.org/article/A_quick_and_dirty_chmod_Tutorial/18/541/">CHMOD 666</a> the <code>weblogs.com.changes.cache</code> file. </li> |
|---|
| 65 | | <li> Launch <a href="wp-admin/install.php">wp-admin/install.php</a> in your browser. This should setup the MySQL database for your blog. If there is an error, double check your wp-config.php file, and try again. If it fails again, please go to the <a href="http://wordpress.org/support/">support forums</a> and make a post with all the information about the failure (error messages, etc), and your setup (the PHP and MySQL versions on your server, and the browser you were using). <strong>Note the password given to you.</strong></li> |
|---|
| 66 | | <li> Go to <a href="wp-login.php">wp-login.php</a> and sign in with the login "admin" and the password given to you by the install script. Then click on the menu 'My Profile', and change the password. Note: you need javascript enabled to launch the profile popup window.</li> |
|---|
| | 83 | <li>Open <span class="file">wp-config-sample.php</span> in a text editor and insert your database name, username, password, and host name as indicated in the comments. (Comments are lines that start with <code>/*</code> or <code>//</code>.) Save this file as <span class="file">wp-config.php</span>.</li> |
|---|
| | 84 | <li>Upload everything. This release is designed to sit in your root folder; i.e, the folder where your WordPress-powered page will reside.</li> |
|---|
| | 85 | <li>The weblogs.com cache file needs to be writable by the web server. <a href="http://www.evolt.org/article/A_quick_and_dirty_chmod_Tutorial/18/541/">CHMOD 666</a> the <span class="file"><code>weblogs.com.changes.cache</code></span> file. </li> |
|---|
| | 86 | <li> Launch <span class="file">/wpfolder/wp-admin/install.php</a></span> in your browser. This should setup the MySQL database for your blog. <strong>Note the password given to you.</strong> If there is an error, double check your wp-config.php file, and try again. If it fails again, please go to the <a href="http://wordpress.org/support/">support forums</a> and make a post with all the information about the failure (error messages, etc), and your setup (the PHP and MySQL versions on your server, and the browser you were using). </li> |
|---|
| | 87 | <li> During step 2 of the installation, make sure you enter a fully-qualified domain name for your blog url. For example: <span class="file">http://www.yoursite.com/wordpress</span> . Make sure there is no trailing slash at the end of the url.</li> |
|---|
| | 88 | <li> The install script should then send you to the login page. Sign in with the username "admin" and the password generated during the installation. Then click on the item 'My Profile', and change the password. The login page may also be accessed by going to <span class="file">/wpfolder/wp-login.php</span>. Note: you need javascript enabled to launch the profile popup window.</li> |
|---|
| 73 | | <li> Your site's blog is on wp.php (simple template) and index.php (CSS template), you can rename this file to index.php or any other name you fancy (provided it bears the php extension or is interpreted as a php file by your server).</li> |
|---|
| 74 | | <li> You can also copy wp.php into a new file and modify that new file, it will work too ;)</li> |
|---|
| 75 | | </ul> |
|---|
| 76 | | <h2>Upgrading from b2 v0.6.1 to WordPress v0.7:</h2> |
|---|
| 77 | | <ul> |
|---|
| 78 | | <li>All you <em>really</em> have to do is replace all the files with newer versions and run <a href="wp-admin/import-b2.php">wp-admin/import-b2.php</a> and you should be ready to go.</li> |
|---|
| | 95 | <li> By default, your site's blog is located at <span class="file">index.php</span>, which is an elaborate .CSS-based template. There is a non-.CSS template you can also use, called <span class="file">wp.php</span>. You can rename either of these files as any other name you fancy (provided it bears the php extension or is interpreted as a php file by your server).</li> |
|---|
| | 96 | </ul> |
|---|
| | 97 | |
|---|
| | 98 | <h2>Preface for all upgrades:</h2> |
|---|
| | 99 | <ul><li><strong>Back up</strong> your database before you do anything. </li> |
|---|
| | 100 | <li>If you haven't already, we strongly suggest that you <strong>BACK UP</strong> your database.</li> |
|---|
| | 101 | <li>Have you <strong>BACKED UP</strong> your database? Yeah? GREAT!</li> |
|---|
| | 102 | <li>If you don't know how to do this, <a href="http://wordpress.org/support/10/1384">this script</a> can help.</li> |
|---|
| | 103 | </ul> |
|---|
| | 104 | |
|---|
| | 105 | <h2>Upgrading from WordPress v0.7x to v1.0:</h2> |
|---|
| | 106 | <ul> |
|---|
| | 107 | <li><strong>Backup your database.</strong> Yes, you. Right now.</li> |
|---|
| | 108 | <li>Point your browser to <span class="file">/wp-admin/upgrade.php.</span></li> |
|---|
| | 109 | <li>You wanted more, perhaps? That's it!</li> |
|---|
| | 110 | </ul> |
|---|
| | 111 | <h2>Note on upgrading to v1.0:</h2> |
|---|
| | 112 | <ul> |
|---|
| | 113 | <li>It is <strong>strongly</strong> recommended that you use the new <span class="file"> index.php</span> for your templates, rather than simply upgrading your old one. Sure, it'll take a little time, but you'll be much happier with the results when you do!</li> |
|---|
| | 114 | |
|---|
| | 115 | <h2>Upgrading from b2 v0.6.1/v0.6.2.2 to WordPress v1.0:</h2> |
|---|
| | 116 | <ul> |
|---|
| | 117 | <li><strong>Back up</strong> your database before you do anything. Yes, you. Right now.</li> |
|---|
| | 118 | <li>You <em>must</em> configure <span class="file"><code>wp-config.php</code></span> as indicated in the "5-minute install" section.</li> |
|---|
| | 119 | <li>All you <em>really</em> have to do is replace all the files with newer versions and run <span class="file">wp-admin/upgrade.php</span> and you should be ready to go.</li> |
|---|
| | 120 | <li>There is also an import script at <span class="file">wp-admin/import-b2.php</span>.</li> |
|---|
| 83 | | <li><strong>Back up</strong> your database before you do anything. Yes, you. Right now.</li> |
|---|
| 84 | | </ul> |
|---|
| | 124 | </ul> |
|---|
| | 125 | |
|---|
| | 126 | <h2>Upgrading to WordPress v1.0 from Textpattern, GreyMatter, & Blogger</h2> |
|---|
| | 127 | <ul> |
|---|
| | 128 | <li>Did we mention <strong>BACKING UP</strong> your database first?</li> |
|---|
| | 129 | <li>Each of these tools has an import script available. They are all located in the wp-admin directory, and must first be configured with your database information before they are executed. |
|---|
| | 130 | <li>Detailed importing instructions are given during the execution of the import script. |
|---|
| | 131 | <li>Textpattern: run <span class="file">wp-admin/import-textpattern.php</span>.</li> |
|---|
| | 132 | <li>GreyMatter: run <span class="file">wp-admin/import-greymatter.php</span>.</li> |
|---|
| | 133 | <li>Blogger: run <span class="file">wp-admin/import-blogger.php</span>.</li> |
|---|
| | 134 | </ul> |
|---|
| | 135 | |
|---|
| 108 | | <strong><?php the_date() ?></strong> <br /> |
|---|
| 109 | | the date of the post. example: 03.07.01 (default is dd.mm.yy).<br /> |
|---|
| 110 | | the date is displayed only on new days. for example if you got 10 posts on the same day, the date for this day is displayed only once.<br /> |
|---|
| | 159 | |
|---|
| | 160 | |
|---|
| | 161 | <ul><h2>Blog data tag:</h2> |
|---|
| | 162 | <li><strong><span class="tag"><?php bloginfo() ?></span></strong> <br /> </li> |
|---|
| | 163 | This tag is out of the WordPress loop.<br /> |
|---|
| | 164 | It outputs info about your weblog.<br /> |
|---|
| | 165 | <div class="params">Parameters: |
|---|
| | 166 | <ul> |
|---|
| | 167 | <li>string: can be 'name' to display the name of your weblog (you set it in the options page), 'url', 'description', 'admin_email', 'rss_url' to display the URL of your wp-rss2.php file, 'pingback_url' to display the URL of your xmlrpc.php file<br /> |
|---|
| | 168 | (default string is 'name')</li> |
|---|
| | 169 | </ul> |
|---|
| | 170 | </div> |
|---|
| | 171 | </ul> |
|---|
| | 172 | |
|---|
| | 173 | |
|---|
| | 174 | <ul><h2> Date and Time tags: </h2> |
|---|
| | 175 | |
|---|
| | 176 | <li><strong><span class="tag"><?php the_date() ?></span></strong> <br /></li> |
|---|
| | 177 | The date of the post. example: 03.07.01 (default is dd.mm.yy).<br /> |
|---|
| | 178 | The date is displayed only on new days. For example, if you write 10 posts on the same day, the date is displayed only once.<br /> |
|---|
| 127 | | <strong>Note:</strong> you can change the way the date & time are displayed in the Options page.<br /> |
|---|
| 128 | | once you understand the format strings for the date & time (explained in the Options page), you can change the display right on the template: for example, <strong>the_date(</strong><em>"d.m.Y"</em><strong>)</strong> to have dates like 25.12.2001, <strong>the_time(</strong><em>"B"</em><strong>)</strong> to have Swatch Internet Time.<br /> |
|---|
| 129 | | If you change the display of the date on the template, changing it from the options page won't have any effect.br /> <br /> |
|---|
| 130 | | <strong>Note about the_date():</strong> if you want all your posts to bear the date, you'll have to use the_time() instead, with a date format string. for example, to have all your posts show like "25.12.2001 @ 8:04:50 AM" you'll have the_time("d.m.Y @ g:i:s A"). you can also repeat this template tag 2 times with 2 different formats: the_time("d.m.Y") for the date, and then later the_time("g:i:s A") for the time of the day.<br /> |
|---|
| 131 | | <br /> |
|---|
| 132 | | <strong><?php the_weekday() ?></strong><br /> |
|---|
| | 196 | <strong>Note:</strong> You can change the way the date & time are displayed in the Options page.<br /> |
|---|
| | 197 | Once you understand the format strings for the date & time (explained in the Options page), you can change the display right on the template: for example, you can change <strong>the_date(</strong><em>"d.m.Y"</em><strong>)</strong> to have dates like 25.12.2001, or <strong>the_time(</strong><em>"B"</em><strong>)</strong> to have Swatch Internet Time.<br /> |
|---|
| | 198 | If you change the display of the date on the template, changing it from the options page won't have any effect. <br /> |
|---|
| | 199 | </ul> |
|---|
| | 200 | <br /> |
|---|
| | 201 | <h2>Deprecated date/time tags:</h2> |
|---|
| | 202 | <ul> |
|---|
| | 203 | <li><span class="tag"><?php the_weekday() ?></span><br /> </li> |
|---|
| 134 | | <strong>Note: this tag is OBSOLETE, the_time() and the_date() now use weekdays/months from day-month-trans.php</strong><br /> |
|---|
| 135 | | <br /> |
|---|
| 136 | | <strong><?php the_weekday_date() ?></strong> <br /> |
|---|
| 137 | | Like the_weekday(), but works like the_date(), in that it would appear only on new days.<br /> |
|---|
| | 205 | <strong>Note: this tag is OBSOLETE, as the_time() and the_date() now use weekdays/months from day-month-trans.php</strong><br /> |
|---|
| | 206 | <br /> |
|---|
| | 207 | <li><span class="tag"><?php the_weekday_date() ?></span> <br /> </li> |
|---|
| | 208 | Like the_weekday(), but works like the_date(), in that it will appear only on new days.<br /> |
|---|
| 145 | | <br /> |
|---|
| 146 | | <br /> |
|---|
| 147 | | <strong><?php the_ID() ?><br /> |
|---|
| 148 | | </strong>the ID (number) of the post.<br /> |
|---|
| 149 | | <br /> |
|---|
| 150 | | <strong><?php the_title() ?><br /> |
|---|
| 151 | | </strong>The title of the post.<br /> |
|---|
| | 216 | </ul> |
|---|
| | 217 | <br /> |
|---|
| | 218 | <br /> |
|---|
| | 219 | <ul><h2>Post/Content tags:</h2> |
|---|
| | 220 | |
|---|
| | 221 | <li><strong><span class="tag"><?php the_ID() ?></span></strong><br /></li> |
|---|
| | 222 | The ID (number) of the post. <br /> |
|---|
| | 223 | <br /> |
|---|
| | 224 | <li><strong><span class="tag"><?php the_title() ?></span></strong><br /> </li> |
|---|
| | 225 | The title of the post.<br /> |
|---|
| 160 | | <strong><?php the_content() ?> <br /> |
|---|
| 161 | | </strong>The text of the post.<br /> |
|---|
| 162 | | <div class="params">Parameters: |
|---|
| 163 | | <ul> |
|---|
| 164 | | <li>text to display for the link to the complete entry (default is <em>'(more...)'</em>)</li> |
|---|
| 165 | | <li>0 or 1, whether you want to show the teaser message or not, when showing the complete text (default is 1)</li> |
|---|
| 166 | | <li>a filename of another template, if you want the 'more' link to link to a different template for the complete text of the extended entry (default is the current template)</li> |
|---|
| | 234 | <li><strong><span class="tag"><?php the_content() ?> </span></strong><br /></li> |
|---|
| | 235 | The text of the post.<br /> |
|---|
| | 236 | <div class="params">Parameters: |
|---|
| | 237 | <ul> |
|---|
| | 238 | <li>text to display for the link to the complete entry (default is <em>'(more...)'.</em>)</li> |
|---|
| | 239 | <li>0 or 1, indicating whether you want to show the teaser message when showing the complete text (default is 1).</li> |
|---|
| | 240 | <li>a filename of another template, if you want the 'more' link to link to a different template for the complete text of the extended entry (default is the current template).</li> |
|---|
| 177 | | <strong><?php next_post() ?> <br /> |
|---|
| 178 | | </strong>Displays a link to the next post(s). (Generally you might want to use that tag only in single-post templates)<br /> |
|---|
| | 251 | <li><strong><span class="tag"><?php single_post_title() ?></span></strong> <br /></li> |
|---|
| | 252 | This tag is out of the WordPress loop.<br /> |
|---|
| | 253 | It outputs the title of the post when you load the page with ?p= (see 'Usage' section for explanation). When the weblog page is loaded without ?p=, this tag doesn't display anything. Generally, you could use it like this:<br /> |
|---|
| | 254 | <title><?php bloginfo('name') ?><?php single_post_title() ?></title><br /> |
|---|
| | 255 | <div class="params">Parameters: |
|---|
| | 256 | <ul> |
|---|
| | 257 | <li>prefix string that will appear before the post's title (default is ' :: ')</li> |
|---|
| | 258 | </ul> |
|---|
| | 259 | </div> |
|---|
| | 260 | <br /> |
|---|
| | 261 | <br /> |
|---|
| | 262 | <li><strong><span class="tag"><?php next_post() ?></span></strong> <br /></li> |
|---|
| | 263 | Displays a link to the next post(s). (Generally you might want to use this only in single-post templates)<br /> |
|---|
| 185 | | <li>number: which next post ? if you make it '2', the 2nd next post is linked instead of the 1st next one (default is "1", which means first next post)</li> |
|---|
| 186 | | </ul> |
|---|
| 187 | | </div> |
|---|
| 188 | | <br /> |
|---|
| 189 | | <br /> |
|---|
| 190 | | <strong><?php previous_post() ?> <br /> |
|---|
| 191 | | </strong>Displays a link to the previous post(s). (Generally you might want to use that tag only in single-post templates)<br /> |
|---|
| | 270 | <li>number: which next post ? If you make it '2', the 2nd next post is linked instead of the 1st next one (default is "1", which means first next post)</li> |
|---|
| | 271 | </ul> |
|---|
| | 272 | </div> |
|---|
| | 273 | <br /> |
|---|
| | 274 | <br /> |
|---|
| | 275 | <li><strong><span class="tag"><?php single_month_title() ?></span></strong><br /><li> |
|---|
| | 276 | This tag is out of the WordPress loop.<br /> |
|---|
| | 277 | It outputs the name of the month when you load the page with ?m= (see 'Usage' section for explanation). When the weblog page is loaded without ?m=, this tag doesn't display anything. Generally, you could use it like this:<br /> |
|---|
| | 278 | <title><?php bloginfo('name') ?><?php single_month_title() ?></title><br /> |
|---|
| | 279 | <div class="params">Parameters: |
|---|
| | 280 | <ul> |
|---|
| | 281 | <li>prefix string that will appear before the month's name (default is ' :: ')</li> |
|---|
| | 282 | </ul> |
|---|
| | 283 | </div> |
|---|
| | 284 | <br /> |
|---|
| | 285 | <br /> |
|---|
| | 286 | <li><strong><span class="tag"><?php previous_post() ?></span></strong><br /></li> |
|---|
| | 287 | Displays a link to the previous post(s). (Generally you might want to use this only in single-post templates)<br /> |
|---|
| 198 | | <li>number: which previous post ? if you make it '2', the 2nd previous post is linked instead of the 1st previous post (default is "1", which means first previous post)</li> |
|---|
| 199 | | </ul> |
|---|
| 200 | | </div> |
|---|
| 201 | | <br /> |
|---|
| 202 | | <br /> |
|---|
| 203 | | <strong><?php next_posts() ?> <br /> |
|---|
| 204 | | </strong>Display the URL portion of a link to the next set of posts. <br /> |
|---|
| 205 | | Generally you would use this in a template to navigate to the next "set" of posts when the "Show Options" settings for the site is set to "posts paged". The displayed string can be used to construct a link. When the site options are not set to 'posts paged", the next and previous functions will display nothing.<br /> |
|---|
| | 294 | <li>number: which previous post ? If you make it '2', the 2nd previous post is linked instead of the 1st previous post (default is "1", which means first previous post)</li> |
|---|
| | 295 | </ul> |
|---|
| | 296 | </div> |
|---|
| | 297 | <br /> |
|---|
| | 298 | <br /> |
|---|
| | 299 | <li><strong><span class="tag"><?php next_posts() ?></span></strong> <br /></li> |
|---|
| | 300 | Display the URL portion of a link to the next set of posts. <br /> |
|---|
| | 301 | Generally you would use this in a template to navigate to the next "set" of posts when the "Show Options" settings for the site is set to "posts paged". The displayed string can be used to construct a link. When the site options are not set to 'posts paged", the next_posts() and previous_posts() functions will display nothing.<br /> |
|---|
| 222 | | <strong><?php previous_posts() ?> <br /> |
|---|
| 223 | | </strong>Displays the URL portion of a link to the previous posts.<br /> |
|---|
| 224 | | Generally you would use this in a template to navigate to the previous "set" of posts when the "Show Options" settings for the site is set to "posts paged". The displayed string can then be used to construct a link. When the site options are not set to 'posts paged", the next and previous functions will display nothing.<br /> |
|---|
| | 318 | <li><strong><span class="tag"><?php previous_posts() ?></span></strong> <br /></li> |
|---|
| | 319 | Displays the URL portion of a link to the previous posts.<br /> |
|---|
| | 320 | Generally you would use this in a template to navigate to the previous "set" of posts when the "Show Options" settings for the site is set to "posts paged". The displayed string can then be used to construct a link. When the site options are not set to 'posts paged", the next_posts() and previous_posts() functions will display nothing.<br /> |
|---|
| 271 | | Depending on the user's profile settings, it can display whether their nickname, login name, first name, last name, both first& last name, or last & first name. look below for more author-related template tags. <br /> |
|---|
| 272 | | <br /> |
|---|
| 273 | | <strong><?php the_category() ?><br /> |
|---|
| 274 | | </strong>the name of the category the post belongs to. you can as an admin add categories, and rename them if needed. default category is 'General', you can rename it too.<br /> |
|---|
| 275 | | <br /> |
|---|
| 276 | | <strong><?php the_category_ID() ?><br /> |
|---|
| 277 | | </strong>The ID (number) of the category the post belongs to. This is static data thatyou can use, for example to associate a category to an image, or a css style.<br /> |
|---|
| 278 | | <br /> |
|---|
| 279 | | <strong><?php trackback_rdf() ?> </strong><br /> |
|---|
| 280 | | This will include the RDF data that can be used by some weblog tools to locate your posts' trackback URLs.<br /> |
|---|
| 281 | | You should put this tag after the <?php the_content() ?> tag in your template, or just before the end of the loop.<br /> |
|---|
| 282 | | <br /> |
|---|
| 283 | | <strong><?php get_links_list() ?><br /> |
|---|
| | 370 | Depending on the user's profile settings, it can display whether their nickname, login name, first name, last name, both first& last name, or last & first name. See below for more author-related template tags. <br /> |
|---|
| | 371 | <br /> |
|---|
| | 372 | <strong>Want more</strong> about the author of the post? Here goes:<br /> |
|---|
| | 373 | <br /> |
|---|
| | 374 | <strong><span class="tag"><?php the_author_email() ?></span>- </strong> the author's email.<br /> |
|---|
| | 375 | <strong><span class="tag"><?php the_author_url() ?></span></strong> - the author's url.<br /> |
|---|
| | 376 | <strong<span class="tag">><?php the_author_icq() ?></span></strong> - the author's ICQ number.<br /> |
|---|
| | 377 | <strong><span class="tag"><?php the_author_aim() ?></span></strong> - the author's AIM handle.<br /> |
|---|
| | 378 | <strong><span class="tag"><?php the_author_yim() ?></span></strong> - the author's Yahoo Messenger handle.<br /> |
|---|
| | 379 | <strong><span class="tag"><?php the_author_msn() ?></span></strong> - the author's MSN Messenger handle.<br /> |
|---|
| | 380 | <strong><span class="tag"><?php the_author_posts() ?></span></strong> - the author's post count.<br /> |
|---|
| | 381 | <strong><span class="tag"><?php the_author_login() ?></span></strong> - the author's login name in WordPress. If you want some static data about the author, this is what you're searching for. You can, for example, associate a picture with an author, like this: <em><img src="pictures/<?php the_author_login() ?>.jpg" border="0"></em><br /> |
|---|
| | 382 | <strong><span class="tag"><?php the_author_ID() ?></span></strong> - the author's ID number in WordPress. This number is automatically set when the user registers: to see the ID of an user, go to the Team page. This is static data too, so you can use it like the_author_login() in associating stuff with authors.<br /> |
|---|
| | 383 | </ul> |
|---|
| | 384 | <br /> |
|---|
| | 385 | <br /> |
|---|
| | 386 | <ul><h2>Category tags:</h2> |
|---|
| | 387 | <li><strong><span class="tag"><?php the_category() ?></span></strong><br /></li> |
|---|
| | 388 | The name of the category the post belongs to. You can add categories, and rename them if needed. The default category is 'General'; you can rename it too.<br /> |
|---|
| | 389 | <br /> |
|---|
| | 390 | <li><strong><span class="tag"><?php the_category_ID() ?></span></strong><br /></li> |
|---|
| | 391 | The ID (number) of the category the post belongs to. This is static data that you can use; for example, to associate a category to an image, or a css style.<br /> |
|---|
| | 392 | <br /> |
|---|
| | 393 | <li><strong><span class="tag"><?php get_links_list() ?></span></strong><br /></li> |
|---|
| 324 | | <li>0 or 1. 1 means to generate the items inside <li> tags, to build an HTML list. 0 means to just follow each link with a <br /> tag. (default is 1)</li> |
|---|
| 325 | | <li>0 or 1. 1 means to display the date of the last post in each category (default is 0)</li> |
|---|
| 326 | | <li>0 or 1. 1 means to display a count of posts in each category (default is 0)</li> |
|---|
| 327 | | <li>0 or 1. 1 means to hide empty categories (default is 1)</li> |
|---|
| 328 | | </ul> |
|---|
| 329 | | </div> |
|---|
| 330 | | <br /> |
|---|
| 331 | | <strong><?php bloginfo() ?></strong> <br /> |
|---|
| 332 | | This tag is out of the WordPress loop.<br /> |
|---|
| 333 | | It outputs info about your weblog.<br /> |
|---|
| 334 | | <div class="params">Parameters: |
|---|
| 335 | | <ul> |
|---|
| 336 | | <li>string: can be 'name' to display the name of your weblog (you set it in the options page), 'url', 'description', 'admin_email', 'rss_url' to display the URL of your wp-rss2.php file, 'pingback_url' to display the URL of your xmlrpc.php file<br /> |
|---|
| 337 | | (default string is 'name')</li> |
|---|
| 338 | | </ul> |
|---|
| 339 | | </div> |
|---|
| 340 | | <br /> |
|---|
| 341 | | <strong><?php single_post_title() ?></strong> <br /> |
|---|
| 342 | | This tag is out of the WordPress loop.<br /> |
|---|
| 343 | | It outputs the title of the post when you load the page with ?p= (see 'Usage' section for explanation). When the weblog page is loaded without ?p=, this tag doesn't display anything. Generally, you could use it like this:<br /> |
|---|
| 344 | | <title><?php bloginfo('name') ?><?php single_post_title() ?></title><br /> |
|---|
| 345 | | <div class="params">Parameters: |
|---|
| 346 | | <ul> |
|---|
| 347 | | <li>prefix string that will appear before the post's title (default is ' :: ')</li> |
|---|
| 348 | | </ul> |
|---|
| 349 | | </div> |
|---|
| 350 | | <br /> |
|---|
| 351 | | <strong><?php single_cat_title() ?></strong> <br /> |
|---|
| | 435 | <li>0 or 1. 1 means generate the items inside <li> tags, to build an HTML list. 0 means to just follow each link with a <br /> tag. (default is 1)</li> |
|---|
| | 436 | <li>0 or 1. 1 means display the date of the last post in each category (default is 0)</li> |
|---|
| | 437 | <li>0 or 1. 1 means display a count of posts in each category (default is 0)</li> |
|---|
| | 438 | <li>0 or 1. 1 means hide empty categories (default is 1)</li> |
|---|
| | 439 | </ul> |
|---|
| | 440 | </div> |
|---|
| | 441 | </ul> |
|---|
| | 442 | <br /> |
|---|
| | 443 | |
|---|
| | 444 | <br /> |
|---|
| | 445 | <li><strong><span class="tag"><?php single_cat_title() ?></span></strong> <br /></li> |
|---|
| 360 | | <br /> |
|---|
| 361 | | <strong><?php single_month_title() ?></strong> <br /> |
|---|
| 362 | | This tag is out of the WordPress loop.<br /> |
|---|
| 363 | | It outputs the name of the month when you load the page with ?m= (see 'Usage' section for explanation). When the weblog page is loaded without ?m=, this tag doesn't display anything. Generally, you could use it like this:<br /> |
|---|
| 364 | | <title><?php bloginfo('name') ?><?php single_month_title() ?></title><br /> |
|---|
| 365 | | <div class="params">Parameters: |
|---|
| 366 | | <ul> |
|---|
| 367 | | <li>prefix string that will appear before the month's name (default is ' :: ')</li> |
|---|
| 368 | | </ul> |
|---|
| 369 | | </div> |
|---|
| 370 | | <br /> |
|---|
| 371 | | <strong>Note:</strong> The above three functions can be used together to produce the Title of the page:<br /> |
|---|
| 372 | | <title><?php bloginfo('name') ?><?php single_post_title(' :: ') ?><?php single_cat_title(' :: ') ?><?php single_month_title(' :: ') ?></title><br /> |
|---|
| 373 | | Only one, if any, of these functions will produce output, thus the page Title can be customize to the task being done. <br /> |
|---|
| 374 | | <br /> |
|---|
| 375 | | <br /> |
|---|
| 376 | | <strong>More about the author</strong> of the post ? Here goes:<br /> |
|---|
| 377 | | <br /> |
|---|
| 378 | | <strong><?php the_author_email() ?> - </strong> the author's email.<br /> |
|---|
| 379 | | <strong><?php the_author_url() ?></strong> - the author's url.<br /> |
|---|
| 380 | | <strong><?php the_author_email() ?></strong> - the author's number of posts.<br /> |
|---|
| 381 | | <strong><?php the_author_icq() ?></strong> - the author's ICQ number.<br /> |
|---|
| 382 | | <strong><?php the_author_aim() ?></strong> - the author's AIM handle.<br /> |
|---|
| 383 | | <strong><?php the_author_yim() ?></strong> - the author's Yahoo Messenger handle.<br /> |
|---|
| 384 | | <strong><?php the_author_msn() ?></strong> - the author's MSN Messenger handle.<br /> |
|---|
| 385 | | <strong><?php the_author_posts() ?></strong> - the author's post count.<br /> |
|---|
| 386 | | <strong><?php the_author_login() ?></strong> - the author's login name in WordPress. If you want some static data about the author, this is what you're searching for. You can, for example, associate a picture with an author, like this: <em><img src="pictures/<?php the_author_login() ?>.jpg" border="0"></em><br /> |
|---|
| 387 | | <strong><?php the_author_ID() ?></strong> - the author's ID number in WordPress. This number is automatically set when the user registers: to see the ID of an user, go to the Team page. This is static data too, so you can use it like the_author_login() in associating stuff with authors.<br /> |
|---|
| 388 | | <br /> |
|---|
| 389 | | <strong><br /> |
|---|
| 390 | | Tags for permalinks</strong> are:<br /> |
|---|
| 391 | | <br /> |
|---|
| 392 | | <strong><?php permalink_anchor() ?> </strong><br /> |
|---|
| 393 | | this will display <a name="..."></a>, replacing "..." with the ID or the title of the post in the database.<br /> |
|---|
| | 454 | |
|---|
| | 455 | <br /> |
|---|
| | 456 | |
|---|
| | 457 | <br /> |
|---|
| | 458 | |
|---|
| | 459 | <ul><h2>Permalink tags:</h2> |
|---|
| | 460 | <br /> |
|---|
| | 461 | <li><strong><span class="tag"><?php permalink_anchor() ?></span> </strong><br /></li> |
|---|
| | 462 | This will display <a name="..."></a>, replacing "..." with the ID or the title of the post in the database.<br /> |
|---|
| 401 | | <strong><?php permalink_link() ?> <br /> |
|---|
| 402 | | </strong>this will display the name of the file followed by #ID to link to the post, in the month archive if archive-mode is "monthly".<br /> |
|---|
| 403 | | note: this tag does not display the link, for this you've got to type <a href="<?php permalink_link() ?>">text of the link</a>.<br /> |
|---|
| | 470 | <li><strong><span class="tag"><?php permalink_link() ?></span></strong> <br /></li> |
|---|
| | 471 | This will display the name of the file followed by #ID to link to the post, in the month archive if archive-mode is "monthly".<br /> |
|---|
| | 472 | Note: This tag does not display the link. For that, you've got to type <a href="<?php permalink_link() ?>">text of the link</a>.<br /> |
|---|
| 412 | | <strong><?php permalink_single() ?> <br /> |
|---|
| 413 | | </strong>this will display the name of the file followed by #ID to link to the entire post (the linked page will also show the extended text on that post if it is an extended entry, and the comments).<br /> |
|---|
| 414 | | note: this tag does not display the link, for this you've got to type <a href="<?php permalink_single() ?>">text of the link</a>.<br /> |
|---|
| | 481 | <li><strong><span class="tag"><?php permalink_single() ?></span></strong><br /></li> |
|---|
| | 482 | This will display the name of the file followed by #ID to link to the entire post (the linked page will also show the extended text on that post if it is an extended entry, and the comments).<br /> |
|---|
| | 483 | Note: This tag does not display the link. For this you've got to type <a href="<?php permalink_single() ?>">text of the link</a>.<br /> |
|---|
| 490 | | <strong><?php comment_author() ?></strong><br /> |
|---|
| 491 | | <strong><?php comment_author_email() ?> </strong> - displays the e-mail address, but not the link<br /> |
|---|
| 492 | | <strong><?php comment_author_url() ?> </strong>- displays the url, but not the link<br /> |
|---|
| 493 | | <br /> |
|---|
| 494 | | <strong><?php comment_author_email_link() ?> </strong> - displays a link to the comment's author's e-mail<br /> |
|---|
| 495 | | <strong><?php comment_author_url_link() ?> </strong> - displays a link to the comment's author's website<br /> |
|---|
| | 560 | <li><strong><span class="tag"><?php comment_author() ?></span></strong><br /></li> |
|---|
| | 561 | <li><strong><span class="tag"><?php comment_author_email() ?></span> </strong></li> - displays the e-mail address, but not the link<br /> |
|---|
| | 562 | <li><strong><span class="tag"><?php comment_author_url() ?></span> </strong></li>- displays the url, but not the link<br /> |
|---|
| | 563 | <br /> |
|---|
| | 564 | <li><strong><span class="tag"><?php comment_author_email_link() ?></span> </strong></li> - displays a link to the comment's author's e-mail<br /> |
|---|
| | 565 | <li><strong><span class="tag"><?php comment_author_url_link() ?></span> </strong></li> - displays a link to the comment's author's website<br /> |
|---|
| 504 | | <strong><?php comment_author_IP() ?></strong> - displays the IP of the comment's author<br /> |
|---|
| 505 | | <strong><?php comment_text() ?><br /> |
|---|
| 506 | | <?php comment_date() ?> </strong>- unlike the_date(), this tag appears on every comment<strong><br /> |
|---|
| 507 | | <?php comment_time() ?></strong><br /> |
|---|
| | 574 | <li><strong><span class="tag"><?php comment_author_IP() ?></span></strong><br /></li> - displays the IP of the comment's author<br /> |
|---|
| | 575 | <li><strong><span class="tag"><?php comment_text() ?></span></strong><br /><li> - the content of the comment. |
|---|
| | 576 | <li><strong><span class="tag"><?php comment_date() ?></span> </strong><br /></li>- unlike the_date(), this tag appears on every comment<br /> |
|---|
| | 577 | <li><strong><span class="tag"><?php comment_time() ?></span></strong><br /></li> - |
|---|
| | 578 | Time the comment was posted. |
|---|