<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Salpet-Online &#187; Tips &amp; Tricks</title>
	<atom:link href="http://salpet.wordpress.com/category/tips-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://salpet.wordpress.com</link>
	<description>The Backup Archive Blog of Salpet-Online</description>
	<lastBuildDate>Sun, 13 Jan 2008 08:04:58 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='salpet.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/2bb641694a8a3f5ea659a3ce1a372690?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Salpet-Online &#187; Tips &amp; Tricks</title>
		<link>http://salpet.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://salpet.wordpress.com/osd.xml" title="Salpet-Online" />
		<item>
		<title>WordPress First Post Only On Frontpage</title>
		<link>http://salpet.wordpress.com/2007/05/13/wordpress-first-post-only-on-frontpage/</link>
		<comments>http://salpet.wordpress.com/2007/05/13/wordpress-first-post-only-on-frontpage/#comments</comments>
		<pubDate>Sun, 13 May 2007 14:08:56 +0000</pubDate>
		<dc:creator>salpet</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://salpet.wordpress.com/2007/05/13/wordpress-first-post-only-on-frontpage/</guid>
		<description><![CDATA[If you check out my theme, you would notice that only the first latest post of my blog is expanded and showed and the rest of the post follows with summary. Some people would just love to have this kind of theme as it&#8217;s more clean when viewed. Here is the hack on how i [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salpet.wordpress.com&blog=379500&post=225&subd=salpet&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you check out my theme, you would notice that only the first latest post of my blog is expanded and showed and the rest of the post follows with summary. Some people would just love to have this kind of theme as it&#8217;s more clean when viewed. Here is the hack on how i did it. It&#8217;s not the cleanest code and im pretty sure there are better ways to do it, but it just works. Editing should be done to <strong>index.php</strong> file.</p>
<p>Basically the concept is to create multiple loop with post limitations and offset. Open up <strong>index.php</strong> and follow this code. The code below is used to display only the 1st post of your blog and it&#8217;s up to you to design it.</p>
<p>[php]</p>
<p>        <!--- The style for your blog post which is full! (The 1st Post) ---></p>
<p>[/php]<br />
<span id="more-225"></span><br />
After the code we follow up with another loop where you can specify how the remaining posts are displayed. You can display the title and also the excerpt like how i have displayed on my site.</p>
<p>[php]</p>
<p>        <!--- The style for your remaining blog posts (Better to use the_excerpt(); ) ---></p>
<p>[/php]</p>
<p>From the above code, we can simply change a few variables.</p>
<p>[php]</p>
<p>[/php]</p>
<p>In the code above you could change the <strong>&#8217;showpost&#8217;</strong> section to the number of remaining post you want to show on the frontpage and the <strong>&#8216;offset&#8217;</strong> is used to skip how many posts before displaying the list of posts.</p>
<p><!--adsense--></p>
<p>If you are having problem to display your posts inside category or if you use index.php as your category template, then adding this code in index.php might help.</p>
<p>[php]</p>
<p>        <!--- The style for your category posts ---></p>
<p>[/php]</p>
<p>Basically that is about it. You may adopt this code into your theme and it should work fine, i tested it on WordPress 2.1x without problem. Please take note that this code might not work with all themes and also might cause conflict with some themes and plugins.</p>
<p>[tags]wordpress, tutorial, plugin, first, post, frontpage, code, hack[/tags]</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/salpet.wordpress.com/225/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/salpet.wordpress.com/225/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/salpet.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/salpet.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/salpet.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/salpet.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/salpet.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/salpet.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/salpet.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/salpet.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/salpet.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/salpet.wordpress.com/225/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salpet.wordpress.com&blog=379500&post=225&subd=salpet&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://salpet.wordpress.com/2007/05/13/wordpress-first-post-only-on-frontpage/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/27006ac265ac7b9ae6df2ad1770c4e05?s=96&#38;d=identicon" medium="image">
			<media:title type="html">salpet</media:title>
		</media:content>
	</item>
	</channel>
</rss>