<?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>Word Impressed</title>
	<atom:link href="http://www.wordimpressed.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wordimpressed.com</link>
	<description>Impressed by WordPress</description>
	<lastBuildDate>Thu, 22 Mar 2012 21:47:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>List only Sibling Pages Using wp_list_pages</title>
		<link>http://www.wordimpressed.com/wordpress/list-only-sibling-pages-using-wp_list_pages/</link>
		<comments>http://www.wordimpressed.com/wordpress/list-only-sibling-pages-using-wp_list_pages/#comments</comments>
		<pubDate>Wed, 21 Mar 2012 20:16:52 +0000</pubDate>
		<dc:creator>Devin Walker</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wp_list_pages]]></category>

		<guid isPermaLink="false">http://www.wordimpressed.com/?p=1153</guid>
		<description><![CDATA[If you have multiple navigation levels it's often useful to include a page list of child and sibling pages for the better user navigation.  Here's how to do that using WordPress' wp_list_pages function.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.wordimpressed.com/wp-content/uploads/2012/03/widget.png" class="alignright" alt="List only Sibling Pages Using wp_list_pages"/></p>
<p>If your site has multiple navigational levels then it&#8217;s sometimes useful to include a sidebar widget that displays an easy way for the user to select child or sibling pages. WordPress&#8217; wp_list_pages function allows us to create this functionality.</p>
<h2>Displaying only Sibling Pages with wp_list_pages</h2>
<p>Suppose your have a navigation similar to the structure below:</p>
<ul>
<li>music
<ul>
<li>rap</li>
<li>rock</li>
<li>reggae</li>
</ul>
</li>
</ul>
<ul>
<li>sports
<ul>
<li>golf</li>
<li>tennis</li>
<li>hockey</li>
</ul>
</li>
</ul>
<p>Suppose the user is on the &#8220;Sports&#8221; page.  You&#8217;d want the sidebar widget to display the subpage items for that section like so:</p>
<ul>
<li>golf</li>
<li>tennis</li>
<li>hockey</li>
</ul>
<p>Now the user clicks on &#8220;Golf&#8221; and they are no longer on the &#8220;Sports&#8221; page, it is now the parent page.  The sidebar will then display sibling pages and exclude the page the currently is on:</p>
<ul>
<li>tennis</li>
<li>hockey</li>
</ul>
<h2>How to Achieve this with Code</h2>
<p>There may be a few different ways to achieve this with code, but this is the method that I found works best for my needs:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #666666; font-style: italic;">//GET CHILD PAGES IF THERE ARE ANY</span>
    <span style="color: #000088;">$children</span> <span style="color: #339933;">=</span> get_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'child_of='</span><span style="color: #339933;">.</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">//GET PARENT PAGE IF THERE IS ONE</span>
    <span style="color: #000088;">$parent</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_parent</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">//DO WE HAVE SIBLINGS?</span>
    <span style="color: #000088;">$siblings</span> <span style="color: #339933;">=</span>  get_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'child_of='</span><span style="color: #339933;">.</span><span style="color: #000088;">$parent</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: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$children</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
       <span style="color: #000088;">$args</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
         <span style="color: #0000ff;">'depth'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>
         <span style="color: #0000ff;">'title_li'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span>
         <span style="color: #0000ff;">'child_of'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span>
       <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$parent</span> <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$args</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
             <span style="color: #0000ff;">'depth'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>
             <span style="color: #0000ff;">'title_li'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span>
             <span style="color: #0000ff;">'exclude'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span>
             <span style="color: #0000ff;">'child_of'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$parent</span>
           <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #666666; font-style: italic;">//Show pages if this page has more than one sibling </span>
    <span style="color: #666666; font-style: italic;">// and if it has children </span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$siblings</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">1</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><span style="color: #990000;">is_null</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$args</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>   
    <span style="color: #009900;">&#123;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
    &lt;div class=&quot;widget subpages&quot;&gt;
    &lt;h3 class=&quot;widgettitle&quot;&gt;Also in this Section&lt;/h3&gt;
         &lt;ul class=&quot;pages-list&quot;&gt;
         <span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #000088;">$args</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #000000; font-weight: bold;">?&gt;</span>
         &lt;/ul&gt;
     &lt;/div&gt;
    <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>What&#8217;s going on here?  First we are checking to see if the current page has any child pages using the get_pages function.  Next, we check to see if the current page has a parent.  If the parent page does have children then we display the child pages for that section by declaring separate arguments using the &#8216;child_of&#8217; this post ID parameter.  </p>
<p>If the current page does not have any children then it&#8217;s time to query the post parent&#8217;s page list.  We can&#8217;t forget to use the &#8216;exclude&#8217; parameter to make sure the current page the user on is not displayed as well in the page list.</p>
<h3>To Wrap it Up</h3>
<p>As you can see this can be a helpful widget and it&#8217;s easy to setup and style.  I haven&#8217;t tested the code above with more than just 2-levels of pages.  Let me know if it works for you!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wordimpressed.com/wordpress/list-only-sibling-pages-using-wp_list_pages/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WP Fix: Blank Search Sends Users to the Homepage</title>
		<link>http://www.wordimpressed.com/wordpress/fix-blank-search-sends-you-to-the-homepage/</link>
		<comments>http://www.wordimpressed.com/wordpress/fix-blank-search-sends-you-to-the-homepage/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 21:52:40 +0000</pubDate>
		<dc:creator>Devin Walker</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.wordimpressed.com/?p=1141</guid>
		<description><![CDATA[If you're experiencing blank search queries redirecting you to your homepage here's the fix.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.wordimpressed.com/wp-content/uploads/2012/02/search-thumb-150x150.png" alt="" title="search-thumb" width="150" height="150" class="alignright size-thumbnail wp-image-1142" />In a recent project I had a problem with the search results page.  Basically, when a user clicks on the search button without typing a keyword he or she is brought to the homepage.  Rather, the query should be empty and either display the list of result or tell the user that they need to enter a keyword (validation).</p>
<h2>How to Fix the Search</h2>
<p>After searching the Internets I found a few fixes.  Here&#8217;s one on the <a href="http://wordpress.org/support/topic/blank-search-sends-you-to-the-homepage" title="WordPress Forum: Blank search sends you to the homepage" target="_blank" rel="nofollow">WordPress forums</a> that seemed the most promising.  This led me to the code below which, after being <strong>added to your theme&#8217;s functions.php file</strong>, will <em>bring prevent the user from going to homepage and rather display the search results page</em>.</p>
<h3>Add to your theme&#8217;s functions.php file</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">add_filter<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'request'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'my_request_filter'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">function</span> my_request_filter<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$query_vars</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: #990000;">isset</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'s'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'s'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$query_vars</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'s'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$query_vars</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<h2>A Few Notes</h2>
<p>Blank search results seems to only happen when you have your homepage set to a static page in WordPress rather than the default settings.  I haven&#8217;t seen any mentions of other configurations causing this on the web.</p>
<h3>WordPress DEVs are Aware of the Issue</h3>
<p>Here&#8217;s a <a href="http://core.trac.wordpress.org/ticket/11330" title="Empty search takes you to hompage instead of empty search page" target="_blank">WP Trac ticket</a> opened at WordPress that says as of 2-months ago a fix for this is slated for future WP version 3.3</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wordimpressed.com/wordpress/fix-blank-search-sends-you-to-the-homepage/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to turn off WP Post Revisions</title>
		<link>http://www.wordimpressed.com/wordpress/how-to-turn-off-wp-post-revisions/</link>
		<comments>http://www.wordimpressed.com/wordpress/how-to-turn-off-wp-post-revisions/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 03:52:42 +0000</pubDate>
		<dc:creator>Devin Walker</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.wordimpressed.com/?p=1133</guid>
		<description><![CDATA[Have a lot of post revisions cluttering your database?  Turn off WordPress post revisions!  Here's how.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.wordimpressed.com/wp-content/uploads/2012/01/wp-post-revisions1.png" alt="" title="wp-post-revisions" width="164" height="161" class="alignright size-full wp-image-1138" />Post revisions can be helpful for many users, but some users prefer to disable this default feature.  You may have thousands of posts and are noticing a database slowdown, this will help.  Maybe you just don&#8217;t want to use this feature.  Let&#8217;s disable it!</p>
<h2>How to disable WordPress Post Revisions</h2>
<p>Do you prefer a Plugin or Code?</p>
<h3>Code Method:</h3>
<p>Disabling the <a href="http://codex.wordpress.org/Revision_Management" title="WordPress Revision Management" target="_blank">WordPress&#8217; Revision Management</a> feature is simple:</p>
<p><strong>Open your wp-config.php</strong> file in the root directory of your WordPress installation.  </p>
<p>Add this snippet of code at the top of the file (or bottom):</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//disable WP Post Revisions</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_POST_REVISIONS'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>false, 0: do not store any revisions (except the one autosave per post)</p>
<h3>Plugin Method</h3>
<p>There&#8217;s a number of plugins that will keep you away from the code and safely deleting your revisions:</p>
<p><a href="http://wordpress.org/extend/plugins/revision-control/">Revision Control</a> is the most popular WP Revision management plugin.  There&#8217;s also <a href="http://wordpress.org/extend/plugins/no-revisions/" title="No revisions WP plugin" target="_blank">No Revisions</a> which is less popular but gets the job done</p>
<h2>How to Delete Existing Post Revision from Database</h2>
<h3>MySQL Query Method</h3>
<p><strong>For Advanced Users</strong>: Open up phpMyAdmin (SQL Pro) or what-have-you and run the follow query.   If you like to</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">DELETE a<span style="color: #339933;">,</span>b<span style="color: #339933;">,</span>c
FROM wp_posts a
LEFT <span style="color: #990000;">JOIN</span> wp_term_relationships b ON <span style="color: #009900;">&#40;</span>a<span style="color: #339933;">.</span>ID <span style="color: #339933;">=</span> b<span style="color: #339933;">.</span>object_id<span style="color: #009900;">&#41;</span>
LEFT <span style="color: #990000;">JOIN</span> wp_postmeta c ON <span style="color: #009900;">&#40;</span>a<span style="color: #339933;">.</span>ID <span style="color: #339933;">=</span> c<span style="color: #339933;">.</span>post_id<span style="color: #009900;">&#41;</span>
WHERE a<span style="color: #339933;">.</span>post_type <span style="color: #339933;">=</span> <span style="color: #0000ff;">'revision'</span></pre></div></div>

<p>*Disclaimer: Perform a db backup prior to running any queries to delete from your database</p>
<h3>Plugin Method</h3>
<p>The following plugins do the trick just fine (and perhaps &#8220;Better&#8221;):</p>
<p><a href="http://wordpress.org/extend/plugins/better-delete-revision/">Better Delete Revision</a></p>
<p><a href="http://wordpress.org/extend/plugins/delete-revision/">Delete-Revision</a></p>
<h3>Why is WP_POST_REVISIONS enabled by Default?</h3>
<p>While I cannot find an official explanation, my consensus is that many users find this feature an easy way to backup your posts and revert.  WordPress is providing piece-of-mind, saving users from data loss.  This feature is not available on many other popular CMS platforms.  </p>
<p>I hope this article helps my fellow WordPress Community Memebers!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wordimpressed.com/wordpress/how-to-turn-off-wp-post-revisions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jFlow Plus v2 &#8211; A Compact jQuery Slider</title>
		<link>http://www.wordimpressed.com/plugins/jflow-plus-v2-demo-documentation-download/</link>
		<comments>http://www.wordimpressed.com/plugins/jflow-plus-v2-demo-documentation-download/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 09:17:55 +0000</pubDate>
		<dc:creator>Devin Walker</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://www.wordimpressed.com/?p=1106</guid>
		<description><![CDATA[jFlow Plus v2 is a compact slider and next generation of the popular jFlow jQuery slider.  Check out why you should be using jFlow on your next project!]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.wordimpressed.com/wp-content/uploads/2011/10/jflowplus-logo.jpg" alt="jQuery Plus Verion 2" title="jflowplus-logo" width="580" height="180" class="alignnone size-full wp-image-1107" /></p>
<p><strong>jFlow Plus is a compact slider (~4kb minified) with multiple effects and configurations that is cross-browser compatible and actively developed on by the open source community.</strong></p>
<h2><a href="http://www.wordimpressed.com/demos/jflowplus-v2/" title="View the jFlow Demo">Click to view the jFlow Demo</a></h2>
<p><a href="http://www.wordimpressed.com/demos/jflowplus-v2/" title="View the jFlow Demo"><img src="http://www.wordimpressed.com/wp-content/uploads/2011/11/jflow-demo.jpg" alt="Click to view the jFlow Demo" title="jflow-demo" width="580" height="480" class="alignnone size-full wp-image-1123" /></a></p>
<h2>Why Should You jFlow?</h2>
<p>There are many sliders on the Internet to chose from, so why this one?  Good question.  First, let&#8217;s start with simplicity.  A lot of jQuery slider plugins take an experienced developer to setup, not jFlow.  We&#8217;ve got a superb demo for your to reference, download and implement.  Novice web developers can get this puppy up and running in no time.  What else you ask?  Here&#8217;s a brief summary:</p>
<ul>
<li>Simple to setup</li>
<li>Cross-browser Compatible</li>
<li>Compatible with latest version of jQuery</li>
<li>Open Source and Community Supported</li>
<li>Actively Developed</li>
<li>Good Documentation and Support</li>
<li>and many more&#8230;</li>
</ul>
<h2>Help with Your jFlow</h2>
<p>Planning on using jFlow for your next WordPress site?  Great!  Here&#8217;s a few tips to get your started quickly:</p>
<ul>
<li><strong><a href="http://www.wordimpressed.com/demos/jflowplus-v2/" title="Visit the jFlow Plus demo">Visit the Demo</a></strong></li>
<li>Start with the demo CSS and style to your liking</li>
<li>If you&#8217;re stuck, read the documentation</li>
<li>Start with the basic functionality and then modify to suit your needs</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.wordimpressed.com/plugins/jflow-plus-v2-demo-documentation-download/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
		<item>
		<title>How to Remove Paragraph Tags Around the WordPress Category Description</title>
		<link>http://www.wordimpressed.com/wordpress/how-to-remove-paragraph-tags-around-the-wordpress-category-description/</link>
		<comments>http://www.wordimpressed.com/wordpress/how-to-remove-paragraph-tags-around-the-wordpress-category-description/#comments</comments>
		<pubDate>Fri, 14 Oct 2011 08:04:06 +0000</pubDate>
		<dc:creator>Devin Walker</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[category_description()]]></category>
		<category><![CDATA[functions.php]]></category>

		<guid isPermaLink="false">http://www.wordimpressed.com/?p=1113</guid>
		<description><![CDATA[If you need to use the category_decription() function without the included paragraph tags, here's how!]]></description>
			<content:encoded><![CDATA[<p>Sometimes you may need to use the category_description() WordPress function to output plain text, without the included paragraph tags.</p>
<h2>Remove the Paragraph Tags: Add this to your theme&#8217;s function.php file:</h2>
<p>This simple filter will remove the wpautop function from running on the term description. Simply add this snippet to the bottom of your theme&#8217;s function.php file and save.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">remove_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'term_description'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'wpautop'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h3>Before:</h3>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;p&gt;My Category Description&lt;/p&gt;</pre></div></div>

<h3>After:</h3>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">My Category Description</pre></div></div>

<p>Here&#8217;s a link to the WP forum thread revealing this simple and effective filter: <a href="http://wordpress.org/support/topic/get-rid-of-p-tags-in-category_description?replies=15" title="View the original solution of WordPress forum">WP Forum Thread</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.wordimpressed.com/wordpress/how-to-remove-paragraph-tags-around-the-wordpress-category-description/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Sign Up for Google&#8217;s New Page Speed Service</title>
		<link>http://www.wordimpressed.com/coding/how-to-sign-up-for-googles-new-page-speed-service/</link>
		<comments>http://www.wordimpressed.com/coding/how-to-sign-up-for-googles-new-page-speed-service/#comments</comments>
		<pubDate>Fri, 29 Jul 2011 16:26:25 +0000</pubDate>
		<dc:creator>Devin Walker</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://www.wordimpressed.com/?p=1096</guid>
		<description><![CDATA[Before you can start using this new service you'll have to get invited.  Here's how to request access to Google's Page Speed Service.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.wordimpressed.com/wp-content/uploads/2011/07/google-page-speed-service-icon1-150x150.jpg" alt="Google Page Speed" title="google-page-speed-service-icon" width="150" height="150" class="alignright size-thumbnail wp-image-1102" />Google loves fast websites and they&#8217;re offering to make your websites faster for free by using their brand new <strong><a href="http://code.google.com/speed/pss/index.html" title="Google's Page Speed Service" target="_blank">Page Speed Service</a></strong>.  </p>
<h2>Sign Up for an Invite</h2>
<p>Google is limiting the roll out of this new service to an untold number of webmasters. <strong><a href="https://docs.google.com/a/flankmarketing.com/spreadsheet/viewform?hl=en_US&#038;formkey=dDdjcmNBZFZsX2c0SkJPQnR3aGdnd0E6MQ&#038;ifq" title="Sign Up for Google's Page Speed Service" target="_blank">Using this sign up form</a></strong> you can request access to Page Speed Service and will be invited by Google to use this brand new service. </p>
<p>Here&#8217;s an image of the Page Speed Dashboard:</p>
<p><img src="http://www.wordimpressed.com/wp-content/uploads/2011/07/page-speed-dashboard.png" alt="Google Page Speed Dashboard" title="page-speed-dashboard" width="580" height="499" class="alignnone size-full wp-image-1099" /></p>
<p>Below is a screenshot of the Rewrite options panel:</p>
<p><img src="http://www.wordimpressed.com/wp-content/uploads/2011/07/google-page-speed-service.png" alt="Google&#039;s Page Speed Service" title="google-page-speed-service" width="580" height="350" class="alignnone size-full wp-image-1097" /></p>
<h2>How it Works</h2>
<p>Once you get to start using the Page Speed Service you will log into your Google APIs console, provite the domain of your website, verify ownership, set up the <a href="http://code.google.com/speed/pss/docs/refdomain.html" target="_blank">reference domain</a> and change your site&#8217;s DNS CNAME.</p>
<p>That&#8217;s an earful, but Google makes the process pretty simple and it looks like they have pretty <a href="http://code.google.com/speed/pss/docs/overview.html" title="Google Page Speed Overview" target="_blank">good documentation</a>.</p>
<h3>Where&#8217;s Your Invite?</h3>
<p>I&#8217;m still waiting for my invite, I&#8217;ll update here when I get one.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.wordimpressed.com/coding/how-to-sign-up-for-googles-new-page-speed-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable Time-based Voting Restrictions on GD Star Rating Plugin</title>
		<link>http://www.wordimpressed.com/wordpress/enable-time-based-voting-restrictions-on-gd-star-rating-plugin/</link>
		<comments>http://www.wordimpressed.com/wordpress/enable-time-based-voting-restrictions-on-gd-star-rating-plugin/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 07:27:40 +0000</pubDate>
		<dc:creator>Devin Walker</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.wordimpressed.com/?p=1082</guid>
		<description><![CDATA[Are you using the GD Star Rating plugin? Learn how to restrict voting by time-range.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.wordimpressed.com/wp-content/uploads/2011/07/gd-star-rating-150x150.png" alt="" title="gd-star-rating" width="150" height="150" class="alignright size-thumbnail wp-image-1087" />The GD Star Rating plugin is a very powerful WordPress plugin, albeit a bit confusing.  It allows you to insert rating and voting widgets into your pages and posts very easily.  But what if you want to allows users to vote or rate on something once every day?  Check it out:</p>
<h2>Problem: No Vote or Rating Expirations</h2>
<p>Out of the box, you are allowed to restrict voting by IP logging or cookies as see in the image below:</p>
<p><img src="http://www.wordimpressed.com/wp-content/uploads/2011/07/gd-star-restrictions.png" alt="GD Star Rating voting restriction settings" title="gd-star-restrictions" width="481" height="126" class="alignnone size-full wp-image-1083" /></p>
<p>These setting are not exactly what we need, since there&#8217;s no option to expire votes we will need to do a little bit more.  First, uncheck the options <em>&#8220;Use logged data (IP) to prevent duplicate voting.&#8221;</em> and <em>&#8220;Use cookies to prevent duplicate voting.&#8221;</em> like so:</p>
<p><img src="http://www.wordimpressed.com/wp-content/uploads/2011/07/uncheck-gd-star.png" alt="Uncheck GD Star Rating restrictions" title="uncheck-gd-star" width="506" height="130" class="alignnone size-full wp-image-1084" /></p>
<p>No with these current options users will be able to rate and vote non-stop.  Once could very easily rig up a macro and mess up some ratings. Obviously we don&#8217;t want this so let&#8217;s use cookies to prevent this from happening.</p>
<h2>Solution: Use jQuery and Cookies to Restrict Voting</h2>
<p>Have you heard of the <a href="http://plugins.jquery.com/project/Cookie" title="jQuery Cookie Plugin" target="_blank">jQuery Cookies plugin</a>?  It&#8217;s really good and lightweight.  </p>
<h3>Download the Cookies plugin and Insert it in your head</h3>
<p><a href="https://raw.github.com/carhartl/jquery-cookie/master/jquery.cookie.js" title="Raw jQuery Cookies Plugin File" target="_blank">Download the jQuery Cookies plugin</a>; once that&#8217;s done insert it into the head of your website:</p>
<p><img src="http://www.wordimpressed.com/wp-content/uploads/2011/07/jquery-cookies-plugin-580x138.png" alt="jQuery Cookies Plugin" title="jquery-cookies-plugin" width="580" height="138" class="alignnone size-medium wp-image-1085" /></p>
<h3>Code the Function to Restrict Voting 24-Hours</h3>
<p>Now that we have our Cookies plugin (along with jQuery of course) ready for use on our website we can code out a function to <strong>only allow people to vote once per day</strong>.  Here&#8217;s the function I&#8217;m using:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">jQuery<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #006600; font-style: italic;">//if our cookie is present display you have voted text</span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>jQuery.<span style="color: #660066;">cookie</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'vote_cookie'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #006600; font-style: italic;">//when gd star rating is clicked do function to set cookie</span>
        jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.gdt-starrating'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #006600; font-style: italic;">//set cookie 			</span>
            jQuery.<span style="color: #660066;">cookie</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'vote_cookie'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'closed'</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>
                expires<span style="color: #339933;">:</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">,</span>
                path<span style="color: #339933;">:</span> <span style="color: #3366CC;">'/'</span><span style="color: #339933;">,</span>
                domain<span style="color: #339933;">:</span> <span style="color: #3366CC;">'yourdomain.com'</span>
            <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #006600; font-style: italic;">//else the cookie is already set	</span>
    <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #006600; font-style: italic;">//fade out the ratings and display voted message</span>
        jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.gdt-starrating'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeOut</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;fast&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #006600; font-style: italic;">//append voted message</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #006600; font-style: italic;">//append voted message to parent container</span>
        jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.gdthumb'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;p class=&quot;vote_msg&quot;&gt;Thanks for Voting. Come back tomorrow!&lt;/p&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #006600; font-style: italic;">//slide down the vote message</span>
        jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.vote_msg'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideDown</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;fast&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Check out my <strong>line-by-line notes above</strong> and <em>leave a comment below if you have any code-related questions</em>.  For the cookie&#8217;s lifetime or &#8220;expires&#8221; parameter: You can define the lifetime of the cookie using a number which will be interpreted as days from time of creation. If left out, the cookie is a session cookie.</p>
<p>Please note: Depending on the <strong>GD Star Rating Template</strong> you are using, your <em>jQuery selector</em> could be different.  Also, this method is not fool-proof.  Users will still be able to clear their browser&#8217;s cookies and vote.</p>
<h2>Live Working Demo</h2>
<p>Update: Sorry the working update has been taken down :[  Please use the comment section below to post your questions.</p>
<p>To take a look at the<strong> GD Star Rating voting restriction in action</strong> check out the projects page over at <del datetime="2011-11-29T07:43:17+00:00"><a href="#" rel="nofollow" title="Live GD Star Rating voting restriction in action demo" target="_blank">The Modern Gypsies&#8217; website</a></del>.</p>
<h2>Future Development</h2>
<p>The best way to accomplish the voting restriction would be to do it via server-side with PHP and hooking into the function of the plugin itself.  Fortunatly, for my needs this was not necessary but it may be for others with higher traffic and to ensure rating integrity.</p>
<p>Hopefully the plugin author will include this as an option in upcoming releases of the GD Star Rating plugin. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.wordimpressed.com/wordpress/enable-time-based-voting-restrictions-on-gd-star-rating-plugin/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to Delay Windows Opening on Click with jQuery</title>
		<link>http://www.wordimpressed.com/coding/how-to-delay-windows-opening-on-click-with-jquery/</link>
		<comments>http://www.wordimpressed.com/coding/how-to-delay-windows-opening-on-click-with-jquery/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 06:32:54 +0000</pubDate>
		<dc:creator>Devin Walker</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.wordimpressed.com/?p=1065</guid>
		<description><![CDATA[Need to delay the opening of a browser window by a certain amount of time? Here's how!]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.wordimpressed.com/wp-content/uploads/2011/07/browser-popup-150x150.png" alt="Use jQuery to delay window open" title="browser-popup" width="150" height="150" class="alignright size-thumbnail wp-image-1069" />Sometimes you may have an instance where you need to delay the opening of a new browser window when a link or button is clicked.  With JavaScript and jQuery this is very easy to do. </p>
<h2>Using the Click and setTimeout Methods to Open Links</h2>
<p>Using a bit of jQuery and JavaScript&#8217;s methods we can achieve a simple timer to open links.</p>
<h3>See it in Action</h3>
<p>Want to check it out?  Click <a href="#" title="Click to open Demo link" class="delay1-demo">HERE</a> and watch as the link opens after 3-seconds.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">jQuery<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.myselector'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>	
      setTimeout<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	window.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;http://wordimpressed.com&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">1000</span> <span style="color: #009966; font-style: italic;">/* time to delay */</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h3>Code Explanation</h3>
<p>What the code above is doing is utilizing jQuery <a href="http://api.jquery.com/click/" title="The jQuery .click() method" target="_blank">.click()</a> method to fire off a function once the link or button with the class &#8220;.myselector&#8221;.  Once this function fires the <a href="http://www.w3schools.com/jsref/met_win_settimeout.asp" title="the setTimeout method on w3 Schools" target="_blank">setTimeout </a>method then calls a function after a specified number of milliseconds.  </p>
<p>You may find that the number of seconds can vary depending on the user&#8217;s computer processing power and how busy the client (browser) is during at the time the function fires.  Regardless, the this method should meet the needs of most developers for opening new browser windows after a specified time.</p>
<h2>Using the jQuery .delay() Method for Animations and Effects</h2>
<p>The code below will not open link in new windows, but it is useful for delaying jQuery animations and effects:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;button&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;div.first&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideUp</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">300</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">delay</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">800</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">400</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h3>See it in Action</h3>
<p>Click <a href="#" title="Click to view jQuery Delay Demo" class="delay2-demo">here</a> to slide up the picture below after 3-seconds.</p>
<p><img src="http://www.wordimpressed.com/wp-content/uploads/2011/07/homeless-coder.jpg" id="slideUp" /></p>
<h3>Code Explanation</h3>
<p>The <a href="http://api.jquery.com/delay/" title="The jQuery .delay() method" target="_blank">.delay()</a> method is great for timing animations and additional methods to a certain time.  In this example we use the .delay() method to delay the .slideUp() method on our demo image for a specified number of milliseconds.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wordimpressed.com/coding/how-to-delay-windows-opening-on-click-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Test Yourself: Beginners-Level WordPress Quiz</title>
		<link>http://www.wordimpressed.com/wordpress/beginners-level-wordpress-quiz/</link>
		<comments>http://www.wordimpressed.com/wordpress/beginners-level-wordpress-quiz/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 07:55:00 +0000</pubDate>
		<dc:creator>Devin Walker</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.wordimpressed.com/?p=1046</guid>
		<description><![CDATA[Test your basic WordPress knowledge with this quick and fun beginners-level quiz.  ]]></description>
			<content:encoded><![CDATA[<div id='quiz-container'></div>
]]></content:encoded>
			<wfw:commentRss>http://www.wordimpressed.com/wordpress/beginners-level-wordpress-quiz/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>How to Enable Facebook&#8217;s New Chat</title>
		<link>http://www.wordimpressed.com/social-networks/how-to-enable-facebooks-new-chat/</link>
		<comments>http://www.wordimpressed.com/social-networks/how-to-enable-facebooks-new-chat/#comments</comments>
		<pubDate>Fri, 08 Jul 2011 06:15:10 +0000</pubDate>
		<dc:creator>Devin Walker</dc:creator>
				<category><![CDATA[Social Networks]]></category>
		<category><![CDATA[Facebook]]></category>

		<guid isPermaLink="false">http://www.wordimpressed.com/?p=1040</guid>
		<description><![CDATA[Are you using the latest version of Facebook's chat feature?  Learn how to enable the new sidebar chat feature.]]></description>
			<content:encoded><![CDATA[<p>Facebook recently revamped their message system and among additions like video messages, there is the ability to extend the chat to the full-height of your browser window.</p>
<h2>Enable Facebook Sidebar Chat</h2>
<p><img src="http://www.wordimpressed.com/wp-content/uploads/2011/07/sidebar-facebook-messages.png" alt="Facebook Sidebar Prompt" title="sidebar-facebook-messages" width="184" height="388" class="alignright size-full wp-image-1041" />Once you log into Facebook, go to your &#8220;News Feed&#8221; and ensure your browser is maximized.  If you have a large enough monitor you should see the sidebar Chat grayed out with the following invite message:</p>
<p><img src="http://www.wordimpressed.com/wp-content/uploads/2011/07/facebook-message-try.png" alt="Try the New Facebook Sidebar Chat" title="facebook-message-try" width="175" height="149" class="alignnone size-full wp-image-1042" /></p>
<p>Once you click the &#8220;Try it now&#8221; button you will immediately be able to message your friends that you interact with the most.  </p>
<p>Still lost?  Check out the Facebook&#8217;s <a href="http://www.facebook.com/help/?page=194010440647624" title="Learn how to use the Facebook Chat Sidebar">Using the Sidebar</a> for useful help information.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wordimpressed.com/social-networks/how-to-enable-facebooks-new-chat/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: www.wordimpressed.com @ 2012-05-18 19:56:35 by W3 Total Cache -->
