<?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>PSD to Wordpress &#187; Wordpress</title> <atom:link href="http://www.sramekdesign.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" /><link>http://www.sramekdesign.com</link> <description>Get your PSD sliced into the XHTML valid Wordpress theme. SramekDesign offers cheap and fast PSD to Wordpress conversion service.</description> <lastBuildDate>Tue, 30 Mar 2010 08:22:59 +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>Display last posts</title><link>http://www.sramekdesign.com/wordpress/display-last-posts/</link> <comments>http://www.sramekdesign.com/wordpress/display-last-posts/#comments</comments> <pubDate>Sun, 29 Mar 2009 12:18:03 +0000</pubDate> <dc:creator>Tomas Sramek</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[category]]></category> <category><![CDATA[function]]></category> <category><![CDATA[wp_get_archives]]></category><guid
isPermaLink="false">http://www.sramekdesign.com/?p=289</guid> <description><![CDATA[
If you want to display five last posts from your Wordpress blog, use this function:&#60;ul&#62;
&#60;?php wp_get_archives('type=postbypost&#38;limit=5'); ?&#62;
&#60;/ul&#62;For more detailed info go here
]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin: 0 0 10px 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fdisplay-last-posts%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fdisplay-last-posts%2F&amp;source=TomSramek&amp;style=normal&amp;hashtags=category,function,Wordpress,wp_get_archives" height="61" width="51" /><br
/> </a></div><p>If you want to display five last posts from your Wordpress blog, use this function:</p><pre class="brush: php;">
&lt;ul&gt;
  &lt;?php wp_get_archives('type=postbypost&amp;limit=5'); ?&gt;
&lt;/ul&gt;
</pre><p>For more detailed info go <a
href="http://codex.wordpress.org/Template_Tags/wp_get_archives">here</a></p> ]]></content:encoded> <wfw:commentRss>http://www.sramekdesign.com/wordpress/display-last-posts/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Wordpress: display posts from certain category</title><link>http://www.sramekdesign.com/wordpress/wordpress-display-posts-from-certain-category/</link> <comments>http://www.sramekdesign.com/wordpress/wordpress-display-posts-from-certain-category/#comments</comments> <pubDate>Sun, 08 Mar 2009 09:46:06 +0000</pubDate> <dc:creator>Tomas Sramek</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[category]]></category> <category><![CDATA[loop]]></category> <category><![CDATA[query_posts]]></category> <category><![CDATA[show]]></category> <category><![CDATA[showposts]]></category> <category><![CDATA[WP_Query]]></category><guid
isPermaLink="false">http://www.sramekdesign.com/?p=185</guid> <description><![CDATA[
Recently my client&#8217;s design required displaying posts in sidebar only from one category. To solve this problem I decided to use class WP_Query.
The first we have to create instance of WP_Query:Then call method query(); to start the query. This is actually same as you would be using query_posts();
Parameter cat indicates which category&#8217;s posts are shown. [...]]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin: 0 0 10px 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fwordpress-display-posts-from-certain-category%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fwordpress-display-posts-from-certain-category%2F&amp;source=TomSramek&amp;style=normal&amp;hashtags=category,loop,query_posts,show,showposts,Wordpress,WP_Query" height="61" width="51" /><br
/> </a></div><p>Recently my client&#8217;s design required displaying posts in sidebar only from one category. To solve this problem I decided to use class WP_Query.</p><p>The first we have to create instance of WP_Query:</p><pre lang="php"><?php $recent = new WP_Query(); ?></pre><p>Then call method query(); to start the query. This is actually same as you would be using query_posts();<br
/> Parameter <strong>cat</strong> indicates which category&#8217;s posts are shown. Parameter <strong>showposts</strong> is the number of posts to be displayed.</p><pre lang="php"><?php $recent->query('cat=1&#038;showposts=5'); ?></pre><p>Now we can use loop:</p><pre class="brush: php;">
&lt;?php while($recent-&gt;have_posts()) : $recent-&gt;the_post(); ?&gt;
&lt;!-- Here goes some code --&gt;
&lt;?php endwhile; ?&gt;
</pre><p>Final code that displays last 5 posts&#8217; permalinks from category with ID=1 looks like this:</p><pre class="brush: php;">
&lt;h2&gt;Last posts&lt;/h2&gt;
&lt;?php $recent = new WP_Query(); ?&gt;
&lt;?php $recent-&gt;query('cat=1&amp;showposts=5'); ?&gt;
&lt;?php while($recent-&gt;have_posts()) : $recent-&gt;the_post(); ?&gt;
&lt;ul&gt;
	&lt;li&gt;
            &lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;
            &lt;?php the_title(); ?&gt;
            &lt;/a&gt;
       &lt;/li&gt;
&lt;/ul&gt;
&lt;?php endwhile; ?&gt;
</pre><p>Using your own WP_Query instance and loop prevents you from problems that might cause plugins&#8217; loops and use of conditional tags.</p> ]]></content:encoded> <wfw:commentRss>http://www.sramekdesign.com/wordpress/wordpress-display-posts-from-certain-category/feed/</wfw:commentRss> <slash:comments>15</slash:comments> </item> <item><title>Multilevel-navigation plugin: how to keep current item Home highlighted</title><link>http://www.sramekdesign.com/wordpress/multilevel-navigation-plugin-highlight-current-item-home/</link> <comments>http://www.sramekdesign.com/wordpress/multilevel-navigation-plugin-highlight-current-item-home/#comments</comments> <pubDate>Thu, 08 Jan 2009 12:46:48 +0000</pubDate> <dc:creator>Tomas Sramek</dc:creator> <category><![CDATA[Plugins]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[current item]]></category> <category><![CDATA[highlight]]></category> <category><![CDATA[homepage]]></category> <category><![CDATA[multilevel navigation plugin]]></category> <category><![CDATA[plugin]]></category><guid
isPermaLink="false">http://www.sramekdesign.com/?p=116</guid> <description><![CDATA[
Multilevel-navigation plugin for Wordpress is beyond all doubts a great plugin that allows you to create beautiful dropdown menus and enrich the look of your wordpress theme.
The only problem while working with Multi level navigation plug-in is that it doesn&#8217;t keep current item &#8216;Homepage&#8217; highlighted. If you have encountered the same problem and would like [...]]]></description> <content:encoded><![CDATA[<div
class="tweetmeme_button" style="float: right; margin: 0 0 10px 10px;"> <a
href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fmultilevel-navigation-plugin-highlight-current-item-home%2F"><br
/> <img
src="http://api.tweetmeme.com/imagebutton.gif?url=?url=http%3A%2F%2Fwww.sramekdesign.com%2Fwordpress%2Fmultilevel-navigation-plugin-highlight-current-item-home%2F&amp;source=TomSramek&amp;style=normal&amp;hashtags=current+item,highlight,homepage,multilevel+navigation+plugin,plugin,Wordpress" height="61" width="51" /><br
/> </a></div><p><a
href="http://pixopoint.com/multi-level-navigation/" rel="nofollow">Multilevel-navigation plugin</a> for Wordpress is beyond all doubts a great plugin that allows you to create beautiful dropdown menus and enrich the look of your wordpress theme.<br
/> The only problem while working with Multi level navigation plug-in is that it doesn&#8217;t keep current item &#8216;Homepage&#8217; highlighted. If you have encountered the same problem and would like to keep the &#8216;home page&#8217; link highlighted, here is my quick and easy solution:</p><p><em><strong>This is how you can set color for &#8216;current&#8217; item:</strong></em></p><p>You have to use class li.current_page_parent:</p><pre class="brush: css;">
#suckerfishnav li.current_page_parent,
#suckerfishnav li.current_page_parent,
#suckerfishnav li.current_page_item {color:yellow;}
#suckerfishnav li.current_page_parent a:hover,
#suckerfishnav li.current_page_parent a,
#suckerfishnav li.current_page_item a {color:yellow;}
</pre><p><em><strong>And now  how to keep homepage item of menu highlighted:</strong></em></p><p>1.  In plugin&#8217;s settings disable viewing &#8216;Home&#8217; item. From now on you are not going to need it.<a
href="http://sramekdesign.tomsramek.com/wp-content/uploads/2009/01/multilevel-navigation-settings1.jpg"><img
class="aligncenter size-full wp-image-143" title="multilevel-navigation-settings1" src="http://sramekdesign.tomsramek.com/wp-content/uploads/2009/01/multilevel-navigation-settings1.jpg" alt="multilevel-navigation-settings1" width="625" height="139" /></a></p><p>2.  Create new page and name it &#8216;Home&#8217; &#8230;or how you want to.</p><p>3.  If you want this page to be viewed as first you have to set order value of the page lower than other pages. Now the item &#8216;Home&#8217; should be on the first place in your menu.</p><p><a
href="http://sramekdesign.tomsramek.com/wp-content/uploads/2009/01/page-order.jpg"><img
class="aligncenter size-full wp-image-145" title="page-order" src="http://sramekdesign.tomsramek.com/wp-content/uploads/2009/01/page-order.jpg" alt="page-order" width="650" height="405" /></a></p><p>4.  Go to Settings&#8211;&gt;Reading and set your posts page to be viewed by clicking on the &#8216;Home&#8217; link. Now every time you click &#8216;Home&#8217; item in your menu, you will get to your homepage.</p><p><a
href="http://sramekdesign.tomsramek.com/wp-content/uploads/2009/01/reading-settings.jpg"><img
class="aligncenter size-full wp-image-131" title="reading-settings" src="http://sramekdesign.tomsramek.com/wp-content/uploads/2009/01/reading-settings.jpg" alt="reading-settings" width="650" height="297" /></a></p><p>5.  The last problem is the URL in the browser. It is viewed like this:</p><p><a
href="http://sramekdesign.tomsramek.com/wp-content/uploads/2009/01/url-home.jpg"><img
class="aligncenter size-full wp-image-147" title="url-home" src="http://sramekdesign.tomsramek.com/wp-content/uploads/2009/01/url-home.jpg" alt="url-home" width="625" height="73" /></a></p><p>Probably you will want the URL after clicking on &#8216;Home&#8217; item to be www.yourdomain.com without the &#8216;/home/&#8217;. This issue we can easily solve with Page links to plugin. You can get it <a
href="http://txfx.net/code/wordpress/page-links-to/">here</a> or install it directly via &#8216;add new plugin&#8217; panel.</p><p>6.  The plugin adds option &#8216;page links to&#8217; to the page&#8217;s options. Just type in your domain&#8217;s URL and that&#8217;s it. Multilevel navigation plugin&#8217;s Home item issue is solved.</p><p><a
href="http://sramekdesign.tomsramek.com/wp-content/uploads/2009/01/page-links-to.jpg"><img
class="aligncenter size-full wp-image-150" title="page-links-to" src="http://sramekdesign.tomsramek.com/wp-content/uploads/2009/01/page-links-to.jpg" alt="page-links-to" width="625" height="85" /></a></p> ]]></content:encoded> <wfw:commentRss>http://www.sramekdesign.com/wordpress/multilevel-navigation-plugin-highlight-current-item-home/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 7/13 queries in 0.006 seconds using disk

Served from: www.sramekdesign.com @ 2010-08-01 07:30:33 -->