<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Free-Php.Net</title>
	
	<link>http://www.free-php.net</link>
	<description>php scripts, scripting news, product reviews, code snippets</description>
	<lastBuildDate>Thu, 08 Dec 2011 04:18:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<feedburner:info uri="freephpnet" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license><image><link>http://creativecommons.org/licenses/by-nc-sa/3.0/</link><url>http://creativecommons.org/images/public/somerights20.gif</url><title>Some Rights Reserved</title></image><xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://www.free-php.net/feed/" /><feedburner:browserFriendly>Thank you so much for Subscribing to our feed! Enjoy browsing our latest headlines!</feedburner:browserFriendly><item>
		<title>Codeigniter for the Absolute Beginner</title>
		<link>http://feedproxy.google.com/~r/freephpnet/~3/nzZi7KjRGYE/</link>
		<comments>http://www.free-php.net/849/codeigniter-for-the-absolute-beginner/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 04:18:20 +0000</pubDate>
		<dc:creator>CodeMunkyX</dc:creator>
				<category><![CDATA[PHP News]]></category>
		<category><![CDATA[Codeigniter]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://www.free-php.net/?p=849</guid>
		<description><![CDATA[If you are looking for an alternative PHP framework to ZEND or Symfony, then Codeigniter should peak your interest. Much like the other frameworks, Codeigniter utilizes MVC and actually includes a Model paradigm unlike ZEND. Be sure to check out the beginner&#8217;s tutorial listed below if you want to take the next step in exploring [...]]]></description>
			<content:encoded><![CDATA[<p>If you are looking for an alternative PHP framework to ZEND or Symfony, then Codeigniter should peak your interest. Much like the other frameworks, Codeigniter utilizes MVC and actually includes a Model paradigm unlike ZEND. Be sure to check out the beginner&#8217;s tutorial listed below if you want to take the next step in exploring what Codeigniter has to offer. Enjoy!</p>
<h4>Article Blurb</h4>
<blockquote><p>I have seen in some forums and different websites, some doubts about how codeigniter is organized and how can it help you as a coder be more efficient. The first thing people should know is, codeigniter is a PHP framework, made with the software architecture known as MVC which stands for Model-View-Controller. This architecture seperates the logic from user interface allowing independant development, testing and better maintenance. Codeigniter allows you to have your code much organized, making you look better at what you already do. This framework is made to facilitate the way you do certain things in PHP, and allow you to reuse your code, using PHP Object Oriented programming paradigm. Codeigniter, on my opinion, seems to be very user friendly, so it’s to which I would recommend the use of it, for any upcoming web developer. </p></blockquote>
<ul>
<li><a  href="http://www.jotorres.com/en/2011/11/codeigniter-for-the-absolute-beginner/" target="_blank">Read Full Article</a></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/freephpnet?a=nzZi7KjRGYE:QkIC14KKLLs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/freephpnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/freephpnet?a=nzZi7KjRGYE:QkIC14KKLLs:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/freephpnet?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/freephpnet/~4/nzZi7KjRGYE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.free-php.net/849/codeigniter-for-the-absolute-beginner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.free-php.net/849/codeigniter-for-the-absolute-beginner/</feedburner:origLink></item>
		<item>
		<title>WordPress Custom Field Image to Featured Image</title>
		<link>http://feedproxy.google.com/~r/freephpnet/~3/qFaiIT9JweA/</link>
		<comments>http://www.free-php.net/830/wordpress-custom-field-image-to-featured-image/#comments</comments>
		<pubDate>Sun, 13 Nov 2011 08:04:16 +0000</pubDate>
		<dc:creator>CodeMunkyX</dc:creator>
				<category><![CDATA[WordPress Snippets]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.free-php.net/?p=830</guid>
		<description><![CDATA[Do you have a theme that uses custom fields to hold image URLS and wish you could automatically set these as the featured post image, to be more compatable with other themes if you ever decided to change. Well today is your lucky day, I ran across the need to do this on one of [...]]]></description>
			<content:encoded><![CDATA[<p>Do you have a theme that uses custom fields to hold image URLS and wish you could automatically set these as the featured post image, to be more compatable with other themes if you ever decided to change.</p>
<p>Well today is your lucky day, I ran across the need to do this on one of my recent free themes. Below is the code:</p>
<pre class="brush: php; title: ; notranslate">

	// First lets get the custom field , we are assuming its called &quot;thumb&quot;
	$thumb = get_post_meta($post-&gt;ID, 'thumb', true);

	// Check if a post thumbnail is already set, if so don't do anything.
	if( has_post_thumbnail( $post-&gt;ID ) ) {

	} else {

		if ( ! empty($thumb) ) {

			// Download file to temp location
			$tmp = download_url( $thumb );

			// Set variables for storage
			// fix file filename for query strings
			preg_match('/[^\?]+\.(jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/', $thumb, $matches);
			$file_array['name'] = basename($matches[0]);
			$file_array['tmp_name'] = $tmp;

			// If error storing temporarily, unlink
			if ( is_wp_error( $tmp ) ) {
				@unlink($file_array['tmp_name']);
				$file_array['tmp_name'] = '';
			}

			// do the validation and storage stuff
			$id = media_handle_sideload( $file_array, $post-&gt;ID, NULL );
			// If error storing permanently, unlink
			if ( is_wp_error($id) ) {
				@unlink($file_array['tmp_name']);
				return $id;
			}

			// Set the featured image
			set_post_thumbnail( $post-&gt;ID, $id );

		}

	}
</pre>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/freephpnet?a=qFaiIT9JweA:vIaJExjOb3I:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/freephpnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/freephpnet?a=qFaiIT9JweA:vIaJExjOb3I:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/freephpnet?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/freephpnet/~4/qFaiIT9JweA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.free-php.net/830/wordpress-custom-field-image-to-featured-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.free-php.net/830/wordpress-custom-field-image-to-featured-image/</feedburner:origLink></item>
		<item>
		<title>WordPress Display All Images Associated with Page</title>
		<link>http://feedproxy.google.com/~r/freephpnet/~3/kIkjq262d7A/</link>
		<comments>http://www.free-php.net/827/wordpress-display-all-images-associated-with-page/#comments</comments>
		<pubDate>Wed, 02 Nov 2011 06:43:55 +0000</pubDate>
		<dc:creator>CodeMunkyX</dc:creator>
				<category><![CDATA[WordPress Snippets]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.free-php.net/?p=827</guid>
		<description><![CDATA[This is a code snippet I use quite often to display custom galleries in my themes. Paste the following code within the loop of your page template.]]></description>
			<content:encoded><![CDATA[<p>This is a code snippet I use quite often to display custom galleries in my themes. Paste the following code within the loop of your page template.</p>
<pre class="brush: php; title: ; notranslate">
echo '&lt;ul id=&quot;Thumbnails&quot;&gt;';

$args = array( 'post_type' =&gt; 'attachment', 'numberposts' =&gt; -1, 'post_status' =&gt; null, 'post_parent' =&gt; $post-&gt;ID );
$attachments = get_posts($args);
if ($attachments) {
foreach ( $attachments as $attachment ) {

$image_attributes 	= wp_get_attachment_image_src( $attachment-&gt;ID ); // returns an array
$imgTitle	        = $attachment-&gt;post_title;
$imgCaption 		= $attachment-&gt;post_excerpt;
$imgDescription		= $attachment-&gt;post_content;

echo '&lt;li&gt;&lt;a href=&quot;' . $attachment-&gt;guid . '&quot;&gt;&lt;img '; 

if ( $attachment-&gt;post_name == $_GET['image'] ) { echo 'class=&quot;active&quot;'; }

echo ' src=&quot;' . $attachment-&gt;guid . '&quot; title=&quot;' . $imgCaption . '&quot; alt=&quot;' . $imgTitle . ' - ' . $imgDescription . '&quot;  /&gt;&lt;/a&gt;&lt;/li&gt;' . &quot;\n&quot;;

}
}

echo '&lt;/ul&gt;' . &quot;\n&quot;;
echo '&lt;div style=&quot;clear: both;&quot;&gt;&lt;/div&gt;';
</pre>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/freephpnet?a=kIkjq262d7A:rd1-zxPs6es:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/freephpnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/freephpnet?a=kIkjq262d7A:rd1-zxPs6es:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/freephpnet?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/freephpnet/~4/kIkjq262d7A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.free-php.net/827/wordpress-display-all-images-associated-with-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.free-php.net/827/wordpress-display-all-images-associated-with-page/</feedburner:origLink></item>
		<item>
		<title>WordPress Style First Word of Widget Titles</title>
		<link>http://feedproxy.google.com/~r/freephpnet/~3/zgWEHB8CjgE/</link>
		<comments>http://www.free-php.net/825/wordpress-style-first-word-of-widget-titles/#comments</comments>
		<pubDate>Wed, 02 Nov 2011 06:15:09 +0000</pubDate>
		<dc:creator>CodeMunkyX</dc:creator>
				<category><![CDATA[WordPress Snippets]]></category>
		<category><![CDATA[title]]></category>
		<category><![CDATA[widgets]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.free-php.net/?p=825</guid>
		<description><![CDATA[Similar to my last post about adding html to the first word of titles, this is the code to do the same with widget titles. Just copy the code below into your functions.php file.]]></description>
			<content:encoded><![CDATA[<p>Similar to my last post about adding html to the first word of titles, this is the code to do the same with widget titles. Just copy the code below into your functions.php file.</p>
<pre class="brush: php; title: ; notranslate">
// Adds &lt;span&gt;&lt;/span&gt; around the first word of Widget titles
function arixWP_widget_title($title) {
$title = preg_replace('/(^[A-z0-9_]+)\s/i', '&lt;span&gt;$1&lt;/span&gt; ', $title);
return $title;
}
add_filter('widget_title', 'arixWP_widget_title');
</pre>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/freephpnet?a=zgWEHB8CjgE:nHWwCtk7pPk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/freephpnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/freephpnet?a=zgWEHB8CjgE:nHWwCtk7pPk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/freephpnet?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/freephpnet/~4/zgWEHB8CjgE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.free-php.net/825/wordpress-style-first-word-of-widget-titles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.free-php.net/825/wordpress-style-first-word-of-widget-titles/</feedburner:origLink></item>
		<item>
		<title>WordPress: Add HTML tags to first word of title</title>
		<link>http://feedproxy.google.com/~r/freephpnet/~3/t56fIshlMA0/</link>
		<comments>http://www.free-php.net/823/wordpress-add-html-tags-to-first-word-of-title/#comments</comments>
		<pubDate>Wed, 02 Nov 2011 06:12:15 +0000</pubDate>
		<dc:creator>CodeMunkyX</dc:creator>
				<category><![CDATA[WordPress Snippets]]></category>
		<category><![CDATA[post title]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.free-php.net/?p=823</guid>
		<description><![CDATA[While working on a theme, I needed code to add span tags around the first word of my titles in order to style them differently. Below is the code to do it. Just copy it into your functions.php file. Usage Where ever you would like the title to show up paste the following code:]]></description>
			<content:encoded><![CDATA[<p>While working on a theme, I needed code to add span tags around the first word of my titles in order to style them differently. Below is the code to do it. Just copy it into your functions.php file.</p>
<pre class="brush: php; title: ; notranslate">

		function arixWP_title()
		{

			global $post;

			$title = '&lt;h2 class=&quot;title&quot;&gt;&lt;a href=&quot;' . get_permalink() . '&quot; title=&quot;' . get_the_title() . '&quot; rel=&quot;bookmark&quot;&gt;' . get_the_title() . '&lt;/a&gt;&lt;/h2&gt;';
			$title = preg_replace('/&lt;a([^&gt;]+)&gt;([A-z0-9_]+)\s/i', '&lt;a$1&gt;&lt;span&gt;$2&lt;/span&gt; ', $title);

			echo $title;

		}	
</pre>
<h3>Usage</h3>
<p>Where ever you would like the title to show up paste the following code:</p>
<pre class="brush: php; title: ; notranslate">

&lt;?php arixWP_title(); ?&gt;
</pre>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/freephpnet?a=t56fIshlMA0:NbXFE4SdVXg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/freephpnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/freephpnet?a=t56fIshlMA0:NbXFE4SdVXg:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/freephpnet?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/freephpnet/~4/t56fIshlMA0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.free-php.net/823/wordpress-add-html-tags-to-first-word-of-title/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.free-php.net/823/wordpress-add-html-tags-to-first-word-of-title/</feedburner:origLink></item>
		<item>
		<title>Introducing Namespaces for PHP Developers</title>
		<link>http://feedproxy.google.com/~r/freephpnet/~3/z_X8fm8LXpU/</link>
		<comments>http://www.free-php.net/817/introducing-namespaces-for-php-developers/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 23:27:49 +0000</pubDate>
		<dc:creator>CodeMunkyX</dc:creator>
				<category><![CDATA[PHP News]]></category>
		<category><![CDATA[namespaces]]></category>
		<category><![CDATA[php 5.3]]></category>

		<guid isPermaLink="false">http://www.free-php.net/?p=817</guid>
		<description><![CDATA[If you write web applications in PHP for a living or or you have tackled a big project then you most likely would be interested PHP namespaces in version 5.3. This article does a great job at explaining what a namespace is and how to utilize them in PHP. Article Blurb PHP&#8217;s historical lack of [...]]]></description>
			<content:encoded><![CDATA[<p>If you write web applications in <strong>PHP</strong> for a living or or you have tackled a big project then you most likely would be interested PHP namespaces in <strong>version 5.3</strong>. This article does a great job at explaining what a namespace is and how to utilize them in PHP.</p>
<h4>Article Blurb</h4>
<blockquote><p>PHP&#8217;s historical lack of namespace support has long been a sore spot for developers residing both within and without the <strong>PHP community</strong>. Lacking the ability to efficiently organize project libraries, <strong>PHP developers</strong> have long made do with various contrived hacks, including notably using an autoloader in conjunction with code organized within a nested folder structure. Such an approach is used by the <strong>PHP Extension and Application Repository (PEAR)</strong>, as well as by popular frameworks such as the <strong>Zend Framework</strong>.</p></blockquote>
<ul>
<li><a  href="http://www.phpbuilder.com/columns/intro_namespaces/Introducing_Namespaces_Gilmore_09-20-2011.php3" target="_blank">Read Full Article</a></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/freephpnet?a=z_X8fm8LXpU:dwV94EJE-b4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/freephpnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/freephpnet?a=z_X8fm8LXpU:dwV94EJE-b4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/freephpnet?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/freephpnet/~4/z_X8fm8LXpU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.free-php.net/817/introducing-namespaces-for-php-developers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.free-php.net/817/introducing-namespaces-for-php-developers/</feedburner:origLink></item>
		<item>
		<title>How to check when a MySQL table was last updated</title>
		<link>http://feedproxy.google.com/~r/freephpnet/~3/6v2ohQd1fGY/</link>
		<comments>http://www.free-php.net/814/how-to-check-when-a-mysql-table-was-last-updated/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 23:15:50 +0000</pubDate>
		<dc:creator>CodeMunkyX</dc:creator>
				<category><![CDATA[General News]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.free-php.net/?p=814</guid>
		<description><![CDATA[Great little article if you are interested in finding out when the last time a table in your mySQL database has been updated. This is ideal if you have forgotten to place an updated by or last updated column in your table. Article Blurb I recently had to update a MySQL schema and import new [...]]]></description>
			<content:encoded><![CDATA[<p>Great little article if you are interested in finding out when the last time a table in your <strong>mySQL database</strong> has been updated. This is ideal if you have forgotten to place an updated by or last updated column in your table.</p>
<h4>Article Blurb</h4>
<blockquote><p>I recently had to update a MySQL schema and import new data into the table. But before I could do that I needed to check that no one had updated the table during the last 7 days and no new data had been stored. As the table itself did not have any update field of itself the only other option was to look into the MySQL ‘information_schema’ database.</p></blockquote>
<ul>
<li><a  href="http://www.codediesel.com/mysql/how-to-check-when-a-mysql-table-was-last-updated/" target="_blank">Read Full Article</a></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/freephpnet?a=6v2ohQd1fGY:clp8F7ZrkJo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/freephpnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/freephpnet?a=6v2ohQd1fGY:clp8F7ZrkJo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/freephpnet?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/freephpnet/~4/6v2ohQd1fGY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.free-php.net/814/how-to-check-when-a-mysql-table-was-last-updated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.free-php.net/814/how-to-check-when-a-mysql-table-was-last-updated/</feedburner:origLink></item>
		<item>
		<title>WordPress Count Post Views Without Plugin</title>
		<link>http://feedproxy.google.com/~r/freephpnet/~3/CZ2QQ44YGMA/</link>
		<comments>http://www.free-php.net/796/wordpress-count-post-views-without-plugin/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 12:00:45 +0000</pubDate>
		<dc:creator>CodeMunkyX</dc:creator>
				<category><![CDATA[WordPress Snippets]]></category>
		<category><![CDATA[post views]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.free-php.net/?p=796</guid>
		<description><![CDATA[Did you ever want to know how many times a particular post has been viewed? Well today is your lucky day. Just add the following snippets to your template files and watch the post views grow. Usage Add this to your functions.php To count the views add this to your single.php template. To display the [...]]]></description>
			<content:encoded><![CDATA[<p>Did you ever want to know how many times a particular post has been viewed? Well today is your lucky day. Just add the following snippets to your template files and watch the post views grow.</p>
<h4>Usage</h4>
<p>Add this to your functions.php</p>
<pre class="brush: php; title: ; notranslate">
	// Display or Count how many times a post has been viewed.
	// id = the post id and action = display or count

		function arixWp_PostViews( $id, $action ) {

			$axCountMeta 	= 'ax_post_views'; // Your Custom field that stores the views
			$axCount 	= get_post_meta($id, $axCountMeta, true);

			if ( $axCount == '' ) {

				if ( $action == 'count' ) {
					$axCount = 0;
				}

				delete_post_meta( $id, $axCountMeta );
				add_post_meta( $id, $axCountMeta, 0 );

				if ( $action == 'display' ) {
					echo &quot;0 Views&quot;;
				}		

			} else {

				if ( $action == 'count' ) {

					$axCount++;
					update_post_meta( $id, $axCountMeta, $axCount );

				} else {

					echo $axCount . ' Views';	

				}

			}	

		}
</pre>
<p>To count the views add this to your single.php template.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php echo arixWp_PostViews( get_the_ID(), 'count' ); ?&gt;
</pre>
<p>To display the count outside the loop use this:</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php echo arixWp_PostViews( get_the_ID(), 'display' ); ?&gt;
</pre>
<p>If you want them to show in the loop use this instead.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php echo arixWp_PostViews( $post-&gt;ID, 'display' ); ?&gt;
</pre>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/freephpnet?a=CZ2QQ44YGMA:kqaIYm5qYaI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/freephpnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/freephpnet?a=CZ2QQ44YGMA:kqaIYm5qYaI:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/freephpnet?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/freephpnet/~4/CZ2QQ44YGMA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.free-php.net/796/wordpress-count-post-views-without-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.free-php.net/796/wordpress-count-post-views-without-plugin/</feedburner:origLink></item>
		<item>
		<title>WordPress Widget – Custom Taxonomy</title>
		<link>http://feedproxy.google.com/~r/freephpnet/~3/dWGmrQfyx04/</link>
		<comments>http://www.free-php.net/788/wordpress-widget-custom-taxonomy/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 02:49:23 +0000</pubDate>
		<dc:creator>CodeMunkyX</dc:creator>
				<category><![CDATA[Wordpress Plugins]]></category>
		<category><![CDATA[custom taxonomy]]></category>
		<category><![CDATA[taxonomy]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.free-php.net/?p=788</guid>
		<description><![CDATA[Custom posts types are great right, but by default wordpress does not list them in your sidebars or menus. This is a simple widget i created for one theme I was developing, basically it allows you to show your custom taxonomies in your sidebar widgets.]]></description>
			<content:encoded><![CDATA[<p><a  href="http://www.free-php.net/wp-content/uploads/2011/09/taxonomywidget.jpg" class="thickbox no_icon" rel="gallery-788" title=""><img src="http://www.free-php.net/wp-content/uploads/2011/09/taxonomywidget.jpg" alt="" title="taxonomywidget" width="256" height="402" class="alignleft size-full wp-image-794" /></a>Custom posts types are great right, but by default wordpress does not list them in your sidebars or menus. </p>
<p>This is a simple widget i created for one theme I was developing, basically it allows you to show your custom taxonomies in your sidebar widgets.</p>

				<h4>Download</h4>				
				<div class="downloadBar"><form name="donateForm-1" id="donateplusform" action="https://www.paypal.com/cgi-bin/webscr" method="post">
								<input type="hidden" id="cmd" name="cmd" value="_donations" />
				   <div class="dlButtons">
						<p><a  href="http://wordpress.org/extend/plugins/custom-taxonomy-widget" title=""><img src="http://www.free-php.net/wp-content/themes/free-php/images/download.png" alt="Download Now" class="ignoreShadow" /></a></p>
					</div>
				   <div class="dltext">
						<p style="font-size: 12px;">If you use our script and want to show your appreciation, please <strong>consider linking back to our site</strong>.</p>
						
						</div>
					</form>
						
					</div>	
					<div style="clear: both;"></div>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/freephpnet?a=dWGmrQfyx04:ISENabFtVg4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/freephpnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/freephpnet?a=dWGmrQfyx04:ISENabFtVg4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/freephpnet?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/freephpnet/~4/dWGmrQfyx04" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.free-php.net/788/wordpress-widget-custom-taxonomy/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.free-php.net/788/wordpress-widget-custom-taxonomy/</feedburner:origLink></item>
		<item>
		<title>WordPress – Custom Taxonomy Breadcrumbs</title>
		<link>http://feedproxy.google.com/~r/freephpnet/~3/89MSADyknAc/</link>
		<comments>http://www.free-php.net/780/wordpress-custom-taxonomy-breadcrumbs/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 07:19:49 +0000</pubDate>
		<dc:creator>CodeMunkyX</dc:creator>
				<category><![CDATA[WordPress Snippets]]></category>
		<category><![CDATA[breadcrumbs]]></category>
		<category><![CDATA[custom post type]]></category>
		<category><![CDATA[custom taxonomy]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.free-php.net/?p=780</guid>
		<description><![CDATA[While developing a theme that uses custom taxonomies and custom post types, I ran across the need to include breadcrumb navigation to the custom taxonomies. After a couple of days of searching around and not finding any real solutions, I ended up creating my own function to do it. Enjoy Copy this to your functions.php [...]]]></description>
			<content:encoded><![CDATA[<p>While developing a theme that uses custom taxonomies and custom post types, I ran across the need to include breadcrumb navigation to the custom taxonomies. After a couple of days of searching around and not finding any real solutions, I ended up creating my own function to do it.</p>
<p>Enjoy</p>
<h3>Copy this to your functions.php file</h3>
<pre class="brush: php; title: ; notranslate">
&lt;?php

	function postTypeCrumbs($postType, $postTax) {

		$term 			= get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
		$taxonomy 		= get_taxonomy($term-&gt;taxonomy);
		$parents 		= get_ancestors( $term-&gt;term_id, $postTax );
		$parents 		= array_reverse($parents);
		$archive_link	= get_post_type_archive_link( $postType );

		echo '&lt;ul class=&quot;ax_crumbs&quot;&gt;';

		if ($taxonomy)  {
			echo '&lt;li&gt;&lt;a href=&quot;' . $archive_link . '&quot; title=&quot;' . $taxonomy-&gt;labels-&gt;name . '&quot;&gt;' . $taxonomy-&gt;labels-&gt;name . '&lt;/a&gt; &amp;raquo; &lt;/li&gt;';
		}

		foreach ( $parents as $parent ) {
			$p 	= get_term( $parent, $postTax );
			echo '&lt;li&gt;&lt;a href=&quot;' . get_term_link($p-&gt;slug, $postTax) . '&quot; title=&quot;' . $p-&gt;name . '&quot;&gt;' . $p-&gt;name . '&lt;/a&gt; &lt;span&gt;&amp;raquo;&lt;/span&gt; &lt;/li&gt;';
		}

		if ($term) {
			echo '&lt;li&gt;' . $term-&gt;name . '&lt;/li&gt;';
		}

		echo '&lt;/ul&gt;';

	}
?&gt;
</pre>
<h4>Usage</h4>
<p>Paste this whereever you would like the taxonomy to display.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php postTypeCrumbs('post type', 'taxonomy name'); ?&gt;
</pre>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/freephpnet?a=89MSADyknAc:9thCHGZuEJg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/freephpnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/freephpnet?a=89MSADyknAc:9thCHGZuEJg:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/freephpnet?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/freephpnet/~4/89MSADyknAc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.free-php.net/780/wordpress-custom-taxonomy-breadcrumbs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.free-php.net/780/wordpress-custom-taxonomy-breadcrumbs/</feedburner:origLink></item>
	</channel>
</rss>

