<?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>SoleSky &#187; WordPress</title>
	<atom:link href="http://www.solesky.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.solesky.com</link>
	<description>My love, My life,My soul</description>
	<lastBuildDate>Mon, 19 Dec 2011 03:38:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Wap Version of Solesky</title>
		<link>http://www.solesky.com/2009/08/wap-version-of-solesky/</link>
		<comments>http://www.solesky.com/2009/08/wap-version-of-solesky/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 00:43:36 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Technique]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=1016</guid>
		<description><![CDATA[More and more people will use mobile device to surf on Internet world. Maybe nowadays, the mobile devices get faster performance and larger screen to display the complex web page. And the smart browsers likes Opera mini would support the HTML protocol of web pages very well. And further, the mobile network is keeping speeding [...]]]></description>
			<content:encoded><![CDATA[<p>More and more people will use mobile device to surf on Internet world. Maybe nowadays, the mobile devices get faster performance and larger screen to display the complex web page. And the smart browsers likes Opera mini would support the HTML protocol of web pages very well. And further, the mobile network is keeping speeding up. But how ever, to make it perfect to read your pages on mobile devices, you&#8217;d better choose wap pages instead of web pages.</p>
<p><em>Wap or Wi-Fi Protected Access, is an open international standard for application layer network communications in a wireless communication environment. Its main use is to enable access to the Mobile Web from a mobile phone or PDA. WAP sites are websites written in, or dynamically converted to, WML (Wireless Markup Language) and accessed via the WAP browser.<br />
</em><br />
So maybe you would say Wap sites is different from Web sites. But actually, they are totally the same except the foreground. Wap sites give us a document that use WML instead of HTML. And that&#8217;s all, it means that we can create the Wap pages for our own Web sites.</p>
<p>Word press is a great blog platform which give great development experience to the coders. Many themes for Word press  are created. Those are the foreground of Word press. And Wap verion &#8220;Theme&#8221; also had been made. I would show you a new way to read and write the word press sites.</p>
<p>&#8220;Word press To  Wap&#8221; is a great Wap foreground. You can seach &#8221;WP-T-WAP&#8221; at word press official web site or go to http://wordpress.org/extend/plugins/wp-t-wap/</p>
<p>Just download the code file and active that plugin, remember to make sure you have the permission to modify the &#8216;wap&#8217; folder. Now try to have a look via www.solesky.com/wap/ :</p>
<p><iframe src="http://www.solesky.com/wap/index-wap2.php" frameBorder="0" width="300" height="300" scrolling="yes" height="90"></iframe></p>
<p>It seems greats and further more, we can enter the &#8220;Site Admin&#8221; to mange your site. That&#8217;s also a easy way to write post on your mobile phone <img src='http://www.solesky.com/wp-includes/images/smilies/icon_cool.gif' alt=':cool:' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2009/08/wap-version-of-solesky/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a Page of posts</title>
		<link>http://www.solesky.com/2009/07/create-a-page-of-posts/</link>
		<comments>http://www.solesky.com/2009/07/create-a-page-of-posts/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 00:34:47 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Technique]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.solesky.com/?p=827</guid>
		<description><![CDATA[Maybe sometimes we need to create a page to collect many posts that have same factor, or they are about the same topic. For example, now I have posted several posts about my journey at Yangshuo. Then I wanna create a page to display them. My plan is to create a page called &#8220;footprints&#8221; that [...]]]></description>
			<content:encoded><![CDATA[<p>Maybe sometimes we need to create a page to collect many posts that have same factor, or they are about the same topic. For example, now I have posted several posts about my journey at Yangshuo. Then I wanna create a page to display them. My plan is to create a page called &#8220;footprints&#8221; that can show a list of all my posts about journey. And then, I wanna create a sub-page to display some of them, focused on the Yangshou journey. Like this:<br />
<img class="alignnone size-full wp-image-829" title="page&amp;subpages" src="http://www.solesky.com/wp-content/uploads/2009/07/screenshot_002.png" alt="page&amp;subpages" width="246" height="213" /><br />
Then the first step is to create the &#8220;footprints&#8221; page. There are several ways to do that.</p>
<ul>
<li> The lazy one is to let it done with some plugins, such things related with &#8220;list&#8221;, anyway, I don&#8217;t remember <img src='http://www.solesky.com/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' />  . That&#8217;s quite easy to make it work. So let&#8217;s go to the second one.</li>
<li> DIY the page by yourself.  When you decide to DIY such page by yourself, we have to make a file called template file which control how the page display.</li>
</ul>
<p>The way to create a template file:</p>
<p><span id="more-827"></span></p>
<ol>
<li>: Make a copy of your &#8220;index.php&#8221; in the using theme folder, or the &#8220;single.php&#8221; if you want the comment feature. And add a few line to mention that this is a template file, just like:

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">  <span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Template Name: yangshuo
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Then rename as &#8220;tour.php&#8221;.
</li>
<li> : Modify some codes.<br />
you can replace the codes which fetching the posts data by new codes that get the post list function.<br />
Or make it as what I do:<br />
Find the sentence about fetching all post like:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>replace with</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> query_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;cat=55&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> update_post_caches<span style="color: #009900;">&#40;</span><span style="color: #000088;">$posts</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>That is to choose those category belong to &#8220;tour&#8221; (ID =55).<br />
Then find and delete the part of post content:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">                &lt;div class=&quot;content&quot;&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			&lt;div class=&quot;fixed&quot;&gt;&lt;/div&gt;
		&lt;/div&gt;</pre></td></tr></table></div>

<p>Then we got a &#8220;list&#8221; that display the post only with those title and some meta information. <a href="http://www.solesky.com/footprints/">Like this</a>
</li>
<li> : Add page called &#8220;footprints&#8221; that using this template and publish~ </li>
<p>       In fact there is another way to do that, by using the search feature of word press.</p>
<ol>
<li> : We need a search link that show the post related to tour. <a href="http://www.solesky.com/category/tour-fun/">Like this: http://www.solesky.com/category/tour-fun/</a>
</li>
<li> : Create a template called tour2.php by copying the index.php and add a heading like this:

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Template Name: tour
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;script&gt;location=&quot;http://www.solesky.com/category/tour-fun&quot;&lt;/script&gt;</pre></td></tr></table></div>

</li>
<p>Maybe you are clear now. This time we use the script to make a automatic &#8220;jump&#8221; to the search page of &#8220;tour&#8221;. That also make a good list for us. But this time we can&#8217;t modify the detail such as the order and meta and so on. Anyway, this methods is easier~
</li>
<p>OK, the &#8220;footprints&#8221; page show a list of posts about all my tour.<br />
Then I have to create different feature like Yangshuo tour feature.</p>
<p>The steps are quite similar. Create a template file called &#8220;yangshuo&#8221; and do step 1 as when we create the &#8220;tour.php&#8221; above.</p>
<p>Now we find the codes</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>And modify it to display only on the topic about Yangshuo.<br />
This time we use tag selection instead, so we replace this line by:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> query_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'tag=yangshuo&amp;order=ASC'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
       <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> update_post_caches<span style="color: #009900;">&#40;</span><span style="color: #000088;">$posts</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>That&#8217;s to say we only query the posts those have Yangshuo tag from database.</p>
<p>And I don&#8217;t modify the rest part cause I want to display the content.</p>
<p><a href="http://www.solesky.com/footprints/yangshuo/">Like this</a></p>
<p>Then make a sub page called &#8220;Yangshuo&#8221; belongs to the &#8220;footprint&#8221; page using this template file and publish~<br />
~</p>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2009/07/create-a-page-of-posts/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to chang your image in my blog</title>
		<link>http://www.solesky.com/2008/08/how-to-chang-your-image-in-my-blog/</link>
		<comments>http://www.solesky.com/2008/08/how-to-chang-your-image-in-my-blog/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 04:11:16 +0000</pubDate>
		<dc:creator>calcifer</dc:creator>
				<category><![CDATA[Notice]]></category>
		<category><![CDATA[gravatar]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.sloesky.com/?p=35</guid>
		<description><![CDATA[OK, my blog is using the popular WordPress. And WordPress is using the gravatar to provide users&#8217; images. A gravatar, or globally recognized avatar, is quite simply an avatar image that follows you from weblog to weblog appearing beside your name when you comment on gravatar enabled sites. Signing up for a gravatar.com account is [...]]]></description>
			<content:encoded><![CDATA[<p>OK, my blog is using the popular WordPress. And WordPress is using the gravatar to provide users&#8217; images.</p>
<p>A gravatar, or <strong>g</strong>lobally <strong>r</strong>ecognized <strong>avatar</strong>, is  		quite simply an avatar image that follows you from 		weblog to weblog appearing beside your name when you comment on  		gravatar enabled sites.</p>
<p>Signing up for a gravatar.com account is <strong>FREE,</strong> and  		all that&#8217;s required is your email address. Once you&#8217;ve signed up you  		can upload your avatar image and soon after you&#8217;ll start seeing it on  gravatar enabled weblogs!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.solesky.com/2008/08/how-to-chang-your-image-in-my-blog/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

