<?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>12 Stix - Tech Answers and Fixes &#187; wordpress</title>
	<atom:link href="http://12stix.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://12stix.com</link>
	<description>Tech Answers and Fixes</description>
	<lastBuildDate>Tue, 11 Oct 2011 12:20:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Load WordPress Admin to Blank Page</title>
		<link>http://12stix.com/2011/08/04/load-wordpress-admin-to-blank-page/</link>
		<comments>http://12stix.com/2011/08/04/load-wordpress-admin-to-blank-page/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 14:56:17 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://12stix.com/?p=437</guid>
		<description><![CDATA[When you load yoursite.com/wp-admin you just get a blank page. Open functions.php and remove the white space at the top and bottom.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>When you load yoursite.com/wp-admin you just get a blank page.</p>
<p>Open functions.php and remove the white space at the top and bottom.</p>
<div class="shr-publisher-437"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://12stix.com/2011/08/04/load-wordpress-admin-to-blank-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find Most Recent Comments</title>
		<link>http://12stix.com/2011/07/07/find-most-recent-comments/</link>
		<comments>http://12stix.com/2011/07/07/find-most-recent-comments/#comments</comments>
		<pubDate>Thu, 07 Jul 2011 16:14:29 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://12stix.com/?p=415</guid>
		<description><![CDATA[To find the most recent comments in WordPress use the following code: $number=30; // number of recent comments desired $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT $number"); if ( $comments ) : foreach ( (array) $comments as $comment) : echo sprintf(__('%1$s on %2$s'), get_comment_author_link(), '' . get_the_title($comment->comment_post_ID) [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>To find the most recent comments in WordPress use the following code:</p>
<p><code><br />
$number=30; // number of recent comments desired<br />
$comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT $number");<br />
if ( $comments ) : foreach ( (array) $comments as $comment) :<br />
echo  sprintf(__('%1$s on %2$s'), get_comment_author_link(), '<a href="'. get_comment_link($comment->comment_ID) . '">' . get_the_title($comment->comment_post_ID) . '</a> - ') . $comment->comment_date;<br />
endforeach;<br />
endif;<br />
</code></p>
<div class="shr-publisher-415"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://12stix.com/2011/07/07/find-most-recent-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find the most recent posts from a specific category</title>
		<link>http://12stix.com/2011/07/07/find-the-most-recent-posts-from-a-specific-category/</link>
		<comments>http://12stix.com/2011/07/07/find-the-most-recent-posts-from-a-specific-category/#comments</comments>
		<pubDate>Thu, 07 Jul 2011 15:44:06 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://12stix.com/?p=413</guid>
		<description><![CDATA[In WordPress sometimes you will want to show the most recent post from a specific category. To do this use the following code: global $post; //change the category=1442 to the category number you want to pull the content from //change numberposts=1 to the number of posts you want to return from the category $myposts = [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>In WordPress sometimes you will want to show the most recent post from a specific category.</p>
<p>To do this use the following code:</p>
<p><code><br />
global $post;<br />
//change the category=1442 to the category number you want to pull the content from<br />
//change numberposts=1 to the number of posts you want to return from the category<br />
$myposts = get_posts('numberposts=1&#038;category=1442&#038;order=DESC');<br />
foreach($myposts as $post) :<br />
   setup_postdata($post);<br />
   $catpost= " <a href=\"". get_permalink() ."\">". get_the_title() ."</a>";<br />
endforeach;</p>
<p>echo $catpost;<br />
</code></p>
<div class="shr-publisher-413"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://12stix.com/2011/07/07/find-the-most-recent-posts-from-a-specific-category/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Store the_permalink() as a variable</title>
		<link>http://12stix.com/2011/07/07/store-the_permalink-as-a-variable/</link>
		<comments>http://12stix.com/2011/07/07/store-the_permalink-as-a-variable/#comments</comments>
		<pubDate>Thu, 07 Jul 2011 15:40:43 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://12stix.com/?p=411</guid>
		<description><![CDATA[The wordpress function the_permalink() automatically echos the content to the screen. Sometimes you want to store this value in a variable. In this case use: $string = get_permalink();]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>The wordpress function the_permalink() automatically echos the content to the screen.</p>
<p>Sometimes you want to store this value in a variable.</p>
<p>In this case use:</p>
<p><code><br />
$string = get_permalink();<br />
</code></p>
<div class="shr-publisher-411"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://12stix.com/2011/07/07/store-the_permalink-as-a-variable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Store the_title() in a variable</title>
		<link>http://12stix.com/2011/07/07/store-the_title-in-a-variable/</link>
		<comments>http://12stix.com/2011/07/07/store-the_title-in-a-variable/#comments</comments>
		<pubDate>Thu, 07 Jul 2011 15:39:56 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://12stix.com/?p=409</guid>
		<description><![CDATA[The wordpress function the_title() automatically echos the content to the screen. Sometimes you want to store this value in a variable. In this case use: $string = get_the_title();]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>The wordpress function the_title() automatically echos the content to the screen.</p>
<p>Sometimes you want to store this value in a variable.</p>
<p>In this case use:</p>
<p><code><br />
$string = get_the_title();<br />
</code></p>
<div class="shr-publisher-409"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://12stix.com/2011/07/07/store-the_title-in-a-variable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unable to locate WordPress Content directory (wp-content)</title>
		<link>http://12stix.com/2011/04/23/unable-to-locate-wordpress-content-directory-wp-content/</link>
		<comments>http://12stix.com/2011/04/23/unable-to-locate-wordpress-content-directory-wp-content/#comments</comments>
		<pubDate>Sat, 23 Apr 2011 20:33:22 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://12stix.com/?p=376</guid>
		<description><![CDATA[When you try to update/install a WordPress plugin you get the following error: &#8220;Upgrade Plugin: Unable to locate WordPress Content directory (wp-content)&#8221; Add the following code to the end of your wp-config.php file: if(is_admin()) { add_filter('filesystem_method', create_function('$a', 'return "direct";' )); define( 'FS_CHMOD_DIR', 0751 ); }]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>When you try to update/install a WordPress plugin you get the following error:</p>
<p>&#8220;Upgrade Plugin: Unable to locate WordPress Content directory (wp-content)&#8221;</p>
<p>Add the following code to the end of your wp-config.php file:<br />
<code>if(is_admin()) {<br />
	add_filter('filesystem_method', create_function('$a', 'return "direct";' ));<br />
	define( 'FS_CHMOD_DIR', 0751 );<br />
}</code></p>
<div class="shr-publisher-376"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://12stix.com/2011/04/23/unable-to-locate-wordpress-content-directory-wp-content/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Super Cache 403 Forbidden</title>
		<link>http://12stix.com/2010/09/16/wordpress-super-cache-403-forbidden/</link>
		<comments>http://12stix.com/2010/09/16/wordpress-super-cache-403-forbidden/#comments</comments>
		<pubDate>Thu, 16 Sep 2010 08:46:48 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://12stix.com/?p=316</guid>
		<description><![CDATA[When trying to access cached pages in WordPress you receive a 403 Permission Denied or 403 Forbidden error. To fix you must add the following line to your wp-config.php (Add it above the WP_CACHE define.) Then clear your cache. umask( 0022 ); If your PHP runs as a different user to Apache and permissions are [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>When trying to access cached pages in WordPress you receive a 403 Permission Denied or 403 Forbidden error.</p>
<p>To fix you must add the following line to your wp-config.php (Add it above the WP_CACHE define.) Then clear your cache.<br />
<code>umask( 0022 );<br />
</code><br />
If your PHP runs as a different user to Apache and permissions are strict Apache may not be able to read the PHP generated cache files.</p>
<div class="shr-publisher-316"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://12stix.com/2010/09/16/wordpress-super-cache-403-forbidden/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to highlight sourcecode in WordPress</title>
		<link>http://12stix.com/2008/10/08/how-to-highlight-sourcecode-in-wordpress/</link>
		<comments>http://12stix.com/2008/10/08/how-to-highlight-sourcecode-in-wordpress/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 15:42:56 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://12stix.com/?p=46</guid>
		<description><![CDATA[The SyntaxHighlighter Plus plugin allows you to highlight different types of code within your wordpress posts: CSS example pre { white-space: pre-wrap;       /* css-3 */ white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */ white-space: -pre-wrap;      /* Opera 4-6 */ white-space: -o-pre-wrap;    /* Opera 7 */ word-wrap: break-word;       /* Internet Explorer 5.5+ */ } PHP example &#60;?php [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>The <a href="http://wordpress.org/extend/plugins/syntaxhighlighter-plus/">SyntaxHighlighter Plus</a> plugin allows you to highlight different types of code within your wordpress posts:</p>
<p>CSS example</p>
<pre class="brush: css">pre {
white-space: pre-wrap;       /* css-3 */
white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
white-space: -pre-wrap;      /* Opera 4-6 */
white-space: -o-pre-wrap;    /* Opera 7 */
word-wrap: break-word;       /* Internet Explorer 5.5+ */
}</pre>
<p>PHP example</p>
<pre class="brush: php">&lt;?php
$block = module_invoke(&#039;block&#039;, &#039;block&#039;, &#039;view&#039;, 7);
print $block[&#039;content&#039;];
?&gt; </pre>
<p>The module states it works upto WordPress 2.5 however it is working without any problems on 2.6.</p>
<p>It supports the following languages (the alias for use in the post is listed next to the name):</p>
<ul>
<li>Bash &#8212; <code>bash</code>, <code>sh</code></li>
<li>C++ &#8212; <code>cpp</code>, <code>c</code>, <code>c++</code></li>
<li>C# &#8212; <code>c#</code>, <code>c-sharp</code>, <code>csharp</code></li>
<li>CSS &#8212; <code>css</code></li>
<li>Delphi &#8212; <code>delphi</code>, <code>pascal</code></li>
<li>Java &#8212; <code>java</code></li>
<li>JavaScript &#8212; <code>js</code>, <code>jscript</code>, <code>javascript</code></li>
<li>PHP &#8212; <code>php</code></li>
<li>Python &#8212; <code>py</code>, <code>python</code></li>
<li>Ruby &#8212; <code>rb</code>, <code>ruby</code>, <code>rails</code>, <code>ror</code></li>
<li>SQL &#8212; <code>sql</code></li>
<li>VB &#8212; <code>vb</code>, <code>vb.net</code></li>
<li>XML/HTML &#8212; <code>xml</code>, <code>html</code>, <code>xhtml</code>, <code>xslt</code></li>
</ul>
<div class="shr-publisher-46"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://12stix.com/2008/10/08/how-to-highlight-sourcecode-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

