<?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>ZENVERSE &#187; Wordpress Development</title>
	<atom:link href="http://zenverse.net/category/wordpress-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://zenverse.net</link>
	<description>Design and Web Development</description>
	<lastBuildDate>Tue, 15 Jan 2013 15:12:59 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<item>
		<title>Add WordPress Native Menu Feature to WordPress Themes</title>
		<link>http://zenverse.net/add-wordpress-native-menu-to-themes/</link>
		<comments>http://zenverse.net/add-wordpress-native-menu-to-themes/#comments</comments>
		<pubDate>Wed, 20 Jun 2012 09:07:47 +0000</pubDate>
		<dc:creator>Zen</dc:creator>
				<category><![CDATA[Wordpress Development]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://zenverse.net/?p=2619</guid>
		<description><![CDATA[WordPress introduced the Native Menu feature in WordPress 3.0 which allow theme designers to add any number of native menus into their themes. Native menus are useful because it allows users to freely decide which item should appear in their menu, you can mix and match items which include Categories, Pages and Self-defined links. ]]></description>
				<content:encoded><![CDATA[<p>WordPress introduced the Native Menu feature in WordPress 3.0 which allow theme designers to add any number of native menus into their themes. Native menus are useful because it allows users to freely decide which item should appear in their menu, you can mix and match items which include Categories, Pages and Self-defined links. </p>
<p>As theme designers, we can add more than 1 native menus to the theme to any position that we want. For example, we can create 3 native menus in our theme, for example: &#8220;Top Pages Menu&#8221;, &#8220;Top Categories Menu&#8221;, &#8220;Footer Link Menu&#8221;. We should name the menus according to their location in the theme so that user knows which menu they are working on.</p>
<p>Now you might think, what if the user did not want to use Native Menu, instead they want the traditional way to display all pages in their menu? A good way is to let user choose whether to use Native Menu or the default (traditional) one. In another word: we need Backward Compatibility. We will look into that in Step 3 below.</p>
<h3>Some WP functions that we need</h3>
<p>- <a href="http://codex.wordpress.org/Function_Reference/wp_nav_menu" target="_blank">wp_nav_menu()</a> &#8211; to display native menu<br />
- <a href="http://codex.wordpress.org/Function_Reference/wp_nav_menu" target="_blank">has_nav_menu( name )</a> &#8211; to check whether a menu called &#8220;name&#8221; is activated<br />
- <a href="http://codex.wordpress.org/Function_Reference/wp_nav_menu" target="_blank">register_nav_menus() &#8211; to register nav menus</a></p>
<h3>Step 1: Registering the Native Menu</h3>
<p>Open up your theme&#8217;s functions.php, append this to the file:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p2619code1'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p26191"><td class="code" id="p2619code1"><pre class="php" style="font-family:monospace;">add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'init'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'register_nav_menus_on_init'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> register_nav_menus_on_init<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	register_nav_menus<span style="color: #009900;">&#40;</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
		<span style="color: #0000ff;">'top-pages-menu'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Top Pages Menu'</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'top-cat-menu'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Top Categories Menu'</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'footer-link-menu'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Footer Link Menu'</span><span style="color: #339933;">,</span>
	<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>In the codes above, we registered 3 native menus, each named with their location in the theme.</p>
<h3>Step 2: Place the Native Menus into your theme</h3>
<p>Now, add this code to where you want the native menus to appear. </p>
<p>In our example, we need to add 2 menus to header.php:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p2619code2'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p26192"><td class="code" id="p2619code2"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pages-nav&quot;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_nav_menu<span style="color: #009900;">&#40;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'theme_location'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'top-pages-menu'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">....</span>
&nbsp;
<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;cats-nav&quot;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_nav_menu<span style="color: #009900;">&#40;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'theme_location'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'top-cats-menu'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>- Take note how we pass the registered name to the wp_nav_menu() function.<br />
- wp_nav_menu() will generate the &lt;ul> and &lt;li> automatically for your menu, provided that user has activated the menu.</p>
<p>In our example, we need to add 1 menu to footer.php:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p2619code3'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p26193"><td class="code" id="p2619code3"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;footer-nav&quot;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_nav_menu<span style="color: #009900;">&#40;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'theme_location'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'footer-links-menu'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>- Take note how we pass the registered name to the wp_nav_menu() function.<br />
- wp_nav_menu() will generate the &lt;ul> and &lt;li> automatically for your menu, provided that user has activated the menu.</p>
<h3>Step 3: Backward Compatibility</h3>
<p>Most likely you will need to display a default menu if the user has not activated (or decided not to use) native menu for that location.</p>
<p>Now we need to modify our header.php to achieve that:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p2619code4'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p26194"><td class="code" id="p2619code4"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pages-nav&quot;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>has_nav_menu<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'top-pages-menu'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		wp_nav_menu<span style="color: #009900;">&#40;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'theme_location'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'top-pages-menu'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
		wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">....</span>
&nbsp;
<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;cats-nav&quot;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>has_nav_menu<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'top-cats-menu'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		wp_nav_menu<span style="color: #009900;">&#40;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'theme_location'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'top-cats-menu'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
		wp_list_categories<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>Do the same to footer.php.</p>
<h3>Step 4: Try out your native menu</h3>
<p>Go to Admin Panel > Appearance > Menus.</p>
<p>If you registered the native menus correctly, you will see them appearing in the &#8220;Theme Locations&#8221; box.</p>
<p>Now, to test your native menu, create a new native menu by clicking on the &#8220;+&#8221; button of the right box.</p>
<p>Add categories, pages or links to the menu by using the 3 boxes under &#8220;Theme Locations&#8221; and save it.</p>
<p>Lastly, add your new menu to your desired Theme Location and save it.</p>
<p>Now view your theme.</p>
<p>Please Share or Like this post if it helps :)</p>
]]></content:encoded>
			<wfw:commentRss>http://zenverse.net/add-wordpress-native-menu-to-themes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Top 5 WordPress Themes on The Web</title>
		<link>http://zenverse.net/top-5-wordpress-themes-on-the-web/</link>
		<comments>http://zenverse.net/top-5-wordpress-themes-on-the-web/#comments</comments>
		<pubDate>Thu, 24 May 2012 16:08:55 +0000</pubDate>
		<dc:creator>MikeJames</dc:creator>
				<category><![CDATA[Wordpress Development]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://zenverse.net/?p=2604</guid>
		<description><![CDATA[Getting visitors to your website is one thing. Getting them to do what they want when they get there is something else. Having a nice layout that's easy on the eyes as well as easy to navigate is essential if you are going to give your users a great experience. Wordpress is the easiest and most efficient way to get your message online. Wordpress is so effective and there are an endless number of Themes to enhance your website's look. In this article, we'll go over the top 5 popular themes for Wordpress, both free and paid. ]]></description>
				<content:encoded><![CDATA[<p>Getting visitors to your website is one thing. Getting them to do what they want when they get there is something else. Having a nice layout that&#8217;s easy on the eyes as well as easy to navigate is essential if you are going to give your users a great experience. WordPress is the easiest and most efficient way to get your message online. WordPress is so effective and there are an endless number of Themes to enhance your website&#8217;s look. In this article, we&#8217;ll go over the top 5 popular themes for WordPress, both free and paid. </p>
<h3><a href="http://diythemes.com/" rel="nofollow" target="_blank">Thesis</a></h3>
<p><img src="http://img337.imageshack.us/img337/7481/thesis.jpg" alt="" /></p>
<p>Thesis theme is a very versatile theme, or a theme framework, and is used by many professional web developers, as well as Matt Cutts himself, the head of the Google Webspam Team. It&#8217;s very easy to customize, and can easily help you show off your best content. This theme is not free.</p>
<h3><a href="http://www.socratestheme.com/" rel="nofollow" target="_blank">Socrates</a></h3>
<p><img src="http://img28.imageshack.us/img28/5982/socratesq.jpg" alt="" /></p>
<p>This theme was developed for the internet marketer in mind. It&#8217;s easy as pie to set up for Adsense and Clickbank, as well as many other affiliate marketing ideas. There are several different formats to use for your page, including a sales page and a squeeze page. It has 220+ Niche Header Designs as well as a very active support forum. This theme is not free.</p>
<h3><a href="http://heatmaptheme.com/" rel="nofollow" target="_blank">Heatmap</a></h3>
<p><img src="http://img62.imageshack.us/img62/2733/heatmap.jpg" alt="" /></p>
<p>It&#8217;s named Heatmap after Google&#8217;s famous study of where people look when they visit a typical website. You can easily place your advertisements and <a target="_blank" href="http://abcnews.go.com/Business/black-friday-deals-snag-deals-online-noon/story?id=14983434">affiliate offers</a> at the area where people tend to look at the most. This will definitely helps increasing your conversion rate. The theme also comes with numerous choices of advertisement layouts and skins for the user to pick. This is not a free theme.</p>
<h3><a href="http://www.smashingmagazine.com/2008/08/20/notepad-chaos-a-free-wordpress-theme/" rel="nofollow" target="_blank">Notepad Chaos (Free)</a></h3>
<p><img src="http://img829.imageshack.us/img829/9986/notepadr.jpg" alt="" /></p>
<p>This colorful floral theme is definitely one of the most interesting WordPress themes on the web. Having all your blog posts displayed in a notepad-like page, your website would like a e-diary, which makes it suitable for personal blog. Besides, there are other interesting areas in the theme such as the post-it-note design sidebar and handwritten fonts used in the special hyperlinks. This theme would make your blog stand out of the crowd.</p>
<h3><a href="http://press75.com/theme-details/tv-elements/" rel="nofollow" target="_blank">TV.Elements</a></h3>
<p><img src="http://img269.imageshack.us/img269/6150/tvelements.jpg" alt="" /></p>
<p>This is definitely a great WordPress theme for video bloggers. The theme features a main video display at the top of the page, with scrollable arrows. Below the main display is the featured video carousel with nice bordered thumbnails. You are allowed to insert up to 12 featured categories of your choice. This is not a free theme.</p>
]]></content:encoded>
			<wfw:commentRss>http://zenverse.net/top-5-wordpress-themes-on-the-web/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Delete All Existing Comment Author URLs in WordPress</title>
		<link>http://zenverse.net/delete-existing-comment-author-urls-in-wordpress/</link>
		<comments>http://zenverse.net/delete-existing-comment-author-urls-in-wordpress/#comments</comments>
		<pubDate>Sun, 13 May 2012 15:20:12 +0000</pubDate>
		<dc:creator>Zen</dc:creator>
				<category><![CDATA[Wordpress Development]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://zenverse.net/?p=2595</guid>
		<description><![CDATA[I have been getting spam comments for years. Although I already installed Akismet plugin to block most of the spams, I am still getting a plenty of them everyday. As I can see in recent years, at least 20% of my site comments are "fake" comments with keyword links as the commentor name.]]></description>
				<content:encoded><![CDATA[<p>I have been getting spam comments for years. Although I already installed Akismet plugin to block most of the spams, I am still getting a plenty of them everyday. As I can see in recent years, at least 20% of my site comments are &#8220;fake&#8221; comments with keyword links as the commentor name.</p>
<p>Although nofollow links don&#8217;t take your link juice away from your site, it does reduces the link juice passed to your dofollow links. So, it is best to remove all unwanted links, including nofollow links.</p>
<h1>Mass delete all existing comment author URLs for WordPress Site</h1>
<p>While we might have some WordPress plugins that can do this for you. I prefer doing it manually via phpMyAdmin. Go to your phpMyAdmin or any SQL administration tool that allow you to run queries to your database.</p>
<p>1. Select your WordPress installation&#8217;s database<br />
2. Go to &#8220;SQL&#8221; tab.<br />
3. Enter any of the following queries.<br />
4. If your table prefix is not &#8220;wp_&#8221;, change it accordingly.</p>
<h4>To delete ALL comment urls</h4>
<p>Here we just set the URL value to empty. So no worries about losing your comment.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p2595code5'); return false;">View Code</a> SQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p25955"><td class="code" id="p2595code5"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> wp_comments <span style="color: #993333; font-weight: bold;">SET</span> comment_author_url <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">''</span>;</pre></td></tr></table></div>

<h4>To delete ALL comment urls EXCEPT a certain link</h4>
<p>I used this query to avoid deleting URL of those comments made by me myself.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p2595code6'); return false;">View Code</a> SQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p25956"><td class="code" id="p2595code6"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> wp_comments <span style="color: #993333; font-weight: bold;">SET</span> comment_author_url <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">''</span> <span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #993333; font-weight: bold;">NOT</span> comment_author_url <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'http://zenverse.net/'</span>;</pre></td></tr></table></div>

<p>Now I am feeling good having less outgoing links. Hope this helps :)</p>
]]></content:encoded>
			<wfw:commentRss>http://zenverse.net/delete-existing-comment-author-urls-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Giveaway Contest &#8211; Divine Elemente, a PSD to WordPress Software</title>
		<link>http://zenverse.net/giveaway-divine-elemente-psd-wp/</link>
		<comments>http://zenverse.net/giveaway-divine-elemente-psd-wp/#comments</comments>
		<pubDate>Sun, 15 Apr 2012 06:50:27 +0000</pubDate>
		<dc:creator>Zen</dc:creator>
				<category><![CDATA[Design Tips]]></category>
		<category><![CDATA[Wordpress Development]]></category>
		<category><![CDATA[psd]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://zenverse.net/?p=2560</guid>
		<description><![CDATA[Divine Elemente is an Adobe Photoshop plugin, which can convert a design from Photoshop to HTML / CSS / PHP code without coding. It is a Photoshop plugin (for Windows only) intended to save more than 90% of your time you would spend to create a WordPress theme.]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.divine-project.com/" target="_blank">Divine Elemente</a> is an Adobe Photoshop plugin (for Windows only), which can convert a design from Photoshop to HTML / CSS / PHP code without coding. </p>
<h3>How Does It Work?</h3>
<p>The whole process inclues these 4 steps:</p>
<ul>
<li>Step 1. Create a basic PSD template with the help of the Layout Editor;</li>
<li>Step 2. Design the template you prepared in Divine Elemente;</li>
<li>Step 3. Convert your PSD into a WordPress theme;</li>
<li>Step 4. Upload the theme and activate it on your website.</li>
</ul>
<p>These 4 steps normally take less than 20 minutes of your time and depend only on your skills or on the template you have.</p>
<p><img src="http://zenverse.net/wp-content/uploads/2012/04/divine-elemente-release.jpg" alt="" /></p>
<h3>Examples Of the Themes Divine Elemente Created</h3>
<p>Here&#8217;s a few freebies given by Divine Elemente for our readers.</p>
<h4>1. &#8220;Diablo 3&#8243; PSD Template</h4>
<p><a href="http://dl.dropbox.com/u/50365703/Diablo3-WordPress-Theme-PSD-Template-by-www.divine-project.com.zip"><img src="http://zenverse.net/wp-content/uploads/2012/04/diablo3-wordpress-theme.jpg" alt="Diablo 3 PSD Template" width="560px" height="531px" /><br />
Download Diablo 3 PSD template</a></p>
<h4>2. &#8220;Mass Effect 3&#8243; PSD Template</h4>
<p><a href="http://dl.dropbox.com/u/50365703/Mass-Effect3-WordPress-Theme-PSD-Template-by-www.divine-project.com.zip"><img src="http://zenverse.net/wp-content/uploads/2012/04/mass-effect-3-wordpress-theme.jpg" alt="Mass Effect 3 PSD Template" width="560px" height="479px" /><br />
Download Mass Effect 3 PSD template</a></p>
<h3>What is the Price?</h3>
<p>The regular price is $199, but there&#8217;s a 10% discount offer with coupon code: WP4GU, so you can have the Developers license key just for $179.</p>
<h3>How to get it for free?</h3>
<p>I have 3 Developers license keys to giveaway. If you want to try your luck and get one for free, just <a href="http://twitter.com/zenverse" target="_blank">follow @zenverse on Twitter</a> and tweet one of the following:</p>
<blockquote><p>Retweet and get a chance to win a psd to #wordpress software from @divineteam via @zenverse</p></blockquote>
<blockquote><p>New giveaway from @divineteam via @zenverse. Just retweet this and get chance to win a #PSD to WordPress software.</p></blockquote>
<blockquote><p>Get a chance to win a free license key for a #wordpress tool from @divineteam via @zenverse &#8211; just retweet this!</p></blockquote>
<p>3 winners will be selected randomly on April 22, 2012 and will be awarded a Developer license key each.</p>
]]></content:encoded>
			<wfw:commentRss>http://zenverse.net/giveaway-divine-elemente-psd-wp/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WordPress &#8211; Auto Convert Youtube Video URL to Embed Code</title>
		<link>http://zenverse.net/wordpress-auto-convert-youtube-video-url-to-embed-code/</link>
		<comments>http://zenverse.net/wordpress-auto-convert-youtube-video-url-to-embed-code/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 05:14:53 +0000</pubDate>
		<dc:creator>Zen</dc:creator>
				<category><![CDATA[Wordpress Development]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://zenverse.net/?p=2513</guid>
		<description><![CDATA[For those who are familiar with WordPress, you might wonder why I blog about this topic since WordPress already added this feature since version 2.9. Although this is not a theme-specific issue, there are still some users who emailed me asking why their youtube video URL are not being converted to embed code automatically.]]></description>
				<content:encoded><![CDATA[<p>For those who are familiar with WordPress, you might wonder why I blog about this topic since WordPress already added this feature since version 2.9. Although this is not a theme-specific issue, there are still some users who emailed me asking why their youtube video URL are not being converted to embed code automatically.</p>
<h3>What you should do: Always put your video URL in a new line</h3>
<p>The example below works, and a video player be displayed when you view the post.</p>
<blockquote><p><code>Your content here. Your content here. Your content here.<br />
http:&#47;&#47;www.youtube.com/watch?v=nTDNLUzjkpg<br />
Your content here. Your content here.</code></p></blockquote>
<h4>Preview of the code above:</h4>
<blockquote><p>Your content here. Your content here. Your content here.</p>
<p><iframe width="500" height="281" src="http://www.youtube.com/embed/nTDNLUzjkpg?fs=1&#038;feature=oembed" frameborder="0" allowfullscreen></iframe></p>
<p>Your content here. Your content here.</p></blockquote>
<h3>Try putting the link in the same line with other text, it will NOT work:</h3>
<blockquote><p>Your content here. Your content here. Your content here.<br />
Guys, check out this video http://www.youtube.com/watch?v=nTDNLUzjkpg<br />
Your content here. Your content here. Your content here.</p></blockquote>
<p>Hope this helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://zenverse.net/wordpress-auto-convert-youtube-video-url-to-embed-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free WordPress Plugins to Boost Your Blog&#8217;s Traffic</title>
		<link>http://zenverse.net/free-wordpress-plugins-to-boost-your-blogs-traffic/</link>
		<comments>http://zenverse.net/free-wordpress-plugins-to-boost-your-blogs-traffic/#comments</comments>
		<pubDate>Mon, 12 Mar 2012 03:45:14 +0000</pubDate>
		<dc:creator>felicity_n</dc:creator>
				<category><![CDATA[Wordpress Development]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://zenverse.net/?p=2517</guid>
		<description><![CDATA[People run blogs for lots of different reasons. Some are looking to extol the virtues of their personal beliefs, others are doing it for their business, while more still do it to showcase their artistic efforts. But whatever the reasoning for running a Wordpress blog, one thing is certain: traffic is crucial. If you’re a blogger, you’ve very likely been through this very scenario – everything is set up, the blog looks great, content is being added frequently, and so on. But the traffic numbers are simply not as high as you’d like them to be.]]></description>
				<content:encoded><![CDATA[<p>People run blogs for lots of different reasons. Some are looking to extol the virtues of their personal beliefs, others are doing it for their business, while more still do it to showcase their artistic efforts. But whatever the reasoning for running a WordPress blog, one thing is certain: traffic is crucial. If you’re a blogger, you’ve very likely been through this very scenario – everything is set up, the blog looks great, content is being added frequently, and so on. But the traffic numbers are simply not as high as you’d like them to be. Well, don’t despair – if you run a WordPress blog, there are a number of things you can do to bolster your visitor numbers. More specifically, you can use plugins to enhance your blog’s visibility and optimisation. And best of all, these plugins are all free.</p>
<p><strong>The All in One SEO Pack</strong></p>
<p>You’re probably well aware of the value of good SEO, but you can make it even easier with this free plugin. In fact, it’s become one of the most popular plugins of all – so you can feel sure it’s a wise choice for your blog. The All in One SEO Pack allows you to tweak every SEO element – from page titles to metatags – and all quickly and easily from the standard post writing page or settings area. You can specify your blog’s home page title and metatags too, which is great for making sure Google indexes you properly. Overall, this plugin is pretty essential for any blogger looking to make a splash in organic results. How will it help you gain more visitors? Well, if you do the right keyword research, you’ll find more people showing up naturally from organic searches. It’s simple and effective (if a little long term). Simply search for ‘All in One SEO’ from the ‘Add New’ plugin section of your blog to find it.<br />
<strong><br />
The AddThis WordPress plugin</strong></p>
<p>Social media is all the rage, you’ll doubtless need to be told, so you’re probably already giving your users a push to share your content. But with the AddThis WordPress plugin, it’s even easier. This simple plugin adds a small links section to the end of each of your posts, from which your readers or visitors can share the article or post via various networks. These include the obvious choices like Facebook and Twitter, but your readers can also post to social bookmarking sites like Digg and Reddit. In any case, your blog’s name will be spread and you should end up with more visitors in the long run. Just try to avoid looking spammy &#8211; that can get you blacklisted and you may end up achieving the exact opposite of what you want. If you notice your site being spammed to social bookmarking sites, you can block users by IP or simply remove the plugin.<br />
<strong><br />
Wordbooker</strong></p>
<p>So you’ve spent three hours writing a post you’re proud of, what’s next? Usually, it’s trawling through the social networks and letting your followers and fans know that there’s new stuff to read. This can be time-consuming. But with the Wordbooker plugin, you can set your posts to automatically be posted to Facebook. And it’s not limited to just your personal wall or Timeline, you can also post to pages – so it’s ideal for businesses too. There are lots of handy options that help you tweak the output of the plugin to suit the style in which you share your content, so you can rest assured that your posts are being shared in the right way. A quick search for ‘Wordbooker’ from the plugins menu will help you get this installed ASAP.</p>
<p>So there you have it – three nifty plugins that can make a real difference to your visitor numbers. Oh, and they’re free, which is always nice. Remember that no amount of plugins will give you a huge increase in numbers, these will only help along the way. The key is to post quality content that people really want to read. There’s a reason they say ‘content is king’ – and your blog is an excellent outlet for compelling content that will keep coming back time and again.</p>
]]></content:encoded>
			<wfw:commentRss>http://zenverse.net/free-wordpress-plugins-to-boost-your-blogs-traffic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[WordPress] How to Exclude Certain Categories From RSS Feed, Home, Search Page and More</title>
		<link>http://zenverse.net/wordpress-exclude-categories/</link>
		<comments>http://zenverse.net/wordpress-exclude-categories/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 06:49:35 +0000</pubDate>
		<dc:creator>Zen</dc:creator>
				<category><![CDATA[Wordpress Development]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://zenverse.net/?p=2375</guid>
		<description><![CDATA[Sometimes we need to exclude a few unimportant categories from our main feed or other pages. A quick search through the web, you will arrive at wprecipes' tutorial, which unfortunately happens to be erroneous because wrong function was used (as of 15 Dec 2011). Anyway, in this blogpost I am gonna show how to exclude categories in RSS Feed, as well as Homepage, Search Page and more.

There are a number of ways to achieve what we want, but the best and cleanest method is to exclude using WordPress Action Hook.]]></description>
				<content:encoded><![CDATA[<p>Sometimes we need to exclude a few unimportant categories from our main feed or other wordpress pages. A quick search through the web, you will arrive at wprecipes&#8217; tutorial, which unfortunately happens to be erroneous because wrong function was used (as of 15 Dec 2011). Anyway, in this blogpost I am gonna show how to exclude categories in RSS Feed, as well as Homepage, Search Page and more.</p>
<p>There are a number of ways to achieve what we want, but the best and cleanest method is to exclude using WordPress Action Hook: <a href="http://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts" target="_blank">pre_get_posts</a>. Using this action hook, we can easily exclude any categories in all wordpress generated pages.</p>
<h3>Exclude Certain Categories from RSS Feed</h3>
<p>First thing you need to do is find the category IDs that you want to hide. WPrecipes <a href="http://www.wprecipes.com/how-to-find-wordpress-category-id" target="_blank">explains this</a> pretty well.</p>
<p>Let&#8217;s say you want to exclude category 3, 4 and 5. Open your theme&#8217;s functions.php, paste these codes:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p2375code7'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p23757"><td class="code" id="p2375code7"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> mytheme_exclude_cats<span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">is_feed</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cat'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'-3,-4,-5'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//seperate by comma</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$query</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pre_get_posts'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'mytheme_exclude_cats'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<ul>
<li><strong><u>pre_get_posts</u></strong> is an action hook that is triggered everytime before wordpress actually retrieve post from database. Therefore, we can tell wordpress to exclude certain categories.</li>
<li><strong><u>$query</u></strong> is a wordpress query object that carries information about current query: how many post to show, what categories to show to exclude, at which page does this query runs, etc.<br />
If you are familiar with writing custom query using WP_Query(), $query is actually the parameters of <a href="http://codex.wordpress.org/Class_Reference/WP_Query#Interacting_with_WP_Query" target="_blank">WP_Query</a>.</li>
<li><strong><u>$query->is_feed</u></strong> carries boolean value of TRUE only when you are in Feed Page.</li>
</ul>
<p>You can run var_dump($query) inside the function to learn more about what the object holds.</p>
<h3>Exclude Certain Categories from Homepage</h3>
<p>Just simply change &#8220;is_feed&#8221; to &#8220;is_home&#8221;:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p2375code8'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p23758"><td class="code" id="p2375code8"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> mytheme_exclude_cats<span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">is_home</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cat'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'-3,-4,-5'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//seperate by comma</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$query</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pre_get_posts'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'mytheme_exclude_cats'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h3>Exclude from other places</h3>
<p>Just simply change &#8220;is_feed&#8221; to the following:</p>
<p>is_feed &#8211; in RSS feed page<br />
is_home &#8211; in blog homepage<br />
is_category &#8211; in category page<br />
is_tag &#8211; in tag page<br />
is_search &#8211; in search page<br />
is_comment_feed &#8211; in comment RSS feed page<br />
is_author &#8211; in author archive page</p>
<h3>Exclude Specific Categories from more than 1 pages</h3>
<p>For example, to exclude category 3, 4 and 5 in both RSS Feed and Search page, it will be just as easy as:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p2375code9'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p23759"><td class="code" id="p2375code9"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> mytheme_exclude_cats<span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">is_search</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">is_feed</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cat'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'-3,-4,-5'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//seperate by comma</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$query</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pre_get_posts'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'mytheme_exclude_cats'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Hope this helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://zenverse.net/wordpress-exclude-categories/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Create A Standalone WordPress Custom PHP Page</title>
		<link>http://zenverse.net/how-to-create-a-standalone-wordpress-custom-php-page/</link>
		<comments>http://zenverse.net/how-to-create-a-standalone-wordpress-custom-php-page/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 14:33:41 +0000</pubDate>
		<dc:creator>Zen</dc:creator>
				<category><![CDATA[Wordpress Development]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://zenverse.net/?p=2107</guid>
		<description><![CDATA[The term "Standalone" here refers to a page that run using WordPress engine but does not display using your WordPress theme. It means that your page can access all PHP functions in WordPress but you get to decide how the page looks like. The good news is, to do this using WordPress is amazingly easy.]]></description>
				<content:encoded><![CDATA[<p>The term &#8220;Standalone&#8221; here refers to a page that run using WordPress engine but does not display using your WordPress theme. It means that your page can access all PHP functions in WordPress but you get to decide how the page looks like. The good news is, to do this using WordPress is amazingly easy.</p>
<h3>Loading WordPress Engine</h3>
<p>First thing to do is to load the WordPress core engine file, wp-load.php. Depends on where you want to put your custom page, you just need to use require_once(&#8216;wp-load.php&#8217;), of course point it to correct folder if your custom page is in different folder.</p>
<p>In this example, i put my custom page in my WordPress root folder. Enter this in your custom page:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p2107code10'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p210710"><td class="code" id="p2107code10"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp-load.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//if you put in &quot;your-wordpress-root/wp-content/&quot; folder , prepend with &quot;../&quot; to go &quot;1 folder up&quot;</span>
<span style="color: #666666; font-style: italic;">//require_once('../wp-load.php');</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Congratulations, you just created a standalone WordPress custom PHP page. Isn&#8217;t that easy?</p>
<h3>Making the page Admin-Only</h3>
<p>Very often you need limit access to your page to your blog admins only. You can check if the user is an admin after the require_once() statement:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p2107code11'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p210711"><td class="code" id="p2107code11"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp-load.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>is_user_logged_in<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span>current_user_can<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'manage_options'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<a href="http://www.php.net/die"><span style="color: #990000;">die</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Please login as admin to use this page.'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//your page content here</span></pre></td></tr></table></div>

<p>As we said previously, after we loaded wp-load.php, we then have access to all WordPress functions, that is why we can use is_user_logged_in() and current_user_can() to check the user. </p>
<p>&#8220;manage_options&#8221; is the capability we used to check if the user is admin because all admins can &#8220;manage_options&#8221;. For more capabilities other than just &#8220;manage_options&#8221;, please refer to the <a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_blank">WordPress Codex on Roles &#038; Capabilities</a>.</p>
<p>Hope this helps :)</p>
]]></content:encoded>
			<wfw:commentRss>http://zenverse.net/how-to-create-a-standalone-wordpress-custom-php-page/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to List All Categories, Pages and Their ID in WordPress</title>
		<link>http://zenverse.net/list-all-categories-pages-id-in-wordpress/</link>
		<comments>http://zenverse.net/list-all-categories-pages-id-in-wordpress/#comments</comments>
		<pubDate>Wed, 15 Dec 2010 16:19:44 +0000</pubDate>
		<dc:creator>Zen</dc:creator>
				<category><![CDATA[Wordpress Development]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://zenverse.net/?p=1712</guid>
		<description><![CDATA[If you are a developer, in some cases you need to get all categories and their IDs. You might start referring to wordpress codex but most likely you will end up with no solution, just like me. Rather than counting on wordpress's built-in function, you can write your own MySQL query to accomplish this.]]></description>
				<content:encoded><![CDATA[<p>If you are a developer, in some cases you need to get all categories and their IDs. You might start referring to wordpress codex but most likely you will end up with no solution, just like me. Rather than counting on wordpress&#8217;s built-in function, you can write your own MySQL query to accomplish this.</p>
<h4>MySQL query that pulls all categories from database</h4>
<p></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1712code12'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p171212"><td class="code" id="p1712code12"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_query"><span style="color: #990000;">mysql_query</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$table_prefix</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;terms.term_id, &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$table_prefix</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;terms.name,&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$table_prefix</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;term_taxonomy.taxonomy FROM &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$table_prefix</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;terms INNER JOIN &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$table_prefix</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;term_taxonomy ON &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$table_prefix</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;terms.term_id = &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$table_prefix</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;term_taxonomy.term_id WHERE &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$table_prefix</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;term_taxonomy.taxonomy = 'category'&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_fetch_assoc"><span style="color: #990000;">mysql_fetch_assoc</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #666666; font-style: italic;">// uncomment the line below to view the content of $row</span>
<span style="color: #666666; font-style: italic;">// var_dump($row);</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// category ID = $row['term_id']</span>
<span style="color: #666666; font-style: italic;">// category name = $row['name']</span>
&nbsp;
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' - ID '</span><span style="color: #339933;">.</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'term_id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;br /&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p><em>$table_prefix</em> is a variable declared in wp-config.php, it carries value &#8220;wp_&#8221; by default unless you changed the setting. It is your SQL tables&#8217; prefix.</p>
<p>WordPress stores all category, tags, etc in <em>wp_term_taxonomy</em> table so we can load all categories name and ID from there.</p>
<h4>What about Pages?</h4>
<p></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1712code13'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p171213"><td class="code" id="p1712code13"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_query"><span style="color: #990000;">mysql_query</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT post_title, ID FROM &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$table_prefix</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;posts WHERE post_type = 'page' AND post_status = 'publish';&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_fetch_assoc"><span style="color: #990000;">mysql_fetch_assoc</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #666666; font-style: italic;">// uncomment the line below to view the content of $row</span>
<span style="color: #666666; font-style: italic;">// var_dump($row);</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// page ID = $row['ID']</span>
<span style="color: #666666; font-style: italic;">// page name = $row['post_title']</span>
&nbsp;
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'post_title'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' - ID '</span><span style="color: #339933;">.</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'ID'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;br /&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>WordPress stores all pages in <em>wp_posts</em> table, but with <em>post_type</em> set as &#8220;page&#8221;.</p>
<p>Hope this helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://zenverse.net/list-all-categories-pages-id-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Creating A Simple WordPress Plugin That Modifies Post Content</title>
		<link>http://zenverse.net/creating-a-simple-wordpress-plugin-that-modifies-post-content/</link>
		<comments>http://zenverse.net/creating-a-simple-wordpress-plugin-that-modifies-post-content/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 09:14:21 +0000</pubDate>
		<dc:creator>Zen</dc:creator>
				<category><![CDATA[Wordpress Development]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://zenverse.net/?p=1648</guid>
		<description><![CDATA[In some occasion, you might need to add a same piece of codes to your blog posts over and over again, and when you need to make changes to them, you need to manually change all of them. This is very tedious. Not anymore, if you make a plugin that does the purpose. ]]></description>
				<content:encoded><![CDATA[<p>In some occasion, you might need to add a same piece of codes to your blog posts over and over again, and when you need to make changes to them, you need to manually change all of them. This is very tedious. Not anymore, if you make a plugin that does the purpose. </p>
<p>In this guide, we are going to create a simple plugin that scan through the post content for &#8220;{donationcode}&#8221; and replace it with our paypal donation codes. <a href="#completecode">Jump to complete code</a></p>
<h3>1. Creating a new plugin php file</h3>
<p>We created a file called <em>simple_replacer.php</em> and put it into <em>wp-content/plugins/simple_replacer/</em> folder.</p>
<h3>2. The plugin header</h3>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1648code14'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p164814"><td class="code" id="p1648code14"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Plugin Name: Simple Replacer
Plugin URI: link to your page to download the plugin or usage guide
Description: Replaces {donationcode} with paypal donation codes
Author: Zen
Version: 1.0
Author URI: http://zenverse.net/
*/</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<h3>3. Adding a function that does the replacing work</h3>
<p>Type these codes into the file after the header part (after */)</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1648code15'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p164815"><td class="code" id="p1648code15"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> the_replacer<span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #000088;">$post</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'{donationcode}'</span> <span style="color: #339933;">,</span> <span style="color: #0000ff;">'YOUR_DONATION_HTML_CODES'</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$content</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>NOTE:<br />
Without returning the variable $content, you will ruin the whole post content (return empty content), so make sure you include the &#8220;return&#8221; line.</p>
<h3>4. Adding filter, let wordpress know what we want to do</h3>
<p>Add this, 1 line before the php closing tag (?>)</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1648code16'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p164816"><td class="code" id="p1648code16"><pre class="php" style="font-family:monospace;">add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_content'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'the_replacer'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//if you want to run the function on excerpts too, uncomment the line below</span>
<span style="color: #666666; font-style: italic;">//add_filter('the_excerpt', 'the_replacer');</span></pre></td></tr></table></div>

<p>NOTE:<br />
The function name &#8220;the_replacer&#8221; must match the php function that you created in step 3.</p>
<h3><a name="completecode"></a>The Complete Code</h3>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1648code17'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p164817"><td class="code" id="p1648code17"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Plugin Name: Simple Replacer
Plugin URI: link to your page to download the plugin or usage guide
Description: Replaces {donationcode} with paypal donation codes
Author: Zen
Version: 1.0
Author URI: http://zenverse.net/
*/</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> the_replacer<span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #000088;">$post</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'{donationcode}'</span> <span style="color: #339933;">,</span> <span style="color: #0000ff;">'YOUR_DONATION_HTML_CODES'</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$content</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_content'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'the_replacer'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//if you want to run the function on excerpts too, uncomment the line below</span>
<span style="color: #666666; font-style: italic;">//add_filter('the_excerpt', 'the_replacer');</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>That&#8217;s it. </p>
]]></content:encoded>
			<wfw:commentRss>http://zenverse.net/creating-a-simple-wordpress-plugin-that-modifies-post-content/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
