<?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>computeraxe &#187; WordPress</title>
	<atom:link href="http://computeraxe.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://computeraxe.com</link>
	<description>wordpress tips and tricks</description>
	<lastBuildDate>Tue, 31 Jan 2012 07:05:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>JavaScript Plugin: jQuery Cycle for Slideshows</title>
		<link>http://computeraxe.com/javascript-plugin-jquery-cycle-for-slideshows/</link>
		<comments>http://computeraxe.com/javascript-plugin-jquery-cycle-for-slideshows/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 07:05:27 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=848</guid>
		<description><![CDATA[JavaScript plugins can definitely speed up development of a website, but unless you take the time to explore the plugins you&#8217;re using, you may not be using them to full advantage. Read on to learn more about using the jQuery &#8230; <a href="http://computeraxe.com/javascript-plugin-jquery-cycle-for-slideshows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>JavaScript plugins can definitely speed up development of a website, but unless you take the time to explore the plugins you&#8217;re using, you may not be using them to full advantage. Read on to learn more about using the <a href="http://www.malsup.com/jquery/cycle/" title="jQuery Cycle plugin for slideshows">jQuery Cycle plugin</a> for slideshows. It works with jQuery v1.3.2 and later.</p>
<div id="show3">
<img src="/images/cat-in-snow.jpg" alt="cat in snow" class="first" /><br />
<img src="/images/cat-in-tree.jpg" alt="cat in tree" /><br />
<img src="/images/darling-kittens.jpg" alt="darling kittens" /><br />
<img src="/images/baby-sixtoes.jpg" alt="baby sixtoes" />
</div>
<div class="clear">&nbsp;</div>
<p>The jQuery Cycle Plugin offers an amazing number of transitions for your next slideshow. If any of the two dozen transitions don&#8217;t give the effect you&#8217;re looking for, the plugin can always be modified to suit. If you&#8217;re looking to make some unique transitions, check out the advanced demos on the plugin site.</p>
<p>Over 50 options can be implemented to show your slides in the best light. Options are available for controlling the speed of the transitions, the length of time between slides, as well as running the slideshow backwards or stopping after a certain number of slides have been shown. </p>
<p>Slides can be forced to fit a container and made to be manually paused and resumed. Easing transitions can be specified as can random showing of slides. <a href="http://www.malsup.com/jquery/cycle/options.html" title="Options for Cycle plugin">Options in Cycle</a> are plentiful and definitely worth investigating.</p>
<p>Command strings can be used to pause or resume the slideshow or advance to the next or previous slides. Tie these commands to a click event to let your visitors see the show as they wish.</p>
<p>The Cycle plugin works with two assumptions in creating slideshows. First, it assumes that a container object has been identified, usually via a class or id identifier, that will contain the slides for the slideshow. All children of the containing parent will become a slide.</p>
<p>Second, the slides must all be children of the container. Any object can be a child here, so textual content, images, anchors and divs can all be manipulated and viewed as slides in your slideshow. Don&#8217;t put anything else in the slideshow container unless you want it to become part of the slideshow.</p>
<p>Here&#8217;s the HTML markup that could be used for a simple slideshow of images:</p>
<pre class="crayon-plain-tag"><code>&lt;div id=&quot;show&quot;&gt;
&lt;img src=&quot;../images/pic1.jpg&quot; alt=&quot;one&quot; /&gt;
&lt;img src=&quot;../images/pic2.jpg&quot; alt=&quot;two&quot; /&gt;
&lt;img src=&quot;../images/pic3.jpg&quot; alt=&quot;three&quot; /&gt;
&lt;img src=&quot;../images/pic4.jpg&quot; alt=&quot;four&quot; /&gt;
&lt;img src=&quot;../images/pic5.jpg&quot; alt=&quot;five&quot; /&gt;
&lt;/div&gt;</code></pre>
<p>The images are contained in a specific container, div#show, which can be styled with CSS. Giving the container and the slides fixed dimensions works best, so make sure to specify the widths and heights.</p>
<p>The default behavior is to fade slides in and out of the container in a continuous and sequential manner, in a cyclical way. So, we&#8217;re going to &#8216;cycle&#8217; through the slides in this slideshow. The javascript for a slideshow using default behavior is simple:</p>
<pre class="crayon-plain-tag"><code>$('#show').cycle();</code></pre>
<p>With Cycle plugin default settings the slideshow starts with the first image or slide and each slide takes one second, or 1000 milliseconds, to be faded in. Each slide is then paused for 4 seconds and then faded out in one second. The slideshow wraps around so that the first slide will be shown after the last one. The fading in and out action occurs continuously and indefinitely with the default settings, as below:</p>
<div id="show">
<img src="/images/cat-in-snow.jpg" alt="cat in snow" class="first" /><br />
<img src="/images/cat-in-tree.jpg" alt="cat in tree" /><br />
<img src="/images/darling-kittens.jpg" alt="darling kittens" /><br />
<img src="/images/baby-sixtoes.jpg" alt="baby sixtoes" />
</div>
<div class="clear">&nbsp;</div>
<p>To alter the slideshow behavior pass an effect, other than fade, as a string to the cycle method, like so:</p>
<pre class="crayon-plain-tag"><code>$('#show2').cycle('shuffle');</code></pre>
<p>Check out all the effects that can be used to transition slides: blindX, blindY, blindZ, cover, curtainX, curtainY, fade, fadeZoom, growX, growY, scrollUp, scrollDown, scrollLeft, scrollRight, scrollHorz, scrollVert, shuffle, slideX, slideY, toss, turnUp, turnDown, turnLeft, turnRight, uncover, wipe, and zoom.</p>
<p>Several transitions can be combined in a comma-separated list if you can&#8217;t choose just one. Or, use the string &#8216;all&#8217; to see all the slide transition effects in a random manner.</p>
<p>Alternatively, you can use an options object to set the <em>fx</em> option among others. The code below specifies fade, zoom and curtainY effects to bring the slides in and out of the container. Each slide will be brought in slowly (800 ms) and taken out quickly (400 ms) taking a total of 3 seconds for each complete transition. This is the code for the slideshow (#show3) at the top of this post.</p>
<pre class="crayon-plain-tag"><code>$('#show3').cycle({
  fx: 'fade,zoom,curtainY',
    speedIn: 800,
    speedOut: 400,
    slideExpr: 'img'
    timeout: 3000,
    nowrap: true
});</code></pre>
<p>The parameter <em>slideExpr</em> is given a string value of &#8216;img&#8217; in order to produce a slideshow without <a href="http://jquery.malsup.com/cycle/slideExpr.html" title="Blank pauses between slides in WordPress">long blank pauses in between slides</a> when using WordPress. WordPress and other content management systems may introduce extraneous markup when preparing webpages. The markup may be incorrectly interpreted by different browsers used to view slideshows created with Cycle, so it&#8217;s become important to specify the elements that are supposed to be cycled in the slideshow. Thus, the addition of <em>slideExpr: &#8216;img&#8217;</em> as an optional parameter is necessary for image slideshows in WordPress.</p>
<p>The slideshow just above will be shown only one time and end with the last slide because the nowrap option is set to true. This might be a good thing to remember for leaving a textual message on the screen with your last slide instead of having the slideshow run indefinitely.</p>
<p>If you get stuck or need a little help with figuring out how to work the Cycle plugin, visit the <a href="http://forum.jquery.com/" title="jQuery forum">jQuery Forum</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/javascript-plugin-jquery-cycle-for-slideshows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jQuery Stop Action Improves InnerFade Plugin</title>
		<link>http://computeraxe.com/jquery-stop-action-improves-innerfade-plugin/</link>
		<comments>http://computeraxe.com/jquery-stop-action-improves-innerfade-plugin/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 07:05:11 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=844</guid>
		<description><![CDATA[When animations go wrong it&#8217;s usually in the timing. Perhaps the browser can&#8217;t keep up with all that it&#8217;s asked to do or the operating system is bogged down by other tasks. In any case the lack of enough working &#8230; <a href="http://computeraxe.com/jquery-stop-action-improves-innerfade-plugin/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When animations go wrong it&#8217;s usually in the timing. Perhaps the browser can&#8217;t keep up with all that it&#8217;s asked to do or the operating system is bogged down by other tasks. In any case the lack of enough working memory or CPU cycles will have animations stacking up until there are enough resources to do all those fancy moves.</p>
<p>Some animations run continuously and others may be controlled by setting timers or stopping the animations at predetermined times. Other animations happen after some event has occurred, like when a user mouses over an element on the page or clicks a button.</p>
<p>Animations created with the jQuery <a href="http://medienfreunde.com/lab/innerfade/" title="InnerFade jQuery Plugin">InnerFade plugin</a> run continuously, which may create a problem if the users&#8217; computer resources aren&#8217;t up to the job.</p>
<p>It was noted that an <a href="http://computeraxe.com/javascript-plugin-innerfade-with-jquery/" title="Using jQuery InnerFade plugin for news tickers.">InnerFade news ticker</a> animation of links worked fine and as expected when the browser tab was left open and running. Working with another tab open and going back to the news ticker site, the news items got stacked onto one another so that the text was unreadable and the timing was double time.</p>
<p>Reloading the page or waiting for a couple of seconds to pass brought the expected behavior back. The animations caught up to where they should have been and the behavior continued as expected.</p>
<p>I&#8217;m not exactly sure why the animations stacked up in my page and not in the demo page by the plugin author, but I found a solution to this stacking problem.</p>
<p>jQuery lets us use a <strong>stop()</strong> action to clear the previously requested animations that haven&#8217;t finished yet. Optional parameters for the stop() action are <em>clearQueue</em> and <em>gotoEnd</em>, which are false by default.</p>
<p>To use the stop() action in this case, set both parameters to true. This will clear all animations in the queue and jump to the place where the action should be at now.</p>
<p>If it were important to catch up to the latest animation, use true for the optional <em>gotoEnd</em> parameter. When set to true, the <em>gotoEnd</em> parameter figures out what the screen should look like at the end of the present set of animations in the queue and goes there.</p>
<p>In the section of the code that responds to the slide or fade settings, I used the stop() action to clear the queue and catch up. The InnerFade plugin was altered on lines 93 and 96 (of the original script) by inserting <strong>.stop(true,true)</strong> just before the fadeOut() or slideUp() methods.</p>
<pre class="crayon-plain-tag"><code>line 93...$(elements[last]).stop(true,true).slideUp(settings.speed);
line 96...$(elements[last]).stop(true,true).fadeOut(settings.speed);</code></pre>
<p>Below is the portion of the original script that has been modified (on lines 3 and 6 here):</p>
<pre class="crayon-plain-tag"><code>$.innerfade.next = function(elements, settings, current, last) {
        if (settings.animationtype == 'slide') {
            $(elements[last]).stop(true,true).slideUp(settings.speed);
            $(elements[current]).slideDown(settings.speed);
        } else if (settings.animationtype == 'fade') {
            $(elements[last]).stop(true,true).fadeOut(settings.speed);
            $(elements[current]).fadeIn(settings.speed, function() {
							removeFilter($(this)[0]);
						});</code></pre>
<p>The script now works even better!</p>
<p>When two separate link lists were animated with the InnerFade plugin on the same page, the first one stacked up and the second list went blank when the stop() action was used with only the first parameter set to true, so it was important to set both the <em>clearQueue</em> and <em>gotoEnd</em> parameters to true.</p>
<p>The stop() action also comes in handy to clear the queue when event-driven animations get backed up from too much user input, like mousing over and out too fast.</p>
<p>An oddity in all this is that I couldn&#8217;t replicate the bad behavior (of the original plugin) inside of WordPress. The stacking up of animations was noticed in a static page outside of WordPress. To see the original and improved InnerFade plugins in action, go to the <a href="http://www.computeraxe.com/good_ideas.php" title="Good Ideas for a Healthy Universe!">Good Ideas</a> static page.</p>
<p>Is there some way that WordPress manages the scripts differently? I dunno, but the take away message here is to make sure and test your scripts to see how they act in various circumstances.</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/jquery-stop-action-improves-innerfade-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Paths For Building WordPress Themes or Plugins</title>
		<link>http://computeraxe.com/paths-building-wordpress-themes-plugins/</link>
		<comments>http://computeraxe.com/paths-building-wordpress-themes-plugins/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 15:21:30 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[paths]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=672</guid>
		<description><![CDATA[When tinkering with the code that runs WordPress it&#8217;s very important to get the correct path to a file. Of course it is or else the files can&#8217;t be found and your new functionality won&#8217;t work. According to the Codex &#8230; <a href="http://computeraxe.com/paths-building-wordpress-themes-plugins/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When tinkering with the code that runs WordPress it&#8217;s very important to get the correct path to a file. Of course it is or else the files can&#8217;t be found and your new functionality won&#8217;t work.</p>
<p>According to the Codex -</p>
<blockquote><p>In Version 2.6, users were given the ability to move their /wp-content/ directory to anywhere they want, and many users already keep all WordPress files (like /wp-admin/ and /wp-includes/) in an unusual place.</p></blockquote>
<p>In case you&#8217;ve moved the files for your WP installation, you probably have a good handle on paths and how to traverse them. For those who don&#8217;t, it can be a hair-pulling experience to find the right path. Once the right path is found, work can continue.</p>
<h2>WordPress Paths</h2>
<p>To help avoid those <em>DUH! </em>moments, here are some functions and constants that WordPress has defined regarding paths. Once you&#8217;re familiar with these functions, writing useful and working code should become easier. Optional parameters may be of use in modifying the output for several of the following templates, including $path, $file or $scheme.</p>
<dl>
<dt>plugin_basename()</dt>
<dd>Usage: plugin_basename(__FILE__); Returns: the name of the plugin and file, such as &#8220;myPlugin/myPlugin.php&#8221; </dd>
<dt>get_theme_root()</dt>
<dd>Usage: get_theme_root(); Returns: path to themes directory. <strong>No</strong> trailing slash. </dd>
<dt>get_theme_root_uri()</dt>
<dd>Usage: get_theme_root_uri(); Returns: URI for themes directory. <strong>No</strong> trailing slash. </dd>
<dt>get_theme_roots()</dt>
<dd>Usage: get_theme_roots(); Returns: Themes directory with a <em>leading</em> slash, like &#8220;/themes&#8221;. </dd>
<dt>site_url()</dt>
<dd>Usage: site_url(); Returns: Site directory with <strong>no</strong> trailing slash.<br />
http://www.site.com OR http://www.site.com/wordpress</dd>
<dt>admin_url()</dt>
<dd>Usage: admin_url(); Returns: Admin directory with trailing slash.<br />
http://www.site.com/wp-admin/</dd>
<dt>content_url()</dt>
<dd>Usage: content_url(); Returns: Content directory with trailing slash.<br />
http://www.site.com/wp-content/ </dd>
<dt>plugins_url()</dt>
<dd>Usage: plugins_url(); Returns: Plugins directory with trailing slash.<br />
http://www.site.com/wp-content/plugins/</dd>
<dt>includes_url()</dt>
<dd>Usage: includes_url(); Returns: Includes directory with trailing slash.<br />
http://www.site.com/wp-includes/ </dd>
<dt>home_url()</dt>
<dd>Usage: home_url(); Returns: Home directory with <strong>no</strong> trailing slash.<br />
http://www.site.com</dd>
<dt>ABSPATH (constant)</dt>
<dd>Usage: ABSPATH. Returns: Home directory with <strong>no</strong> trailing slash.</dd>
<dt>TEMPLATEPATH (constant)</dt>
<dd>Usage: TEMPLATEPATH. Returns: Path to current theme with <strong>no</strong> trailing slash.</dd>
</dl>
<p>There are a few more functions for multisite installations and <a title="Directories for older versions of WP" href="http://codex.wordpress.org/Determining_Plugin_and_Content_Directories#Backwards-compatibility_Code">backwards capability</a> specified in the Codex.</p>
<h2>PHP Paths</h2>
<p>Some PHP functions worth noting -</p>
<ul>
<li>__FILE__ returns the filename of the script that is currently being run</li>
<li>dirname() returns parent directory&#8217;s path for a given filename with <strong>no</strong> trailing slash</li>
<li>basename() returns the filename component of path without any parent directories</li>
<li>getcwd() returns current working directory</li>
</ul>
<p>Use the functions or constants indicated to build your paths instead of hard-coding them. You&#8217;ll save yourself a LOT of trouble when it comes time to move your WordPress installation to a new server or directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/paths-building-wordpress-themes-plugins/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using PHP Inside Content of WordPress Blogs</title>
		<link>http://computeraxe.com/using-php-inside-content-wordpress-blogs/</link>
		<comments>http://computeraxe.com/using-php-inside-content-wordpress-blogs/#comments</comments>
		<pubDate>Fri, 06 May 2011 14:38:03 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=648</guid>
		<description><![CDATA[Using PHP inside of content on WordPress sites may not produce the expected results. As WordPress is built in PHP, you might think you could just start typing PHP code inside a post to pull some information from a database. &#8230; <a href="http://computeraxe.com/using-php-inside-content-wordpress-blogs/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Using PHP inside of content on WordPress sites may not produce the expected results. As WordPress is built in PHP, you might think you could just start typing PHP code inside a post to pull some information from a database. Sorry to say, but it doesn&#8217;t work that way.</p>
<p>WordPress takes your blog content and runs it through some backend shenanigans to create the output that you see on the screen. WP expects to find other content in posts, like text and images, not code.</p>
<p>To run PHP code inside a blog post or Page, you&#8217;ll have to work a little differently than simply filling up the space in the text editor.</p>
<p>There are two ways (at least) of using PHP inside WP blogs to produce the desired output. The first way is to set up a WP template page that points to a pre-written PHP page that is identified in a Page. The second way is to use a plugin that facilitates PHP code execution inside content areas in WordPress. Both ways have their advantages and disadvantages.</p>
<h2>Using WP Template Pages to Execute PHP Code</h2>
<p>A template page is used to identify a pre-written PHP page. By saying &#8220;a pre-written PHP page&#8221; I mean a .php file that you&#8217;ve already written and which has been executed successfully by a server. A template file has at the top of it a PHP comment which identifies the template name followed by an include statement that identifies the .php file. WP template files must follow this format to be properly identified by the WordPress engine as a template file.</p>
<blockquote><p>&lt;?php<br />
/*<br />
Template Name: soccer-roster<br />
*/<br />
include (TEMPLATEPATH . &#8216;/soccer-roster.php&#8217;);<br />
?&gt;</p></blockquote>
<p>The above snippet  is a complete template file which indicates the name of the template as &#8220;soccer-roster&#8221; and the path to the associated PHP file, soccer-roster.php. The template file is best saved with &#8220;template&#8221; in the file name. It must be located in the site&#8217;s theme folder.</p>
<p>After creating the template file and .php file, upload both to the theme folder. Create a blank Page. Do not put anything where you would normally write the content, but go ahead and give it a meaningful title. On the Add New Page page, look for the &#8220;Page Attributes&#8221; widget. Click the down-arrow to expand the list of templates and select your template. Using the example above, you would select the &#8220;soccer-roster&#8221; template. If the template is not stored in the theme folder, it will not appear in this drop-down list. Save the page and preview it. The PHP code, from soccer-roster.php, should be executed just as you would expect.</p>
<p>PROs</p>
<ul>
<li> No interference from WP, code interpreted as stand-alone PHP.</li>
<li>Page renders as expected.</li>
</ul>
<p>CONs</p>
<ul>
<li>Can only be used with Pages, not posts or text widgets.</li>
<li>May have to wrestle with adapting PHP output into style of site.</li>
<li><em><strong>CAUTION:</strong></em> Use a <a title="use a child theme for template safe keeping" href="http://computeraxe.com/twenty-ten-child-theme-mods/">child-theme</a> to safely save site-specific template files.</li>
</ul>
<p>If your site relies heavily on plugins, using template pages may be the best method, see below. If it&#8217;s not a big deal to style the PHP output pages like the rest of your site, creating WP Pages that use templates is a breeze. If you need to put code in a post or text widget, keep reading.</p>
<h2>Using WP Plugins to Execute PHP Code</h2>
<p>Modifying WordPress themes is not for everyone, so using a plugin to execute PHP code may be the easier option. There are more than a handful of plugins available for the task. I chose to use <a title="Exec-PHP Plugin to execute PHP code in posts" href="http://bluesome.net/post/2005/08/18/50/">Exec-PHP plugin for WordPress</a>. It is a very well documented plugin. Thank you, Sören.</p>
<p>Download, unpack, upload and activate the plugin in the usual fashion. Verify these settings to make the plugin do its magic:</p>
<ul>
<li>Disable tag balancing by unchecking ‘WordPress should correct invalidly nested XHTML automatically’ in the Settings/Write menu.</li>
<li>Disable the WYSIWYG editor (visual editor) in the user’s settings through the Users/Your Profile menu.</li>
<li>Assign the ‘unfiltered_html’ capability to the user, if user is not the administrator. Can use role manager plugin to assign this capability to other users.</li>
<li>Assign the ‘exec_php’ capability to the user, if user is not the administrator. Can use role manager plugin to assign this capability to other users.</li>
</ul>
<p>Once I disabled the visual editor, my site was ready to go.</p>
<p>PROs</p>
<ul>
<li> Easy, just change a couple of settings in blog admin. Plugin gives  highly visible warning on Add New Post or Add New Page pages if the settings are not correct.</li>
<li>PHP code can be written in the normal fashion using the &lt;?php ?&gt; tags. It does not need to be marked up in any special way as it might with other plugins.</li>
<li>PHP can be used in text widgets and posts, as well as Pages.</li>
</ul>
<p>CONs</p>
<ul>
<li> Can&#8217;t use plugins that embellish or rely on the WYSIWYG editor.</li>
</ul>
<p>Didn&#8217;t try any other PHP-execution plugins because Exec-PHP worked as soon as the visual editor was disabled.</p>
<p>As mentioned either method will get you there, it&#8217;s just a matter of style. If you need the visual editor to create your posts, use the template method. If you want to put PHP code in posts and text widgets, use the plugin method. Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/using-php-inside-content-wordpress-blogs/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Which Versions of PHP and MySql Run Your WordPress Blog?</title>
		<link>http://computeraxe.com/which-versions-of-php-and-mysql-run-your-wordpress-blog/</link>
		<comments>http://computeraxe.com/which-versions-of-php-and-mysql-run-your-wordpress-blog/#comments</comments>
		<pubDate>Fri, 22 Apr 2011 19:12:35 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[browsers]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=644</guid>
		<description><![CDATA[How Healthy is Your WordPress Blog? Do you know what version of PHP or MySQL your server is running? The improvements in WordPress continue. Check the state of your blog&#8217;s health by running the new Health Check plugin. Currently, it &#8230; <a href="http://computeraxe.com/which-versions-of-php-and-mysql-run-your-wordpress-blog/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>How Healthy is Your WordPress Blog? Do you know what version of PHP or MySQL your server is running?</p>
<p>The improvements in WordPress continue. Check the state of your blog&#8217;s health by running the new <a title="health check plugin" href="http://wordpress.org/extend/plugins/health-check/">Health Check plugin</a>. Currently, it will check for the versions of PHP and MySQL that are running your blog. In order to work with WP 3.2, your server will need to be up-to-date and running —</p>
<ul>
<li> PHP version 5.2 or greater</li>
<li> MySQL version 5.0.15 or greater</li>
</ul>
<p>In an attempt to help others into the 21st century, WordPress will no longer work using PHP 4 or MySQL 4.</p>
<p>WordPress will also drop support for Internet Explorer 6. Yay! There are other improvements coming, so stay tuned!</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/which-versions-of-php-and-mysql-run-your-wordpress-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scheduled Posts Calendar on New Post Page via Plugin</title>
		<link>http://computeraxe.com/scheduled-posts-calendar-on-new-post-page-via-plugin/</link>
		<comments>http://computeraxe.com/scheduled-posts-calendar-on-new-post-page-via-plugin/#comments</comments>
		<pubDate>Thu, 21 Apr 2011 18:32:50 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=635</guid>
		<description><![CDATA[When scheduling posts on your WordPress blog, a few of the right plugins can make this job easier and more manageable. First, use the Dashboard Widget Scheduled Posts plugin. This plugin creates a widget for your WP Dashboard that lists &#8230; <a href="http://computeraxe.com/scheduled-posts-calendar-on-new-post-page-via-plugin/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When scheduling posts on your WordPress blog, a few of the right plugins can make this job easier and more manageable.</p>
<p>First, use the <a title="dashboard widget posts plugin" href="http://computeraxe.com/dashboard-widget-plugins-scheduled-posts-wordpress/">Dashboard Widget Scheduled Posts plugin</a>. This plugin creates a widget for your WP Dashboard that lists the upcoming posts that are scheduled, but not yet published.</p>
<p>Second, use the <a title="future posts calendar plugin" href="http://wordpress.org/extend/plugins/future-posts-calendar/">Future Posts Calendar</a> plugin. This plugin creates two sets of calendars based on your scheduled posts. One calendar resides in the right column of the New Post page that you&#8217;ll see when you&#8217;re writing a new post or editing a previous one. The second calendar will be seen by site visitors as it resides in a widget that you can choose to add to a sidebar of your blog.</p>
<p>When there are no scheduled posts, the future calendar on the New Post page will have the current date in bold.</p>
<div id="attachment_639" class="wp-caption alignnone" style="width: 299px"><a href="http://computeraxe.com/wp-content/uploads/2011/04/future-posts-empty.jpg"><img class="size-full wp-image-639" title="future-posts-empty" src="http://computeraxe.com/wp-content/uploads/2011/04/future-posts-empty.jpg" alt="No future posts scheduled at this time." width="289" height="152" /></a><p class="wp-caption-text">No future posts scheduled at this time.</p></div>
<p>When at least one post is scheduled for future publication, the future calendar &#8211; either on the New Post page or in the blog sidebar &#8211; will have differently colored backgrounds depending on the number of posts scheduled for that day.</p>
<div id="attachment_641" class="wp-caption alignnone" style="width: 299px"><a href="http://computeraxe.com/wp-content/uploads/2011/04/future-posts-cued.jpg"><img class="size-full wp-image-641" title="future-posts-cued" src="http://computeraxe.com/wp-content/uploads/2011/04/future-posts-cued.jpg" alt="Posts scheduled to appear on the 20th and 21st on the month." width="289" height="151" /></a><p class="wp-caption-text">Posts scheduled to appear on the 20th and 21st on the month.</p></div>
<p>A green background indicates one post, light blue means two posts and blue means three posts scheduled for that day.</p>
<p>&nbsp;</p>
<p>Clicking a date in the calendar will <strong>change the scheduled posting date</strong>. Nice feature!</p>
<p>If you&#8217;re not bothered by editing code, you can alter the PHP file to make a dashboard widget, too.</p>
<blockquote><p>If you want to ad a widget to your dashboard, uncomment the line <code>add_action('wp_dashboard_setup', 'fpc_setup_dashboard_widget');</code> in the future_calendar.php file.</p></blockquote>
<p>The dashboard widget only shows the date of future posts in the calendar format, so I prefer the Dashboard Widget plugin as it includes post titles.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=80a4809e-0da5-41bb-b9c1-7d3b2de6b88a" alt="" /><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/scheduled-posts-calendar-on-new-post-page-via-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dashboard Widget Plugins for Scheduled Posts in WordPress</title>
		<link>http://computeraxe.com/dashboard-widget-plugins-scheduled-posts-wordpress/</link>
		<comments>http://computeraxe.com/dashboard-widget-plugins-scheduled-posts-wordpress/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 18:28:33 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=627</guid>
		<description><![CDATA[It takes time to save a post or page that you&#8217;re working on to check out the dates that you may have scheduled other posts. Even in WordPress 3.1 the only place to see the dates of scheduled posts is &#8230; <a href="http://computeraxe.com/dashboard-widget-plugins-scheduled-posts-wordpress/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It takes time to save a post or page that you&#8217;re working on to check out the dates that you may have scheduled other posts. Even in WordPress 3.1 the only place to see the dates of scheduled posts is on the Posts page. When you&#8217;re working on pages or posts, it would be nice to see at a glance when other content will be posted to the web site.</p>
<p>I reviewed two plugins that were developed to display the scheduled posts as a Dashboard Widget.</p>
<p><a title="future dashboard widget" href="http://wordpress.org/extend/plugins/future-dashboard-widget/">Future Dashboard Widget</a> creates a widget for the dashboard that lists the Scheduled Posts by date, including the post titles and first line of content. The entries are listed in reverse time order so the next post to be posted will be at the bottom of the list. A link is provided to see &#8220;All Scheduled Posts&#8221;.</p>
<div id="attachment_628" class="wp-caption alignnone" style="width: 310px"><a href="http://computeraxe.com/wp-content/uploads/2011/04/dashboard-future-posts.jpg"><img class="size-medium wp-image-628" title="dashboard-future-posts" src="http://computeraxe.com/wp-content/uploads/2011/04/dashboard-future-posts-300x120.jpg" alt="Dashboard widget of scheduled posts from Future Dashboard Widget plugin." width="300" height="120" /></a><p class="wp-caption-text">Dashboard widget of scheduled posts from Future Dashboard Widget plugin.</p></div>
<p>Note the day, date, time, title and text format with last posting listed first.</p>
<p><a title="dashboard scheduled posts" href="http://wordpress.org/extend/plugins/dashboard-scheduled-posts/">Dashboard: Scheduled Posts</a> creates a Scheduled Post widget for the dashboard, but lists the entries in order so that the next post to be published will be listed at the top of the list. A link is provided to see &#8220;View All&#8221; scheduled posts.</p>
<div id="attachment_629" class="wp-caption alignnone" style="width: 310px"><a href="http://computeraxe.com/wp-content/uploads/2011/04/dashboard-scheduled-posts.jpg"><img class="size-medium wp-image-629" title="dashboard-scheduled-posts" src="http://computeraxe.com/wp-content/uploads/2011/04/dashboard-scheduled-posts-300x96.jpg" alt="Dashboard widget of scheduled posts from Dashboard: Scheduled Posts plugin." width="300" height="96" /></a><p class="wp-caption-text">Dashboard widget of scheduled posts from Dashboard: Scheduled Posts plugin.</p></div>
<p>Note the title, date and text format with first posting listed first.</p>
<p>I&#8217;m going to go with the Dashboard: Scheduled Posts plugin. I like the widget format better than that of the Future Dashboard Widget plugin and the order that the posts are listed seems more intuitive. Thanks Viper007!</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/dashboard-widget-plugins-scheduled-posts-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Twenty Ten Child Theme Mods</title>
		<link>http://computeraxe.com/twenty-ten-child-theme-mods/</link>
		<comments>http://computeraxe.com/twenty-ten-child-theme-mods/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 13:55:37 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Style Sheets]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[Twenty Ten]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=615</guid>
		<description><![CDATA[Creating WordPress child themes is a slick way to make your own theme. All it takes are a few easy steps. Here&#8217;s an example using the standard Twenty Ten theme as the parent theme: modify the child-stylesheet to make things &#8230; <a href="http://computeraxe.com/twenty-ten-child-theme-mods/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Creating WordPress child themes is a slick way to make your own theme. All it takes are a few easy steps. Here&#8217;s an example using the standard Twenty Ten theme as the parent theme:</p>
<ul>
<li>modify the child-stylesheet to make things look how you want</li>
<li>create child-directory for new child theme</li>
<li>add template files to child-directory, if you wish</li>
<li>upload child-directory to /wp-content/themes/</li>
<li>activate new child theme</li>
</ul>
<p>The child-stylesheet must be saved with the name &#8220;style.css&#8221; in the child-directory. The child-stylesheet header (which has to be at the top of the sheet) must contain a few lines that identify its parent theme, like so:</p><pre class="crayon-plain-tag"><code>/*
Theme Name:     Twenty Ten Child
Description:    Child theme for the Twenty Ten theme
Author:         Your name here
Template:       twentyten
Version:        0.1.0
*/

@import url(&quot;../twentyten/style.css&quot;);

{put new style rules here}</code></pre><p>
You can add a line for the Theme URI: and Author URI:, if you like. Only the Theme Name: and Template: lines are required, the others are optional.</p>
<p>The @import rule indicates the directory of the parent theme and the location of the stylesheet. All you have to do is put in the new css rules below the import line.</p>
<p>That&#8217;s it!</p>
<p>If modifying the stylesheet doesn&#8217;t quite get all the changes you want, realize that you can add any template file to the child-directory and that will <strong>over-ride the parent file with the same name</strong>. For example, say you want to stick in a block for an advertisement right under the header image. Copy header.php and add a new &lt;div&gt; at the bottom of the page just below &lt;div id=&#8221;main&#8221;&gt; and stick the ad code in this division. Upload this new header.php into the child-directory and it will replace the one from the parent template.</p>
<p>Activate your new <a title="wordpress child themes" href="http://codex.wordpress.org/Child_Themes">child theme</a> and see how it looks!</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=508a17ac-d8a3-4edf-a5a8-6527e1596f1d" alt="" /><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/twenty-ten-child-theme-mods/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Tips for Menus in WordPress Theme Development</title>
		<link>http://computeraxe.com/tips-menu-wordpress-theme-development/</link>
		<comments>http://computeraxe.com/tips-menu-wordpress-theme-development/#comments</comments>
		<pubDate>Tue, 04 Jan 2011 13:49:59 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[Twenty Ten]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=583</guid>
		<description><![CDATA[Image via Wikipedia WordPress theme developers have a lot more help in 2011 compared to just a few years ago. With the publishing of the new standard themes and lots more interest in WordPress in general, there is a ton &#8230; <a href="http://computeraxe.com/tips-menu-wordpress-theme-development/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="margin: 1em; display: block;">
<div>
<dl class="wp-caption alignright" style="width: 310px;">
<dt class="wp-caption-dt"><a href="http://commons.wikipedia.org/wiki/File:Wordpress-logo.png"><img title="WordPress" src="http://upload.wikimedia.org/wikipedia/commons/thumb/c/ca/Wordpress-logo.png/300px-Wordpress-logo.png" alt="WordPress" width="300" height="68" /></a></dt>
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">Image via <a href="http://commons.wikipedia.org/wiki/File:Wordpress-logo.png">Wikipedia</a></dd>
</dl>
</div>
</div>
<p>WordPress theme developers have a lot more help in 2011 compared to just a few years ago. With the publishing of the new standard themes and lots more interest in WordPress in general, there is a ton of info for you to soak up. Seek and ye shall find!</p>
<p>If you&#8217;re just starting to develop your own themes, get a good understanding of the <a title="Twenty Ten theme" href="http://2010dev.wordpress.com/2010/06/18/twenty-ten-available/">Twenty Ten theme</a> created by the WordPress team. You&#8217;ll learn a lot about how to put together your own theme by studying this standard theme that&#8217;s included when you download WordPress.</p>
<p>One of the advancements in WordPress 3.0 was the introduction of menus. To learn a bit about using the menus in your own theme, get a handle on how they&#8217;re used in the Twenty Ten theme. A great <a title="wordpress menu intro" href="http://justintadlock.com/archives/2010/06/01/goodbye-headaches-hello-menus">menu intro by Justin</a> will start you on your way to understanding menus.</p>
<p>If you&#8217;re lost and don&#8217;t know where to start, look to the WordPress codex for help in getting started in <a title="develop WordPress themes" href="http://codex.wordpress.org/Theme_Development">developing themes for WordPress</a>.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=7c58c572-f151-4054-a28d-73633aaac15a" alt="" /><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/tips-menu-wordpress-theme-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Block Comment Spam on Older WordPress Posts</title>
		<link>http://computeraxe.com/block-comment-spam-on-older-wordpress-posts/</link>
		<comments>http://computeraxe.com/block-comment-spam-on-older-wordpress-posts/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 20:24:36 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Comment Spam]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=400</guid>
		<description><![CDATA[Here&#8217;s a spam blocking tip for ya! If you get lots of comment spam and DO have the Akismet plugin installed and updated in your WordPress, check the dates of the posts that the spam-comments are being left on. Chances &#8230; <a href="http://computeraxe.com/block-comment-spam-on-older-wordpress-posts/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a spam blocking tip for ya!</p>
<p>If you get lots of comment spam and DO have the Akismet plugin installed and updated in your WordPress, check the dates of the posts that the spam-comments are being left on. Chances are high that much of the spam is left on older posts. I guess the spammers figured we wouldn&#8217;t notice?</p>
<p>Take a look at the Discussion settings from the WP main menu. Note under <strong>Other comment settings</strong> the third line down where you  can fill in the number of days after which an article can&#8217;t be commented  on.</p>
<p><img src="file:///C:/Users/lizzie/AppData/Local/Temp/moz-screenshot.png" alt="" /><img src="file:///C:/Users/lizzie/AppData/Local/Temp/moz-screenshot-1.png" alt="" /><img src="file:///C:/Users/lizzie/AppData/Local/Temp/moz-screenshot-2.png" alt="" /><img src="file:///C:/Users/lizzie/AppData/Local/Temp/moz-screenshot-3.png" alt="" /></p>
<div id="attachment_443" class="wp-caption alignnone" style="width: 310px"><a href="http://computeraxe.com/wp-content/uploads/2010/07/wp_comment-spam.jpg"><img class="size-medium wp-image-443" title="wp_comment-spam" src="http://computeraxe.com/wp-content/uploads/2010/07/wp_comment-spam-300x118.jpg" alt="Discussion Settings in WordPress" width="300" height="118" /></a><p class="wp-caption-text">Discussion Settings in WordPress</p></div>
<p>Fill in some value less than 30 days and that will knock down the number of spam comments left on your blog. Don&#8217;t forget to scroll down the discussion settings page and hit the <em>Save Changes</em> button.</p>
<p>There is at least one alternative WordPress plugin (and there&#8217;s probably many more, but I haven&#8217;t needed to check for any) that was commented on in a positive way, called WP-Spam Free. Might be worth checking out.</p>
<p>Keep bloggin!</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Enhanced by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/zemified_e.png?x-id=be00b54a-70bf-42f4-84b7-96c395cac2cc" alt="Enhanced by Zemanta" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/block-comment-spam-on-older-wordpress-posts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

