<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kent's Blog &#187; wordpress</title>
	<atom:link href="http://www.dswei.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dswei.com</link>
	<description>D.S.Wei &#124; Kent Deng</description>
	<lastBuildDate>Wed, 28 Jul 2010 18:05:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Show Category Name Tn The Current Post &#124; Wordperss</title>
		<link>http://www.dswei.com/2009/12/show-category-name-tn-the-current-post-wordperss/</link>
		<comments>http://www.dswei.com/2009/12/show-category-name-tn-the-current-post-wordperss/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 17:15:19 +0000</pubDate>
		<dc:creator>Kent</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.dswei.com/?p=222</guid>
		<description><![CDATA[This is acturally for wordpress&#8217;s breadcrumb navagation, when we want to show the category for the current category, we can use the code below, just for record
&#60;?php
foreach((get_the_category()) as $category) {
    echo $category-&#62;cat_name . ' ';
}
?&#62;

and you can replace the cat_name to be other category factors below

cat_ID 
the category id (also stored as [...]]]></description>
			<content:encoded><![CDATA[<p>This is acturally for <span class='bm_keywordlink'><a href="http://www.dswei.com/category/internet/wordpress-internet/">wordpress</a></span>&#8217;s breadcrumb navagation, when we want to show the category for the current category, we can use the code below, just for record</p>
<pre>&lt;?php
foreach((get_the_category()) as $category) {
    echo $category-&gt;cat_name . ' ';
}
?&gt;

and you can replace the cat_name to be other category factors below</pre>
<dl>
<dt>cat_ID </dt>
<dd>the category id (also stored as &#8216;term_id&#8217;) </dd>
<dt>cat_name </dt>
<dd>the category name (also stored as &#8216;name&#8217;) </dd>
<dt>category_nicename </dt>
<dd>a slug generated from the category name (also stored as &#8217;slug&#8217;) </dd>
<dt>category_description </dt>
<dd>the category description (also stored as &#8216;description&#8217;) </dd>
<dt>category_parent </dt>
<dd>the category id of the current category&#8217;s parent. &#8216;0&#8242; for no parents. (also stored as &#8216;parent&#8217;) </dd>
<dt>category_count </dt>
<dd>the number of uses of this category (also stored as &#8216;count&#8217;) </dd>
</dl>
<pre>

we can also use the code from <span class='bm_keywordlink'><a href="http://www.dswei.com/category/internet/wordpress-internet/">wordpress</a></span> directly,
 &lt;?php the_category(', '); ?&gt;
 &lt;?php the_title(); ?&gt;</pre>
<h4>Incoming search terms for the article:</h4><ul><li><a href="http://www.dswei.com/2009/12/show-category-name-tn-the-current-post-wordperss/" title="category of the current post">category of the current post</a></li></ul><!-- SEO SearchTerms Tagging 2 plugin took 0.057 ms -->]]></content:encoded>
			<wfw:commentRss>http://www.dswei.com/2009/12/show-category-name-tn-the-current-post-wordperss/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Wordpress:the date tag and the time tag</title>
		<link>http://www.dswei.com/2009/06/wordpressthe-date-tag-and-the-time-tag/</link>
		<comments>http://www.dswei.com/2009/06/wordpressthe-date-tag-and-the-time-tag/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 11:51:52 +0000</pubDate>
		<dc:creator>Kent</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.dswei.com/?p=30</guid>
		<description><![CDATA[I want to add a time tag before the title like 6/26/2009 wordpress: the date tag and the time tag
If so, it&#8217;s easies for me to understand what the date it post&#8230;
I try to login in different wordpress theme, and check the different style to show the time
and now, I think I fixed it.
here is some notice for me, and for [...]]]></description>
			<content:encoded><![CDATA[<p>I want to add a time tag before the title like 6/26/2009 <span class='bm_keywordlink'><a href="http://www.dswei.com/category/internet/wordpress-internet/">wordpress</a></span>: the date tag and the time tag</p>
<p>If so, it&#8217;s easies for me to understand what the date it post&#8230;</p>
<p>I try to login in different <span class='bm_keywordlink'><a href="http://www.dswei.com/category/internet/wordpress-internet/">wordpress</a></span> theme, and check the different style to show the time</p>
<p>and now, I think I fixed it.</p>
<p>here is some notice for me, and for you.</p>
<p> </p>
<p>Two common WordPress tag functions you will see in most themes are the time and date format tags: <code>&lt;?php the_date(); ?&gt;</code> and <code>&lt;?php the_time() ?&gt;</code>. These tags are used to return time and date information relating to the publishing of a post. Both of these functions accept a parameter that formats the way the date or time is displayed. This parameter is called a format string and can be thought of as a simple template describing how and what will appear. We are going to look at some of the options you have when formatting these functions.</p>
<p>Each character in these format strings represents one part of the object we are formatting. Let’s look at a simple example. Here is the date tag</p>
<blockquote>
<pre><code>&lt;?php the_time('m.d.Y'); ?&gt;</code></pre>
</blockquote>
<p>You will notice that I used the <code><span style="font-size: small; font-family: Lucida Console;">the_time</span></code> tag. This is because using the <code><span style="font-size: small; font-family: Lucida Console;">the_date</span></code> tag within the WordPress loop will fail to return two instances of the same date on the same page. As a general rule use <code><span style="font-size: small; font-family: Lucida Console;">the_time</span></code> when possible.</p>
<p> </p>
<p>If you want to display the date in European format, follow this sequence. With a simple rearranging of the format string, we end up with this code:</p>
<blockquote>
<pre><code>&lt;?php the_time('d.m.Y'); ?&gt;</code></pre>
</blockquote>
<p>What if you want to display the time and date in a different format altogether? Here are some options:</p>
<p> </p>
<h2 style="padding-top: 25px;">Format characters for the ‘day’</h2>
<p>D = abbreviated day of the week: e.g. Mon, Tue, Sun, etc.</p>
<p>d = date displayed as two digits, and single digit dates are led by a zero</p>
<p>j = date displayed as one digit</p>
<p>l (lowercase L) = full day of the week: e.g. Monday, Tuesday</p>
<p>N = number representing the day of the week: e.g. Mon.=&gt;1</p>
<p>S = suffix for numeric day of the month: e.g. st, nd, ect.</p>
<p>z = number representing the day of the year: 0-365</p>
<h2 style="padding-top: 25px;">Format characters for the ‘week’</h2>
<p>W = number representing the number of the week: ‘32′ week of year</p>
<h2 style="padding-top: 25px;">Format characters for the ‘month’</h2>
<p>F = full month: e.g. May, June</p>
<p>m = two digit number representing month, single digit dates are led by a zero</p>
<p>M = abbreviated month: e.g. Dec, June, etc.</p>
<p>n = one digit month</p>
<h2 style="padding-top: 25px;">Format characters for the ‘year’</h2>
<p>Y = four digit year: 2009</p>
<p>y = two digit year: 09</p>
<h2 style="padding-top: 25px;">Format characters for the ‘time’</h2>
<p>g = one digit, 12-hour hour format</p>
<p>G = one digit, 24-hour hour format</p>
<p>h = two digit, 12-hour hour format</p>
<p>H = two digit, 24-hour hour format</p>
<p>a = lowercase am or pm</p>
<p>A = uppercase AM or PM</p>
<p>i = two digit, minutes</p>
<p>s = two digit, seconds</p>
<p>This list is not exhaustive, but it includes most of the format characters you might use in a WordPress theme. There are literally thousands of ways you could use these tags. Here are a couple of examples:</p>
<pre><code>&lt;?php the_time('l'); ?&gt; the &lt;?php the_time('dS'); ?&gt; of &lt;?php the_time('F'); ?&gt;</code></pre>
<p>Will result in: <span style="font-size: 22px;">Tuesday the 21st of April</span></p>
<pre><code>&lt;?php the_time('F dS, Y'); ?&gt;</code></pre>
<p>Will result in: <span style="font-size: 22px;">April 21st, 2009</span></p>
<p> </p>
<p><span style="font-size: 22px;">The possibilities are endless, so experiment and have fun!</p>
<p></span></p>
<h4>Incoming search terms for the article:</h4><ul><li><a href="http://www.dswei.com/2009/06/wordpressthe-date-tag-and-the-time-tag/" title="<?php the_date"><?php the_date</a></li><li><a href="http://www.dswei.com/2009/06/wordpressthe-date-tag-and-the-time-tag/" title="wordpress the_date tag examples">wordpress the_date tag examples</a></li><li><a href="http://www.dswei.com/2009/06/wordpressthe-date-tag-and-the-time-tag/" title="wordpress php time format">wordpress php time format</a></li><li><a href="http://www.dswei.com/2009/06/wordpressthe-date-tag-and-the-time-tag/" title="wordpress display date differntly">wordpress display date differntly</a></li><li><a href="http://www.dswei.com/2009/06/wordpressthe-date-tag-and-the-time-tag/" title="wordpress date format not working benz theme">wordpress date format not working benz theme</a></li><li><a href="http://www.dswei.com/2009/06/wordpressthe-date-tag-and-the-time-tag/" title="wordpress <?php the_time(">wordpress <?php the_time(</a></li><li><a href="http://www.dswei.com/2009/06/wordpressthe-date-tag-and-the-time-tag/" title="wordpress <?php the_date(d-m-Y); ?>">wordpress <?php the_date(d-m-Y); ?></a></li><li><a href="http://www.dswei.com/2009/06/wordpressthe-date-tag-and-the-time-tag/" title="the_date(d/m/Y) ?> wordpress day monday">the_date(d/m/Y) ?> wordpress day monday</a></li><li><a href="http://www.dswei.com/2009/06/wordpressthe-date-tag-and-the-time-tag/" title="php the_date format">php the_date format</a></li><li><a href="http://www.dswei.com/2009/06/wordpressthe-date-tag-and-the-time-tag/" title="european time format wordpress">european time format wordpress</a></li></ul><!-- SEO SearchTerms Tagging 2 plugin took 1.102 ms -->]]></content:encoded>
			<wfw:commentRss>http://www.dswei.com/2009/06/wordpressthe-date-tag-and-the-time-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
