<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>WpCode.net</title>
	
	<link>http://www.wpcode.net</link>
	<description>Daily Wordpress Code Snippet</description>
	<lastBuildDate>Sat, 12 May 2012 10:35:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/wpcode" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="wpcode" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Browsing Stumbleupon</title>
		<link>http://www.wpcode.net/browsing-stumbleupon.html/</link>
		<comments>http://www.wpcode.net/browsing-stumbleupon.html/#comments</comments>
		<pubDate>Sat, 12 May 2012 10:35:35 +0000</pubDate>
		<dc:creator>Pigi</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.wpcode.net/?p=2948</guid>
		<description>
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/mf6o7oj7tslYDujMHXoEUpDiTWw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mf6o7oj7tslYDujMHXoEUpDiTWw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/mf6o7oj7tslYDujMHXoEUpDiTWw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mf6o7oj7tslYDujMHXoEUpDiTWw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
		<wfw:commentRss>http://www.wpcode.net/browsing-stumbleupon.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to automatic set Video Opengraph</title>
		<link>http://www.wpcode.net/video-open-graph.html/</link>
		<comments>http://www.wpcode.net/video-open-graph.html/#comments</comments>
		<pubDate>Sat, 12 May 2012 10:09:51 +0000</pubDate>
		<dc:creator>Pigi</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Intermediates]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[open graph]]></category>
		<category><![CDATA[timeline]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.wpcode.net/?p=2944</guid>
		<description>This function allow you to insert video open graph in your post, so when user "likes" your posts that embed video he could be able to share video as embedded on his timeline. Add this code to your function.php file &lt;a href="http://www.wpcode.net/video-open-graph.html/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/n_f_h4JlW-VNnLPUJmBxyk_0YCE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/n_f_h4JlW-VNnLPUJmBxyk_0YCE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/n_f_h4JlW-VNnLPUJmBxyk_0YCE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/n_f_h4JlW-VNnLPUJmBxyk_0YCE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
		<wfw:commentRss>http://www.wpcode.net/video-open-graph.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set the first image of a post as a featured image</title>
		<link>http://www.wpcode.net/automatic-featured-image.html/</link>
		<comments>http://www.wpcode.net/automatic-featured-image.html/#comments</comments>
		<pubDate>Thu, 10 May 2012 11:59:55 +0000</pubDate>
		<dc:creator>Pigi</dc:creator>
				<category><![CDATA[Experts]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[automatic]]></category>
		<category><![CDATA[feature]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[post]]></category>

		<guid isPermaLink="false">http://www.wpcode.net/?p=2930</guid>
		<description>I'm little bored to set for each post the featured image, so I've found this little php snippet that fetch the fist image of a post, and set that as "Featured", Apply this snippet on your function.php &lt;a href="http://www.wpcode.net/automatic-featured-image.html/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/T9L-ru-Zn456GpoROAruAUoatbE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/T9L-ru-Zn456GpoROAruAUoatbE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/T9L-ru-Zn456GpoROAruAUoatbE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/T9L-ru-Zn456GpoROAruAUoatbE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
		<wfw:commentRss>http://www.wpcode.net/automatic-featured-image.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to customize “Posts” labes</title>
		<link>http://www.wpcode.net/customize-post-label.html/</link>
		<comments>http://www.wpcode.net/customize-post-label.html/#comments</comments>
		<pubDate>Wed, 09 May 2012 11:52:10 +0000</pubDate>
		<dc:creator>Pigi</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Intermediates]]></category>
		<category><![CDATA[customization]]></category>
		<category><![CDATA[label]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[str_replace]]></category>

		<guid isPermaLink="false">http://www.wpcode.net/?p=2923</guid>
		<description>Smashing Magazine some time ago had published a snippet to customize the "Posts" label into "Article", now I'll show you how to customize that's label with every word you want. The code are very similar; and you can upload it into "function.php". &lt;a href="http://www.wpcode.net/customize-post-label.html/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ZU78FYrBPfQLw1GLZwFz-69Z6tg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZU78FYrBPfQLw1GLZwFz-69Z6tg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ZU78FYrBPfQLw1GLZwFz-69Z6tg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZU78FYrBPfQLw1GLZwFz-69Z6tg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
		<wfw:commentRss>http://www.wpcode.net/customize-post-label.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to take websites’s screenshot with a shortcode</title>
		<link>http://www.wpcode.net/site-screenshot.html/</link>
		<comments>http://www.wpcode.net/site-screenshot.html/#comments</comments>
		<pubDate>Tue, 08 May 2012 07:38:31 +0000</pubDate>
		<dc:creator>Pigi</dc:creator>
				<category><![CDATA[Experts]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[screenshot]]></category>
		<category><![CDATA[shortcode]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://www.wpcode.net/?p=2920</guid>
		<description>Adding this code to your function.php you can create a shortcode that take (and publish) screenshot of custom website; in the code below I'll attach 3 atts: first for the url, second for the width and third for the heigh. &lt;a href="http://www.wpcode.net/site-screenshot.html/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/HUXRiiV8peUb4mObQgWO3bn_LPI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HUXRiiV8peUb4mObQgWO3bn_LPI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/HUXRiiV8peUb4mObQgWO3bn_LPI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HUXRiiV8peUb4mObQgWO3bn_LPI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
		<wfw:commentRss>http://www.wpcode.net/site-screenshot.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add a Dashboard widget that shows news from an rss address</title>
		<link>http://www.wpcode.net/dashboard-widget.html/</link>
		<comments>http://www.wpcode.net/dashboard-widget.html/#comments</comments>
		<pubDate>Mon, 07 May 2012 18:32:52 +0000</pubDate>
		<dc:creator>Pigi</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Intermediates]]></category>
		<category><![CDATA[dashboard]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[wordpress tutorial]]></category>

		<guid isPermaLink="false">http://www.wpcode.net/?p=2911</guid>
		<description>In this post i'll show one way to display a dashboard widget that display news from an RSS feed. You can edit tha rss address (It supports feedburner, but also wp's standard feeds) and the number of post displayed.
To enable this feature you just need to upload code above in your theme funtction.php file &lt;a href="http://www.wpcode.net/dashboard-widget.html/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/bwUmKbzySDX_Kk_W99jxVZAK43I/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bwUmKbzySDX_Kk_W99jxVZAK43I/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/bwUmKbzySDX_Kk_W99jxVZAK43I/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bwUmKbzySDX_Kk_W99jxVZAK43I/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
		<wfw:commentRss>http://www.wpcode.net/dashboard-widget.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to redirect user to specific role page after login</title>
		<link>http://www.wpcode.net/redirect-user-role.html/</link>
		<comments>http://www.wpcode.net/redirect-user-role.html/#comments</comments>
		<pubDate>Mon, 27 Feb 2012 23:01:02 +0000</pubDate>
		<dc:creator>Pigi</dc:creator>
				<category><![CDATA[Experts]]></category>
		<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://www.wpcode.net/?p=2896</guid>
		<description>Another conditional tags you can use to redirect user with specific role to specific page after login. Insert this code to your function.php &lt;a href="http://www.wpcode.net/redirect-user-role.html/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/-HZ1xRWyimUeoDbdKQuPkUXJTJo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-HZ1xRWyimUeoDbdKQuPkUXJTJo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/-HZ1xRWyimUeoDbdKQuPkUXJTJo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-HZ1xRWyimUeoDbdKQuPkUXJTJo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
		<wfw:commentRss>http://www.wpcode.net/redirect-user-role.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change “wp-login.php” url</title>
		<link>http://www.wpcode.net/login.html/</link>
		<comments>http://www.wpcode.net/login.html/#comments</comments>
		<pubDate>Sun, 26 Feb 2012 23:01:00 +0000</pubDate>
		<dc:creator>Pigi</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Intermediates]]></category>

		<guid isPermaLink="false">http://www.wpcode.net/?p=2895</guid>
		<description>Open your .htaccess file in your wordpress root folder and add this rewrite rule to change yourblog.com/wp-login.php in yourblog.com/logins or somethings else &lt;a href="http://www.wpcode.net/login.html/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/HWKEzUjIqcC3J6Qdj4THguHNOFw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HWKEzUjIqcC3J6Qdj4THguHNOFw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/HWKEzUjIqcC3J6Qdj4THguHNOFw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HWKEzUjIqcC3J6Qdj4THguHNOFw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
		<wfw:commentRss>http://www.wpcode.net/login.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to disallow access for user with lowest role then admin</title>
		<link>http://www.wpcode.net/no-author-no-party.html/</link>
		<comments>http://www.wpcode.net/no-author-no-party.html/#comments</comments>
		<pubDate>Thu, 23 Feb 2012 23:01:59 +0000</pubDate>
		<dc:creator>Pigi</dc:creator>
				<category><![CDATA[Experts]]></category>
		<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://www.wpcode.net/?p=2894</guid>
		<description>When you create new page's template you can decide to limit the access to user with specific role; for exaple author, when unregistered user or user with different role try to access to that template will be kicked our to the "error.php" page. Funny!!! &lt;a href="http://www.wpcode.net/no-author-no-party.html/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/jXfSgVYhvXlr1p7LW-0gU_xu1VY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jXfSgVYhvXlr1p7LW-0gU_xu1VY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/jXfSgVYhvXlr1p7LW-0gU_xu1VY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jXfSgVYhvXlr1p7LW-0gU_xu1VY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
		<wfw:commentRss>http://www.wpcode.net/no-author-no-party.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Check if your user’s device is an Apple Iphone</title>
		<link>http://www.wpcode.net/iphone.html/</link>
		<comments>http://www.wpcode.net/iphone.html/#comments</comments>
		<pubDate>Wed, 22 Feb 2012 23:01:57 +0000</pubDate>
		<dc:creator>Pigi</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Intermediates]]></category>

		<guid isPermaLink="false">http://www.wpcode.net/?p=2893</guid>
		<description>If you are planning to develop a mobile version of your blog, you may think this is a usefull function, you just need to use it directly in your template such as a conditional tag. &lt;a href="http://www.wpcode.net/iphone.html/"&gt;Continue reading &lt;span class="meta-nav"&gt;&amp;#8594;&lt;/span&gt;&lt;/a&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/3vqRffkT543HnWB6hm2oDRw3B8c/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3vqRffkT543HnWB6hm2oDRw3B8c/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/3vqRffkT543HnWB6hm2oDRw3B8c/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3vqRffkT543HnWB6hm2oDRw3B8c/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;</description>
		<wfw:commentRss>http://www.wpcode.net/iphone.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: www.wpcode.net @ 2012-05-18 10:35:13 -->

