<?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</title>
	<atom:link href="http://computeraxe.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://computeraxe.com</link>
	<description>wordpress, php, mysql, jquery, css</description>
	<lastBuildDate>Mon, 22 Apr 2013 17:47:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Section 508 Standards Improve Site Accessibility</title>
		<link>http://computeraxe.com/section-508-standards-improve-site-accessibility/</link>
		<comments>http://computeraxe.com/section-508-standards-improve-site-accessibility/#comments</comments>
		<pubDate>Tue, 03 Jul 2012 12:49:39 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[magpie]]></category>
		<category><![CDATA[section 508]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=1331</guid>
		<description><![CDATA[Interested in improving site accessibility for all site visitors? The section 508 standards were written to assure that everybody can see your site, including people with vision and cognitive disabilities. Once you&#8217;re familiar with these standards, it&#8217;s not too hard &#8230; <a href="http://computeraxe.com/section-508-standards-improve-site-accessibility/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Interested in improving site accessibility for all site visitors? The section 508 standards were written to assure that everybody can see your site, including people with vision and cognitive disabilities. Once you&#8217;re familiar with these standards, it&#8217;s not too hard to abide them. Why wouldn&#8217;t we want to have the broadest audience possible <em>anyway</em>?</p>
<p>What are these 508 standards and why do they exist? The United States Federal government put out an edict &#8211; <em>ok it&#8217;s a law </em>- that states that any federal website must be created in such a way as to allow everyone to &#8220;see&#8221; it or otherwise consume the information. </p>
<p>The main idea was to make sure to include folks with disabilities who might use alternative means of navigating the Web and to assure that anyone and everyone has equal access to the government. Every web page created by the federal government is checked against the following standards for compliance before being published.</p>
<p>Here are some suggestions on how to meet the standards (a &#8211; p) of <a href="http://www.section508.gov/" title="Section 508 Standards">Section 508 of the Rehabilitation Act</a>, §1194.22. Be aware that the standards have been paraphrased for the most part and that this is only one <em>interpretation</em> on how to meet these standards.</p>
<h3>Section 508 standards and how to meet them</h3>
<dl>
<dt>a. Provide a text equivalent for every non-text element.</dt>
<dd>Use the <i>alt</i> attribute for every image or embedded media to explain what the media is portraying. Complex graphics may require a link to a new page for full explanation. Images that allow for interactivity must have their functionality explained, too. Audio content needs to be captioned or have transcripts provided. Graphics used for decoration, like borders or <a href="http://computeraxe.com/gradient-backgrounds-for-body-and-header-give-a-smooth-appearance-to-wp/" title="background gradients">background color gradients</a>, can have empty <em>alt</em> tags.</dd>
<dt>b. Multimedia presentations need to have their captions or transcripts synchronized with the presentation.</dt>
<dd>Videos without audio tracks should have audio descriptions created. Caption synchronizing can be accomplished with any media player using <a href="http://ncam.wgbh.org/invent_build/web_multimedia/tools-guidelines/magpie/" title="captioning tool for multimedia">MAGpie</a>, the &#8220;original free caption- and audio-description authoring tool for making multimedia accessible to persons with sensory disabilities.&#8221; It can also be used to create caption files for YouTube videos.</dd>
<dt>c. Information that is communicated with color must also be communicated without color.</dt>
<dd>Color cannot be the only means of communicating information. People who are color blind may not see links if they&#8217;re not underlined or highlighted in some other way. Contrast must be high in order for others to see the message.</dd>
<dt>d. Webpages need to be readable on their own, as if the stylesheet was missing.</dt>
<dd>Even though most web pages would look very plain without their associated stylesheet, they should be organized so that they&#8217;re readable without the stylesheet.</dd>
<dt>e. Text links should be provided for each active region of server-side image maps.</dt>
<dd>Use client-side image maps instead of server-side image maps. Each active region should be described in alternative means.</dd>
<dt>f. Client-side image maps should be used instead of server-side image maps except where the regions cannot be defined with an available geometric shape. </dt>
<dd>Use client-side image maps instead of server-side image maps. Each active region should be described in accessible text.</dd>
<dt>g. Data tables need to have row and column headers described.</dt>
<dd>Use &lt;th&gt; in data tables. Don&#8217;t use tables for layout purposes.</dd>
<dt>h. Markup shall be used to associate data cells and header cells for data tables that have two or more logical levels of row or column headers.</dt>
<dd>Use the <em>scope</em> attribute to tell the browser or screen reader that everything under a column heading is associated with that column or that everything to the right of a row header is associated with that row. Complex tables should <a href="http://webaim.org/techniques/tables/data#id" title="table ids and headers explained">use ids or headers</a>. Avoid spanned rows and columns and instead present the data in more simple terms.
</dd>
<dt>i. Frames should have text for identification to describe the navigation.</dt>
<dd>If you can&#8217;t avoid the use of frames, make sure they have descriptive titles.</dd>
<dt>j. Assure that images do not flicker at a frequency greater than 2 Hz and lower than 55 Hz.</dt>
<dd>Avoid using flickering images.</dd>
<dt>k. If there is no way to provide accessible or alternative content for your message, a text-only page must be provided.</dt>
<dd>Keep things simple, but if that&#8217;s not possible make available text-only pages. Keep each text-only page up-to-date.</dd>
<dt>l. When using scripts to display content or create interface elements, assure that the same information is provided via functional text that can be read by assistive technologies.</dt>
<dd>This is going to require some thought for every instance of jQuery or other javascript components on a page.</dd>
<dt>m. When a web page requires a plug-in to interpret the page content, an accessible link for downloading each plug-in must be provided.</dt>
<dd>Download links must be provided for the plug-ins required to read PDFs or to view Java applets, for example.</dd>
<dt>n. Help people using assistive technologies to fill out your online forms.</dt>
<dd>Use &lt;label&gt; tags with the <i>for</i> attribute for each element of a form. Use descriptive titles and provide instructions on how to properly fill out the form.</dd>
<dt>o. A method should be provided that allows users to skip a series of navigation links.</dt>
<dd>Use <i>skip links</i> to let users pass the navigation menu and go directly to the content. A skip link is a link at the top of the page that plainly states that it &#8216;skips navigation&#8217; or &#8216;skips the link list&#8217; and jumps the reader to an anchor at the beginning of the content.</dd>
<dt>p. When a timed response is required, the user shall be alerted and given sufficient time to indicate more time is required.</dt>
<dd>Allow the user to have control over the timing of inputs.</dd>
</dl>
<p>So, the bottom line is to keep things simple. Use text to describe things on the page and to identify things that aren&#8217;t text. Be careful with scripting actions so that information is accessible to all.</p>
<p>In an effort to improve the <em>status quo</em> I&#8217;ll be taking a look at all my web properties with an eye for improving their accessibility. Do you have any hints on how you&#8217;ve accomplished the same?</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/section-508-standards-improve-site-accessibility/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning Code Resources to Beat the Summer Heat</title>
		<link>http://computeraxe.com/learning-code-resources-to-beat-the-summer-heat/</link>
		<comments>http://computeraxe.com/learning-code-resources-to-beat-the-summer-heat/#comments</comments>
		<pubDate>Tue, 19 Jun 2012 07:05:17 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[courses]]></category>
		<category><![CDATA[learn]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=1316</guid>
		<description><![CDATA[People love the summertime with all its heat and sunshine. But not everyone likes to bask in the sun, so instead they turn to cooler activities than baking their skin to a crisp. Count me in as one of those &#8230; <a href="http://computeraxe.com/learning-code-resources-to-beat-the-summer-heat/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>People love the summertime with all its heat and sunshine. But not everyone likes to bask in the sun, so instead they turn to cooler activities than baking their skin to a crisp. Count me in as one of those people who hibernate away from the heat or in a word, <em>estivate</em>.</p>
<p>What can we do to avoid the scorching sun in the middle of the day? We could take a nap to avoid the heat, or go to a movie or take the time to learn something cool. How about learning to code? It&#8217;s not that hard to pick up a new tip or trick, you just have to want to. With that, here&#8217;s a few resources to get you started on your way to learning something new this summer.</p>
<h3>Free Online Learning Tools</h3>
<ul>
<li><a href="http://www.codecademy.com/" title="Code Academy">CodeAcademy</a>- sign up for an account to track your progress </li>
<li><a href="http://www.coursehero.com/" title="Course Hero">CourseHero</a>- check out the Web Programming path</li>
<li><a href="http://www.w3schools.com/" title="W3 Schools">W3Schools</a>- complete with references, quizzes, examples and a certification path</li>
</ul>
<p>Need more? Take a look at this great list of <a href="http://redd.it/cktxy" title="online learning centers - free university stuff">online learning centers</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/learning-code-resources-to-beat-the-summer-heat/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Speed Testing WordPress Sites</title>
		<link>http://computeraxe.com/speed-testing-wordpress-sites/</link>
		<comments>http://computeraxe.com/speed-testing-wordpress-sites/#comments</comments>
		<pubDate>Tue, 05 Jun 2012 11:19:13 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[browsers]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[speed]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=1305</guid>
		<description><![CDATA[Links are plentiful on the &#8216;Net and these are a few that will help when speed testing your WordPress sites. Site Loading Speed, Caching and Validation Pingdom Tools tests the load time of URL, analyzes it and helps to find &#8230; <a href="http://computeraxe.com/speed-testing-wordpress-sites/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Links are plentiful on the &#8216;Net and these are a few that will help when speed testing your WordPress sites.</p>
<h3>Site Loading Speed, Caching and Validation</h3>
<ul>
<li><a href="http://tools.pingdom.com/fpt/">Pingdom Tools</a> tests the load time of URL, analyzes it and helps to find bottlenecks. Click on down-arrows for each file/path under the waterfall tab to see the headers and again for each recommendation under the Performance Grade tab for specifics.</li>
<li><a href="http://developer.yahoo.com/yslow/">Yslow, a browser plugin</a> analyzes web pages and suggests ways to improve their performance.</li>
<li><a href="http://wordpress.org/extend/plugins/w3-total-cache/">W3 Total Cache</a> is a superior caching plugin for WordPress sites.</li>
<li><a href="http://getfirebug.com/">Firebug Web Development Tool</a> check Net tab for page element loading times.</li>
<li>Check out your site&#8217;s speed with this <strong>handy <a rel="nofollow" href="http://computeraxe.com/goto/speed_test/1305/5"><!--cloak-->speed test</a></strong>.</li>
<li><a href="https://developers.google.com/pagespeed/">Page Speed</a> test online or via browser extensions for <a href="http://code.google.com/speed/page-speed/docs/using_firefox.html">Firefox</a> and <a href="http://code.google.com/speed/page-speed/docs/using_chrome.html">Chrome</a>. Results include minified HTML, CSS and JS files saved to configurable directory.</li>
<li><a href="http://www.mnot.net/cache_docs/">Caching Tutorial</a> explains web and proxy caches and http headers.</li>
<li><a href="http://redbot.org/">REDbot</a> checks the server clock and caching for a site, hover over each line of the response for full explanation.</li>
<li><a href="http://wp.tutsplus.com/tutorials/the-ultimate-quickstart-guide-to-speeding-up-your-wordpress-site/">WP Tutorial on Boosting Site Speed</a> excellent step-by-step tutorial showing how to use plugins to improve speed of WordPress sites.</li>
<li><a href="http://www.webpagetest.org/">WebPageTest</a> checks page loading speed, can select various browsers with screen shots reported. Advanced settings allow selection of connection speed for DSL, Cable, FIOS or 56K dialup.</li>
<li><a href="http://validator.w3.org/" title="W3C HTML Validator">W3C HTML Validator</a> finds out if your pages don&#8217;t validate, which can make them slow to load.</li>
<li><a href="http://validator.w3.org/checklink" title="W3C Link Checker">W3C Link Checker</a></li>
<li><a href="http://ready.mobi/">Test Mobile Readiness</a> of web pages.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/speed-testing-wordpress-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Site Accessibility Resources and Tools</title>
		<link>http://computeraxe.com/site-accessibility-resources-and-tools/</link>
		<comments>http://computeraxe.com/site-accessibility-resources-and-tools/#comments</comments>
		<pubDate>Tue, 29 May 2012 07:05:30 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[browsers]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[resources]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=1276</guid>
		<description><![CDATA[The accessibility of a website must be directly proportional to the percentage of viewers who can actually see, read or hear the content. After all, if people can&#8217;t observe it, how are they going to get your message? Since web &#8230; <a href="http://computeraxe.com/site-accessibility-resources-and-tools/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>The accessibility of a website must be directly proportional to the percentage of viewers who can actually see, read or hear the content. After all, if people can&#8217;t observe it, how are they going to get your message? </p>
<p>Since web developers don&#8217;t need to adapt the coding of sites for the majority of us to see the content, it may not come natural to them to include those who do need special consideration. It does take a little bit of extra time and thought to accommodate &#8211; <em>or dare I say be helpful to</em> &#8211; people with vision difficulties or those who use screen readers to use the Internet.</p>
<p>To get an idea if your sites pass muster, visit the accessibility links below for a little help.</p>
<h3>Links for Accessibility</h3>
<p><a href="http://www.sidar.org/hera/index.php.en">HERA accessibility testing</a> provides reports that show exactly where a site should be improved. If any errors are found when your site is scanned, they&#8217;re clearly highlighted so that you can take corrective action. A really helpful part is the &#8216;Navigate by guidelines&#8217; feature, where results are categorized by the accessibility guidelines. Stepping through the results under each guideline will show you exactly which parts of your site aren&#8217;t accessible, and it will help you learn more about the guidelines.</p>
<p><a href="http://wave.webaim.org/">WAVE Accessibility test</a> shows icons on the test results page where the guidelines weren&#8217;t met. Icons were extremely helpful in determining what parts of the page weren&#8217;t up to snuff. One feature to highlight is the &#8216;disable styles&#8217; button in the upper right of the results screen. Click that button to see your site without style sheets applied. If your content can be read without too much trouble, then it&#8217;s probably ok.</p>
<p><a href="http://juicystudio.com/services/readability.php">Readability test</a> provides results of three algorithms in judging the readability of text on the page. If your site deals with a technical subject, or if your content is too complex for the average Joe to easily understand, your site may not fair well on the readability tests. Keep in mind that Joe Public only reads at an 8th grade level. Sad, but true <img src='http://computeraxe.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> .</p>
<p><a href="http://juicystudio.com/services/csstest.php">CSS Analyzer</a> won&#8217;t give output until all CSS errors are corrected. It&#8217;s just not possible at this stage with WordPress sites due to partial implementation of HTML5.</p>
<p><a href="http://uitest.com/">UI Test</a> Enter your URL at <a href="http://uitest.com/en/check/">Site Test</a> for handy direct links to accessibility and validation checkers. Very helpful when modifying a page to meet accessibility guidelines.</p>
<p>The guidelines we&#8217;re talking about are the <a href="http://www.w3.org/WAI/intro/wcag.php" title="WCAG">Web Content Accessibility Guidelines</a> (WCAG) and the portion of U.S. Law for <a href="http://www.section508.gov/index.cfm?fuseAction=stdsSum" title="Section 508">Section 508</a> which requires that <em>information technology is accessible to people with disabilities</em>, at least in federal agencies. </p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/site-accessibility-resources-and-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Resources and Tools</title>
		<link>http://computeraxe.com/css-resources-and-tools/</link>
		<comments>http://computeraxe.com/css-resources-and-tools/#comments</comments>
		<pubDate>Tue, 22 May 2012 07:05:21 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[resources]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=1262</guid>
		<description><![CDATA[Here&#8217;s a small collection of resources and tools for learning CSS, Cascading Style Sheets. It&#8217;s through links like the following that our collective CSS skills are improved. Read more, learn more. Links for CSS To get an idea of what &#8230; <a href="http://computeraxe.com/css-resources-and-tools/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Here&#8217;s a small collection of resources and tools for learning CSS, Cascading Style Sheets. It&#8217;s through links like the following that our collective CSS skills are improved. Read more, learn more.  </p>
<h3>Links for CSS</h3>
<p>To get an idea of what CSS can do for your site visit the <a href="http://www.csszengarden.com/">CSS Zen Garden</a>, a site for inspiration in designing with CSS. Studying the style sheets for the different themes presented here can teach you a lot about style and positioning.</p>
<p><a href="http://www.w3.org/MarkUp/Guide/Style">Introduction to CSS</a> by Dave Raggett at W3C. Even though it&#8217;s a bit dated this is a good place to start to see how CSS works. Get the basics about linking to a separate style sheet and setting link colors. </p>
<p><a href="https://developer.mozilla.org/en/CSS">CSS Reference and Tutorial</a> from the Mozilla Developer Network could be a one-stop shop for learning CSS. Pick the getting started tutorial if you&#8217;re not very familiar with using style sheets. If you already know the basics, you might want to bookmark the exhaustive CSS reference. It has browser support tabulated for all the CSS&nbsp;3 properties.</p>
<p><a href="http://reference.sitepoint.com/css">SitePoint CSS Reference</a> uses categories to organize pages into CSS-properties, CSS-selectors, at-rules, styling concepts and layout examples. Play around in the &#8220;live&#8221; area (you get there by selecting the &#8220;Play&#8221; tab) where you can post CSS rules or HTML markup in the left pane of the window and see the immediate effects in the right pane.</p>
<p>Interested when a particular feature showed up in the history of CSS? Check the <a href="http://meiert.com/en/indices/css-properties/">CSS Properties Index</a> for an alphabetical list of properties. Properties are tabulated for CSS1, CSS2, CSS2.1, and CSS3. Clicking on any property name will bring you a definition of that property along with its acceptable values, which elements it can be applied to, and whether it can be inherited.</p>
<p>Font stacks might be of interest in studying site designs and learning the underlying CSS. Each font stack is like a mini-library. Learn how to create your own <a href="http://www.codestyle.org/css/font-family/BuildBetterCSSFontStacks.shtml">CSS Font Stack</a> through examples of <a href="http://sitepointstatic.com/examples/font-stacks/font-stacks.txt">Eight Different Font Stacks</a>. Extend the idea to include basic page design via <a href="http://960.gs/">960 Grid</a>, a CSS library.</p>
<p>Great tutorials on specific CSS topics include:</p>
<ul>
<li><a href="http://css.maxdesign.com.au/">MaxDesign Listamatic tutorials</a> on lists, selectors, floats and CSS presentations</li>
<li><a href="http://www.slideshare.net/maxdesign/css3-media-queries">CSS3 @media queries</a> &#8211; excellent slideshow</li>
</ul>
<p>Once you start writing your own CSS you&#8217;ll want to know if everyone can see your site the way you intend it to be seen. Validating CSS will assure that your style sheet is valid and therefore understood by browsers that people use to see your site. Check your CSS style sheets with the <a href="http://jigsaw.w3.org/css-validator/#validate_by_uri+with_options">W3C CSS Validator</a>. <em>Tip: change profile to CSS3 and change vendor extensions to warnings, until CSS3 properties are more widely in use.</em></p>
<p>Keep reading, people. It&#8217;ll make you better at what you do.</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/css-resources-and-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pause and Play Buttons for jQuery Slideshow</title>
		<link>http://computeraxe.com/pause-and-play-buttons-for-jquery-slideshow/</link>
		<comments>http://computeraxe.com/pause-and-play-buttons-for-jquery-slideshow/#comments</comments>
		<pubDate>Tue, 15 May 2012 07:05:07 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=1252</guid>
		<description><![CDATA[Continuing our slideshow journey with jQuery Cycle plugin, we&#8217;d like to improve our slider by adding two more buttons. Last time we looked at creating a slideshow with previous and next buttons, but now we&#8217;d like to add buttons for &#8230; <a href="http://computeraxe.com/pause-and-play-buttons-for-jquery-slideshow/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Continuing our slideshow journey with jQuery Cycle plugin, we&#8217;d like to improve our slider by adding two more buttons. Last time we looked at creating a <a href="http://computeraxe.com/previous-next-buttons-jquery-cycle-slideshow/" title="Next and previous buttons for Cycle slideshow.">slideshow with previous and next buttons</a>, but now we&#8217;d like to add buttons for pause and resume. It would be nice to allow site visitors to stop a slideshow with a pause button and resume the slideshow with a play button whenever they&#8217;re ready to continue.</p>
<p>If we keep the overall design the same, we just need to do two things to modify the slider. First, we need to upload the images for the pause and resume buttons and add a couple of lines to the HTML markup for positioning the buttons. We&#8217;ll fit the pause and play buttons in between the previous and next buttons. Each button will use an anchor tag, an id for CSS and script targeting, and a title for a user-friendly tooltip.</p>
<p><strong>HTML Markup for Slideshow Controls:</strong></p>
<pre class="crayon-plain-tag"><div id="nav-buttons">
  <a id="prev2" href="#" title="previous slide"><img src="../images/previous.png" alt="Previous" /></a>
  <a id="pauseButton" href="#" title="pause slideshow"><img src="../images/pause.png" alt="Pause" /></a>
  <a id="resumeButton" href="#" title="resume slideshow"><img src="../images/play.png" alt="Play" /></a>	
  <a id="next2" href="#" title="next slide"><img src="../images/next.png" alt="Next" /></a>
</div></pre>
<p>Second, we need to add a couple of lines to the script to manage the action when someone clicks either button. Here, we&#8217;re assigning Cycle&#8217;s pause or resume option to the click function of the selected <code>id</code>, in this case <code>#slide_aft</code>. Adding a &#8216;return false&#8217; line assures that the site visitor won&#8217;t be taken to another page when the buttons are clicked.</p>
<p><strong>jQuery script portion for pause and resume buttons:</strong></p>
<p></p><pre class="crayon-plain-tag">$('#pauseButton').click(function() {
	   $('#slide_aft').cycle('pause');
		 return false;
 });
 $('#resumeButton').click(function() {
	   $('#slide_aft').cycle('resume');
		 return false;
 });</pre><p></p>
<p>The above script portion was placed in the <code>document.ready function($)</code> so that the buttons are able to be used as soon as practical.</p>
<p>Here&#8217;s the full slideshow example with button controls for pause, resume or play, previous slide, and next slide.</p>
<div id="contain">
<div id="slide_aft">
    <img src="../images/1.jpg" alt="one" /><br />
    <img src="../images/2.jpg" alt="two" /><br />
    <img src="../images/3.jpg" alt="three" /><br />
    <img src="../images/4.jpg" alt="four" />
  </div>
<div id="nav-buttons">
  <a id="prev2" href="#" title="previous slide"><img src="../images/previous.png" alt="Previous" /></a><br />
<a id="pauseButton" href="#" title="pause slideshow"><img src="../images/pause.png" alt="Pause" /></a><br />
  <a id="resumeButton" href="#" title="resume slideshow"><img src="../images/play.png" alt="Play" /></a><br />
  <a id="next2" href="#" title="next slide"><img src="../images/next.png" alt="Next" /></a>
</div>
<p><!-- end div#nav-buttons -->
</div>
<p>Now, that looks a little better. This slideshow looks more complete having the pause and play or resume buttons, as well as the prev and next buttons.</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/pause-and-play-buttons-for-jquery-slideshow/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Previous and Next Buttons in a jQuery Cycle Slideshow</title>
		<link>http://computeraxe.com/previous-next-buttons-jquery-cycle-slideshow/</link>
		<comments>http://computeraxe.com/previous-next-buttons-jquery-cycle-slideshow/#comments</comments>
		<pubDate>Tue, 08 May 2012 12:27:01 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[buttons]]></category>
		<category><![CDATA[Cycle]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=1230</guid>
		<description><![CDATA[A site visitor to computeraxe wanted to know how to incorporate previous and next buttons in their slideshow using jQuery Cycle plugin. It&#8217;s easy! Let&#8217;s see an example, ok? If you haven&#8217;t checked out the simplicity of the jQuery Cycle &#8230; <a href="http://computeraxe.com/previous-next-buttons-jquery-cycle-slideshow/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>A site visitor to computeraxe wanted to know how to incorporate previous and next buttons in their slideshow using jQuery Cycle plugin. It&#8217;s easy! Let&#8217;s see an example, ok?</p>
<p>If you haven&#8217;t checked out the simplicity of the jQuery Cycle plugin, you should because there&#8217;s a whole lot you can do with it. It&#8217;s a very versatile plugin and quite popular, which speaks to its usefulness &mdash; and cool factor, too. Previous posts here covered the basics about the <a href="http://computeraxe.com/javascript-plugin-jquery-cycle-for-slideshows/" title="jQuery Cycle plugin for slideshows">Cycle Plugin</a>, how to <a href="http://computeraxe.com/polaroid-slideshows-with-jquery-cycle-plugin/" title="Polaroid slideshow with Cycle">make slides look like Polaroids</a>, using <a href="http://computeraxe.com/slideshow-image-captions-with-jquery-cycle/" title="Slideshow image captions with jQuery Cycle">image captions with Cycle</a>, and discussions about a <a href="http://computeraxe.com/jquery-cycle-plugin-working-with-links/" title="Problems with transition effects and their solutions.">transition effects problem</a> with certain <em>fx</em>.</p>
<p>Let&#8217;s get into the example for making previous and next buttons for a slider in jQuery using the Cycle plugin. </p>
<p>Before writing any code it would be a good idea to sketch out the design for the slideshow. The photos or slides will be held in a container <code>div</code> that can be targeted for CSS styling and javascript. Captions and their container paragraph would also be placed inside the container <code>div</code>. In this example we&#8217;ll do away with the captions for simplicity and place the previous and next buttons inside the container <code>div</code>.</p>
<p>It turns out that Cycle has two options for creating the functionality for going to the next photo or the previous slide in a sequence. These options are appropriately named &#8216;next&#8217; and &#8216;prev&#8217;. The values to give for each are the locations of the next and previous buttons. To specify each location, create an <code>id</code>. </p>
<p>Here, we&#8217;re using <em>#next2</em> for the next button and <em>#prev2</em> for the previous button. Since we&#8217;re having only one next/previous button set for this slideshow, an <code>id</code> for each makes sense. If you have more than one slider on a page, a <code>class</code> would be more appropriate. When somebody wants to see the previous slide they&#8217;ll click on the &#8216;previous button&#8217;, so the best HTML tag for the slideshow controls is an anchor with a href of &#8216;#&#8217;. We don&#8217;t want to leave the page when clicking the previous button, we just want to see the previous slide in the show.</p>
<p><strong>HTML Markup:</strong></p>
<pre class="crayon-plain-tag"><div id="contain">
<p>Slideshow example using jQuery Cycle plugin with previous and next buttons.</p>
  <div id="slide_afta">
    <img src="../images/1.jpg" alt="one" />
    <img src="../images/2.jpg" alt="two" />
    <img src="../images/3.jpg" alt="three" />
    <img src="../images/4.jpg" alt="four" />
  </div>
<div id="nav-buttonsa">
  <a id="prev2" href="#" title="previous slide"><img src=../images/previous.png" alt="Previous" /></a>
  <a id="next2" href="#" title="next slide"><img src="../images/next.png" alt="Next" /></a>
</div><!-- end div#nav-buttons -->
</div></pre>
<p>We&#8217;ll use a couple of small images to accommodate the previous and next slide functionality. One could use the words &#8216;prev&#8217; and &#8216;next&#8217; instead of images, if desired. In case a site visitor needs help, we&#8217;ve included a tooltip for each button by the way of a title for each anchor.</p>
<p>We want to hide all the images except the first image whenever the document is ready. Else, we&#8217;ll use the window load function for the slider action.</p>
<p><strong>jQuery:</strong></p>
<p></p><pre class="crayon-plain-tag">// jQuery Cycle options for slideshow with next/previous buttons

$(window).load(function() {
  $('#slide_afta').cycle({
     fx: 'fadeZoom',
     timeout: 2000,
     next: '#next2',
     prev: '#prev2',
     slideExpr: 'img'
   }); 	 
});

// hide all but the first image when document is ready

jQuery(document).ready(function($) {
  $('#slide_afta img:gt(0)').hide();
});</pre><p></p>
<p>Of course, there are many different ways to style your slideshow. Here&#8217;s our example Cycle slider with next and previous buttons.</p>
<div id="containa">
<p><em>Slideshow example using jQuery Cycle plugin with previous and next buttons.</em></p>
<div id="slide_afta">
    <img src="../images/1.jpg" alt="one" /><br />
    <img src="../images/2.jpg" alt="two" /><br />
    <img src="../images/3.jpg" alt="three" /><br />
    <img src="../images/4.jpg" alt="four" />
  </div>
<div id="nav-buttonsa">
  <a id="prev2" href="#" title="previous slide"><img src="../images/previous.png" alt="Previous" /></a><br />
  <a id="next2" href="#" title="next slide"><img src="../images/next.png" alt="Next" /></a>
</div>
<p><!-- end div#nav-buttonsa -->
</div>
<h3>What if you want two sliders on the same page?</h3>
<p>The first thing to recognize is that more than one <code>id</code> with the same name won&#8217;t work on the same page, so parts of the document for the second slider with an <code>id</code> will have to be changed over to a <code>class</code> or a different <code>id</code> name. CSS will have to be updated to reflect the changes, as will the javascript.</p>
<p>However, using the same <code>class</code> names for the next and previous controls for two sliders on the same page will result in both sliders being controlled by the same set of control buttons. That&#8217;s probably not what you&#8217;d want, nor what your site visitors would expect. Rename the action buttons (prev, next) and the container for the slides to different <code>class</code> names in order to be able to control the second slideshow. Of course, a second Cycle script would be needed to target the new container for the second slideshow.</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/previous-next-buttons-jquery-cycle-slideshow/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Taxonomies Classify and Organize WordPress Posts</title>
		<link>http://computeraxe.com/taxonomies-classify-and-organize-wordpress-posts/</link>
		<comments>http://computeraxe.com/taxonomies-classify-and-organize-wordpress-posts/#comments</comments>
		<pubDate>Tue, 01 May 2012 07:05:33 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[categories]]></category>
		<category><![CDATA[tags]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=1204</guid>
		<description><![CDATA[WordPress employs categories and tags as built-in taxonomies for posts and pages. Link categories are a taxonomy for the blogroll or links. So, what do we mean by taxonomy? The term &#8216;taxonomy&#8217; makes me think back to high school biology &#8230; <a href="http://computeraxe.com/taxonomies-classify-and-organize-wordpress-posts/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>WordPress employs categories and tags as built-in taxonomies for posts and pages. Link categories are a taxonomy for the blogroll or links. So, what do we mean by <strong>taxonomy</strong>?</p>
<p>The term &#8216;taxonomy&#8217; makes me think back to high school biology class where we learned about Carolus Linnaeus. He was a botanist from the 18th century who devised a classification system for naming species that is still being used in the 21st century. This <em>Linnaean classification</em> system organizes species of plants and animals into hierarchical levels including Kingdom, Phylum, Class, Order, Family, Genus and Species.</p>
<p>With respect to biology taxonomy is the naming system used to identify millions of different creatures, both living and extinct. All species are classified according to their characteristics into broad groups containing similar organisms. Each broad group, like a kingdom or class, is subdivided into distinct sets, like family or genus. Being a member of a certain group means that you have certain characteristics in common with other members of the same group. Each organism can then be described according to the groups that it belongs to.</p>
<p>So, a taxonomy is a way to describe, identify, name and classify individual species. If we extend this idea to WordPress, a taxonomy becomes a way to organize and classify blog content.</p>
<p>Assigning a post or a page to a category or giving your article a couple of tags classifies and organizes the content. It helps the reader and search engines, too. Same with the link categories, they help us to organize links into meaningful groups.</p>
<p>Categories can have a hierarchy and can be divided into subcategories, but tags cannot. In describing categories we can use the term &#8216;parent category&#8217; for a larger category that has been divided into smaller groups or &#8216;children categories&#8217;. </p>
<p>Category hierarchy is useful when presenting information about large groups of things. For example, a site about muscle cars can have the broad categories of Chevrolet, Pontiac and Plymouth. Within the Chevy parent category, there might be subcategories of Chevelle, Camaro and Nova. LeMans and GTO could be child categories of the Pontiac parent category, and the Plymouth parent category might list Barracuda and Road Runner as subcategories. You get the idea.</p>
<p>By filing a post in a child category, it is not automatically a member of the parent category as well, so make sure to tick the parent category if that&#8217;s what you want.</p>
<p>Taxonomies are searchable so they are a way to help your site visitors find your information. Choose category names wisely at the start. You can still add or subtract categories as your blog develops, but if possible refrain from changing categories, especially if your permalinks, and therefore the URLs of your posts, use categories. It could be a nightmare to update all those links!</p>
<p>Tags are like keywords that describe a post, so they&#8217;re not thought out as part of the site structure like categories should be. Tags don&#8217;t have hierarchy and are described as having a <em>freeform and one-dimensional nature</em>. Basically, tags are used to further describe or classify a post or page. The same tag can be assigned to any number of posts or pages in any combination of categories.</p>
<p>Using taxonomies is a means for connecting posts together by relationship or similar characteristics. Grouping similar posts into categories and tagging them will help visitors to navigate and use your site.</p>
<p>But WordPress doesn&#8217;t stop there, it lets you to create special taxonomies for any of your sites. Custom taxonomies can be defined for custom post types, posts or pages, and have been around since WordPress version 2.3, but they didn&#8217;t gain the full capability for hierarchical structure until WP 3.0. </p>
<p>Interested in creating a <em>new, custom taxonomy</em> for your site? Study the codex examples for <a href="http://codex.wordpress.org/Function_Reference/register_taxonomy" title="WP codex register taxonomy">registering taxonomies</a>.</p>
<p>Categories, tags and custom taxonomies are enlisted as some of the post meta data. Post meta data includes the information about a post that helps to identify it. Examples of post meta data include the date and time it was published, the author&#8217;s name, the categories or tags assigned to the post, and the associated RSS feed.</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/taxonomies-classify-and-organize-wordpress-posts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Roles and Capabilities Trump User Levels</title>
		<link>http://computeraxe.com/wordpress-roles-and-capabilities-trump-user-levels/</link>
		<comments>http://computeraxe.com/wordpress-roles-and-capabilities-trump-user-levels/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 07:05:47 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[member]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=1180</guid>
		<description><![CDATA[When someone signs up on a WordPress blog, the default role is as a subscriber. Once a subscriber logs in they can view and edit their profile, which includes things like username, password and contact info, but that&#8217;s all they &#8230; <a href="http://computeraxe.com/wordpress-roles-and-capabilities-trump-user-levels/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>When someone signs up on a WordPress blog, the default role is as a subscriber. Once a subscriber logs in they can view and edit their profile, which includes things like username, password and contact info, but that&#8217;s all they can do. A subscriber can&#8217;t write a post, edit a page or upload any files. A site member would need higher privileges to do any of those things.</p>
<p>To handle various levels of user privilege, a system was developed in WordPress that was originally called the User Level System. In this system many capabilities were identified and these capabilities were classified according to the level of authority required or the privileges needed to perform certain tasks. </p>
<p>For example, a higher level of privilege was deemed necessary to edit another writer&#8217;s post. Accordingly, a user level that is now called Editor was given a variety of capabilities ranging from <code>edit_others_posts</code> to <code>delete_published_posts</code>. A lower user level, now called Author, was awarded a slimmer set of capabilities and it doesn&#8217;t include modifying others&#8217; work. </p>
<h3>Make Sure Site Visitors Can Register</h3>
<p>To make sure your visitors can sign up to your blog, see the General Settings page under &#8220;New User Default Role&#8221; for a spin box that has the options of subscriber, administrator, editor, author and contributor. Default role is <strong>subscriber</strong>. </p>
<p>If you want people to be able to register on your blog, tick the Membership box next to &#8220;Anyone can register&#8221;, then click on the Save Changes button at the bottom of the page to make it so.</p>
<h3>User Levels Supplanted by Roles</h3>
<p>WordPress introduced user levels in version 1.5, but quickly replaced them in version 2.0 with Roles and Capabilities. User levels are deprecated since WP 3.0, but we may see them used in older plugins or themes, so it&#8217;s worth knowing about them. Basically, higher user levels have more privileges and can write, edit, post, publish and manage more than their lower-level counterparts.</p>
<p>The lowest user level equates with the subscriber role. Subscribers can sign in, see and modify their own profile, and besides that they can read posts and pages and comment.</p>
<p>The highest user level is reserved for the site administrator or blog owner and that would include level_0 up through level_10, the highest user level.</p>
<p>Prior versions of WordPress had 11 levels from level_0 to level_10, with level_0 being the lowest level and least capable, while level_10 users were able to do anything and everything with the WordPress blog.</p>
<p>WordPress defines users as the blog visitors who register and login to the web site. The Administrator is created during installation of the WordPress software. The Admin level has absolute power over all other users being able to add or delete users, edit their writings and promote or demote anyone to a different role.</p>
<p>Roles correspond to the old user level system like so:</p>
<ul>
<li>Subscriber = level_0</li>
<li>Contributor = level_0, level_1</li>
<li>Author = level_0 to level_2</li>
<li>Editor = level_0 to level_7</li>
<li>Admin = level_0 to level_10</li>
</ul>
<p>Many blog owners don&#8217;t need any special roles as they are the Admin and they control everything with their personal online spaces. Beyond the Admin there is a new level called Super Admin that comes into play when a network of sites needs to be administered. Multisite WordPress installations came into use as user levels were being deprecated, so there is no equivalent user level number for the Super Admin.</p>
<h3>Capabilities for Standard Roles</h3>
<p>The standard roles in WordPress are Administrator, Editor, Author, Contributor and Subscriber, in order of decreasing privilege.</p>
<p>The Admin user is created when WordPress is installed. Administrators have all capabilities, including the privileges to install, activate, edit and delete plugins, install, delete, edit or switch themes, edit or delete any post or page whether published or private, edit the dashboard, manage users, categories, links, options, comments and files, and import or export parts or all of the WordPress blog.</p>
<p>Editors have fewer privileges than admins, but they have the powers to manage their own and other&#8217;s posts. They can edit and delete pages or posts whether they&#8217;re published or private. Editors have the capabilities to manage categories, links and comments, and they can upload files. Editors can post code in pages, posts and comments, so make sure you trust your editors because they can post HTML markup or even JavaScript to your blog.</p>
<p>Authors have fewer privileges than editors and they all center around writing posts. Authors can publish, edit and delete the posts they create, even published ones. However, they cannot edit or delete other&#8217;s posts. Authors cannot create or alter Pages. They can upload files to add new media, and of course, read and comment on posts.</p>
<p>Contributors have even fewer privileges than authors. Contributors can edit, delete and read their own posts. Posts created by Contributors will be held in moderation for an Editor to approve and publish.</p>
<p>Finally, Subscribers have but two capabilities. They can read posts and they can view and update their own profile.</p>
<h3>Modifying and Managing Roles</h3>
<p>Several WordPress plugins exist for managing roles and capabilities. The plugins listed here get very high marks at the <a href="http://wordpress.org/extend/plugins/" title="WP plugin directory">WordPress Plugin Directory</a>.</p>
<p>Members Plugin</p>
<p><a href="http://wordpress.org/extend/plugins/members/" title="members wp plugin">Members plugin</a> is described as an &#8220;extensive role and capability management system&#8221; that allows you to create, edit and delete roles and capabilities for those roles. Using shortcodes, this plugin lets you control access to your content, including the ability to make the entire site and its RSS feed private.</p>
<p>Role Scoper Plugin</p>
<p><a href="http://wordpress.org/extend/plugins/role-scoper/" title="role scoper wp plugin">Role Scoper plugin</a> is a complete solution for assigning permissions and roles to specific pages, posts or categories. Independent of WP roles, users of any level can be elevated to read or edit any content. Alternatively, content can be restricted from any user regardless of their WP roles or capabilities.</p>
<p>User Access Manager Plugin</p>
<p><a href="http://wordpress.org/extend/plugins/user-access-manager/" title="user access manager wp plugin">User Access Manager plugin</a> lets you &#8220;manage the access to your posts, pages and files&#8221;. Reading and editing permissions for pages and posts are assigned via user groups. Registered users are placed into user groups for which appropriate access rights have been created. User groups can supplement or take the place of WP roles for providing or preventing access to pages and posts.</p>
<p>Advanced Access Manager Plugin</p>
<p><a href="http://wordpress.org/extend/plugins/advanced-access-manager/" title="advanced access manager wp plugin">Advanced Access Manager plugin</a> is a &#8220;powerful and flexible Access Control tool&#8221; that supports single and multisite WordPress installations. Roles can be created and capabilities assigned per role. The Dashboard and Admin menu can be filtered to show only the important bits for each role.</p>
<p>User Role Editor Plugin</p>
<p><a href="http://wordpress.org/extend/plugins/user-role-editor/" title="user role editor plugin">User Role Editor plugin</a> allows you to create new roles and customize their capabilities. Options include setting the default role for new users, removing capabilities from users, deleting roles no longer needed, and changing capabilities on a per user basis.</p>
<p><a href="http://www.garyc40.com/2010/04/ultimate-guide-to-roles-and-capabilities/" title="guide to roles and capabilities">Gary&#8217;s ultimate guide</a> for assigning user levels to roles and capabilities is most useful for those wanting to modify or create plugins and themes. Many code snippets are shared in this post for assigning capabilities, testing whether a user has a certain capability, and adding new roles and capabilities.</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/wordpress-roles-and-capabilities-trump-user-levels/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Putting Readable Code in a WordPress Post</title>
		<link>http://computeraxe.com/putting-readable-code-in-a-wordpress-post/</link>
		<comments>http://computeraxe.com/putting-readable-code-in-a-wordpress-post/#comments</comments>
		<pubDate>Tue, 17 Apr 2012 07:05:47 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=1139</guid>
		<description><![CDATA[Writing about PHP or HTML code in WordPress posts or pages often requires that some actual code is shown on the screen for explanation. If special steps aren&#8217;t taken to illustrate the code as text, the result is often not &#8230; <a href="http://computeraxe.com/putting-readable-code-in-a-wordpress-post/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Writing about PHP or HTML code in WordPress posts or pages often requires that some actual code is shown on the screen for explanation. If special steps aren&#8217;t taken to illustrate the code as text, the result is often not what was intended to be seen because the WordPress engine will interpret the code as actual code, not text about code.</p>
<p>If all you want to do is highlight some text that includes code-related words like filenames, function names or plugin names, use <code>&lt;code&gt;&lt;/code&gt;</code> around those phrases in your text. Using <code>&lt;code&gt;&lt;/code&gt;</code> turns text into a <code>monospaced font </code>so that it appears differently in your posts than &#8220;normal&#8221; text. However, using <code>&lt;code&gt;&lt;/code&gt;</code> around an HTML tag doesn&#8217;t do anything except change the presentation of the tag, so the opening and closing angle brackets are interpreted to enclose an <em>actual HTML tag</em>. The result will be a mess and definitely not what you were hoping to see.</p>
<p>To make WordPress show code in a post without interpreting it, you have to do ONE of three things:</p>
<ol>
<li>Use special character codes to replace angle brackets of tags.</li>
<li>Use the HTML tag <code>&lt;pre&gt;&lt;/pre&gt;</code> around the code.</li>
<li>Use a plugin to highlight the code syntax.</li>
</ol>
<h3>1. Special Character Codes</h3>
<p>Angle brackets, &lt; or &gt;, are what WordPress uses to identify code, whether it&#8217;s HTML, inline styles of CSS, or PHP. Content inside angle brackets is interpreted as code by virtue of placement inside the brackets. Instead of interpreting this code we want WordPress to show the code to the site visitors and we can use special character codes to do that. </p>
<p>Character codes are special sequences of letters or digits that are used to represent textual characters. Every character that we see on the screen, including uppercase letters, lowercase letters, numbers, and symbols like &lt;, &gt;, #, $, %, ^, &#038; or *, can be represented by character codes, sometimes called character entities.</p>
<p>Using character codes in posts looks a little strange in the editing panel, but when a browser comes across these codes they are interpreted and their textual equivalent is shown on the screen.</p>
<p>ASCII (American Standard Code for Information Interchange) <a href="http://www.ascii.cl/htmlcodes.htm" title="ascii character entities"> character codes</a> were developed to represent text in electronic devices  and they follow a specific format. The format is that each character entity starts with an ampersand and ends with a semi-colon. The codes are a couple to a few letters or numbers. Numbered character codes always have a hash symbol right after the opening ampersand. Some entities can be represented by either numbered or named codes.</p>
<p><strong>Examples of special character codes:</strong></p>
<table>
<tr>
<th>Character name</th>
<th>Character symbol</th>
<th>Character ASCII Code</th>
<tr>
<tr>
<td>left angle bracket</td>
<td>&lt;</td>
<td>&amp;lt;</td>
</tr>
<tr>
<td>right angle bracket</td>
<td>&gt;</td>
<td>&amp;gt;</td>
</tr>
<tr>
<td>ampersand</td>
<td>&amp;</td>
<td>&amp;amp;</td>
</tr>
<tr>
<td>dollar sign</td>
<td>&#36;</td>
<td>&amp;#36;</td>
</tr>
<tr>
<td>long dash</td>
<td>&mdash;</td>
<td>&amp;mdash;</td>
</tr>
<tr>
<td>short dash</td>
<td>&ndash;</td>
<td>&amp;ndash;</td>
</tr>
<tr>
<td>double quotes</td>
<td>&quot;</td>
<td>&amp;quot;</td>
</tr>
<tr>
<td>at sign</td>
<td>&#64;</td>
<td>&amp;#64;</td>
</tr>
</table>
<p>If you need to find a code for language sets other than English, try the unicode site for all the <a href="http://www.unicode.org/charts/" title="unicode character code charts">code charts</a> you&#8217;ll ever need. There, you can find numeric codes for fun game pieces, like chess, mahjong or checkers, horoscope symbols, smiley faces, weather symbols, music notes, and much more.</p>
<p><strong>Take caution:</strong> Just because you can enter a special code to represent a symbol, that doesn&#8217;t mean your computer will let you see it. Many operating systems will not have the proper fonts installed to make use of all of these codes, especially if they represent symbols that aren&#8217;t on your keyboard. Stick to the ASCII codes as many of the unicodes won&#8217;t be seen by your site visitors.</p>
<h3>2. HTML tag: &lt;pre&gt;</h3>
<p>Perhaps you&#8217;d like to show a block of HTML code on your post and have it shown as text. To make sure that your block of code is not interpreted as actual code, wrap it with <code>&lt;pre&gt;&lt;/pre&gt;</code> tags. The <code>&lt;pre&gt;</code> tag will change the appearance of the code into a <code>monospace font</code>, just like <code>&lt;code&gt;</code> does, but the difference is that <code>&lt;pre&gt;</code> also illustrates the code exactly as it was typed. All text, characters, spaces and line feeds will be reproduced exactly how they were entered. No code will be run when it&#8217;s protected inside the opening <code>&lt;pre&gt;</code> and closing <code>&lt;/pre&gt;</code> tags.</p>
<h3>3. Syntax Highlighter Plugins</h3>
<p>A final way to illustrate code in a WordPress post or page is to use a plugin to highlight the code. Several plugins are available for syntax highlighting purposes. </p>
<p>One that I have been using lately is called <a href="http://wordpress.org/extend/plugins/crayon-syntax-highlighter/" title="crayon syntax highlighter plugin">Crayon Syntax Highlighter</a>. It&#8217;s a great plugin that will colorize or highlight code that you wrap with shortcodes. There are lots of options if you want fine control over the color scheme. Themes come with the plugin so you have several choices for making your code look good.</p>
<p>There are two modes where you can highlight code differently using shortcodes, <code>&#91;crayon&#93;&#91;/crayon&#93;</code> and <code>&#91;plain&#93;&#91;/plain&#93;</code>. Use <code>&#91;plain&#93;</code> shortcodes when the colorized crayon is overkill or when you just want to show a small section of code. Crayon Syntax Highlighter supports a wide range of languages, including HTML, CSS, PHP and JavaScript, for starters.</p>
<p>The colorful <code>&#91;crayon&#93;</code> shortcode is controlled by options where you can pick the colors that you want for representing different sections or purposes in your code. Inline crayons are supported so you could put a line of code within a line of text and the code would be colorized.</p>
<p>Some other popular code-highlighting plugins include <a href="http://wordpress.org/extend/plugins/syntaxhighlighter/" title="SyntaxHighlighter Evolved plugin">SyntaxHighlighter Evolved</a>, <a href="http://wordpress.org/extend/plugins/wp-syntax/" title="WP Syntax plugin">WP-Syntax</a>, and <a href="http://wordpress.org/extend/plugins/codecolorer/" title="Code Colorer plugin">CodeColorer</a>. I don&#8217;t have any personal experience with these plugins, but they are listed high in popularity at the <a href="http://wordpress.org/extend/plugins/" title="WordPress Plugin Directory">WordPress Plugin Directory</a>.</p>
<h3>Need to Execute Code in a Post?</h3>
<p>If what you&#8217;re really after is to put executable code in a post or WordPress Page, check out this post on <a href="http://computeraxe.com/using-php-inside-content-wordpress-blogs/" title="run PHP inside a blog post">executing PHP in WordPress</a> blogs.</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/putting-readable-code-in-a-wordpress-post/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
