<?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>KopepasahKopepasah</title> <atom:link href="http://kopepasah.com/feed/" rel="self" type="application/rss+xml" /><link>http://kopepasah.com</link> <description>Developer @ iThemes. Salsa Dancer. Food Fanatic. Smile Generator.</description> <lastBuildDate>Fri, 17 Feb 2012 23:05:34 +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>Suicide Wings and Other Things at Foodies Express</title><link>http://kopepasah.com/suicide-wings-and-other-things-at-foodies-express/</link> <comments>http://kopepasah.com/suicide-wings-and-other-things-at-foodies-express/#comments</comments> <pubDate>Fri, 03 Feb 2012 05:33:46 +0000</pubDate> <dc:creator>Justin Kopepasah</dc:creator> <category><![CDATA[Food]]></category> <category><![CDATA[asian]]></category> <category><![CDATA[oklahoma]]></category> <category><![CDATA[restaurants]]></category> <category><![CDATA[spicy]]></category><guid
isPermaLink="false">http://kopepasah.com/?p=3291</guid> <description><![CDATA[Thanks to Robot House Creative (aka Brian Winkeler, aka @robothousebrian) we discovered a new place near Midtown to feast. While other places like McNellies and Kaisers provide an assortment of traditional American food, Foodies Express (@FoodiesOKC) provides an awesome assortment of various styles of food. Here is their twitter bio: Great Fusion Foods! Best Bulgogi [...]]]></description> <content:encoded><![CDATA[<p>Thanks to Robot House Creative (aka Brian Winkeler, aka @robothousebrian) we discovered a new place near Midtown to feast. While other places like McNellies and Kaisers provide an assortment of traditional American food, Foodies Express (@FoodiesOKC) provides an awesome assortment of various styles of food.</p><p><span
id="more-3291"></span></p><p>Here is their twitter bio:</p><blockquote><p>Great Fusion Foods! Best Bulgogi Gyro in the world!! We dare anyone to try our Suicide Jumbo Wings!!Don&#8217;t miss out on one of life&#8217;s great pleasures.</p></blockquote><p>Since the bio said they had the &#8220;Best Bulgogi Gyro&#8221; and then they dared us to try the suicide wings, we did just that.</p><h3 id="the-bulgogi-gyro">The Bulgogi Gyro</h3><p>This gyro was simply delicious. It looked so good that we forgot to take a picture, but thanks to Brian we have <a
href="https://twitter.com/#!/robothousebrian/status/165156856141062144" title="Bulgogi Gyro from Foodies">one here</a> to share.</p><p><a
href="http://kopepasah.com/wp-content/uploads/2012/02/bulgogi-gyro-foodies-express-oklahoma.jpeg"><img
src="http://kopepasah.com/wp-content/uploads/2012/02/bulgogi-gyro-foodies-express-oklahoma.jpeg" alt="" title="bulgogi gyro foodies express oklahoma" width="765" height="1024" class="alignnone size-full wp-image-3294" /></a></p><h3 id="the-suicide-wings">The Suicide Wings</h3><p>These wings are not for the faint of heart. If you cannot handle hot (and I mean HOT), do NOT order these wings. To me, they are delicious. I cannot wait to have them again.</p><p><a
href="http://kopepasah.com/wp-content/uploads/2012/02/suicide-wings-at-foodies.jpg"><img
src="http://kopepasah.com/wp-content/uploads/2012/02/suicide-wings-at-foodies.jpg" alt="" title="suicide wings at foodies" width="1024" height="768" class="alignnone size-full wp-image-3297" /></a></p><p>The suicide wings are on the left and spicy garlic on the right.</p><h3 id="the-spicy-pad-thai">Spicy Pad Thai</h3><p>In addition to the other items, we also had the Spicy Pad Thai. Unlike other places, Foodies actually makes food spicy (which I love).</p><p><a
href="http://kopepasah.com/wp-content/uploads/2012/02/pad-thai-at-foodies.jpg"><img
src="http://kopepasah.com/wp-content/uploads/2012/02/pad-thai-at-foodies.jpg" alt="" title="pad thai at foodies" width="1024" height="770" class="alignnone size-full wp-image-3296" /></a></p><p>Foodies does not have a website yet, but you can find out more about this place on <a
href="http://www.urbanspoon.com/r/46/1631963/restaurant/Midtown/Foodies-Oklahoma-City" title="Foodies Express on UrbanSpoon" target="_blank">UrbanSpoon</a>. I highly recommend this place and I hope you enjoy!</p> ]]></content:encoded> <wfw:commentRss>http://kopepasah.com/suicide-wings-and-other-things-at-foodies-express/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Listing the Child Pages of a Parent Page Using a Shortcode</title><link>http://kopepasah.com/tuts/listing-the-child-pages-of-a-parent-page-using-a-shortcode/</link> <comments>http://kopepasah.com/tuts/listing-the-child-pages-of-a-parent-page-using-a-shortcode/#comments</comments> <pubDate>Thu, 02 Feb 2012 17:58:23 +0000</pubDate> <dc:creator>Justin Kopepasah</dc:creator> <guid
isPermaLink="false">http://kopepasah.com/?post_type=tutorials&#038;p=2772</guid> <description><![CDATA[I am not a big fan of shortcodes. They tend to tie users into themes or plugins. However, we were in need of a way to display subpages on a parent page without modifying a template. For that a shortcode came in handy. Have you ever created a parent page simply to organize data? I [...]]]></description> <content:encoded><![CDATA[<p>I am not a big fan of shortcodes. They tend to tie users into <a
href="http://kopepasah.com/recs/ithemes-home-page/" title="iThemes Home Page" target="_blank">themes</a> or <a
href="http://kopepasah.com/recs/pluginbuddy-developer-suite/" title="PluginBuddy Developer Suite" target="_blank">plugins</a>. However, we were in need of a way to display subpages on a parent page without modifying a template. For that a shortcode came in handy.</p><p><span
id="more-2772"></span></p><p>Have you ever created a parent page simply to organize data? I am sure most of us have. For those of you that have not, here is an example. You manage a baseball team and you have a parent page named &#8216;Team Members&#8217; with positions as the child pages. You then go a step further and organize the players by position; thus, creating grand-child pages. This is obviously an effective method of organizing players.</p><p>Remember that parent page? What information goes on it? Why not a list of all the team members? As a good idea as this sounds, most individuals would simply hardcode the team members onto the page. This poses an obvious problem. Each time the player list or position changes, you have to update the page.</p><p>A much better solution is to have the <a
href="http://kopepasah.com/unfiled/suggesting-pages-to-all-friends-at-once/" title="Suggesting Pages to All Friends at Once">pages</a> populate when changes are made. This can easily be achieved with <code>php</code>, but requires either a modification of a template file or a shortcode. As hard as it is for me to say this, the latter is the better choice.</p><h3 id="the-shortcode">The Shortcode</h3><p>Now that the decision is made, let&#8217;s create the shortcode.</p><pre class="brush: php; title: ; notranslate">
//Add a shortcode for listing child pages of a parent page
function list_pages_shortcode( $atts ) {
	// Basic shortcode markup
	extract( shortcode_atts( array(
		'post_parent' =&gt; false,
		'title' =&gt; '',
	), $atts ) );

	//If the post parent attribute isn't specified, use the current post's ID
	if ( ! $post_parent ) {
	global $post;
		if ( is_object( $post ) ) {
			$post_parent = $post-&gt;ID;
		} else {
			return false;
		}
	}

	//Build the arguments - we want the child of the post_parent
	$args = array(
		'depth'		   =&gt; 3,
		'child_of'     =&gt; $post_parent,
		'title_li'     =&gt; $title,
		'echo'         =&gt; 0,
		'sort_column'  =&gt; 'menu_order, post_title'
		);

	// if there is no title lets barf up the wordpress pages instead
	if ( empty( $title ) ) {
		return &quot;&lt;ul&gt;&quot; . wp_list_pages( $args ) . &quot;&lt;/ul&gt;&quot;;
	} else {
		return wp_list_pages( $args );
	}
}
add_shortcode( 'list_subpages', 'list_pages_shortcode' );
</pre><p>Once you have added this to your theme, simply add the following shortcode to the page where you want to list its subpages.</p><pre class="brush: xml; title: ; notranslate">
[list_subpages]
</pre><h3 id="code-explained">Code Explained</h3><p>Well actually, I am not going to get into detail over the actual code; however, there is a parameter you can pass within the shortcode itself.</p><p>Let&#8217;s say you want to list subpages of a particular page that <strong>is not</strong> the parent page. You can do this like so by adding that page&#8217;s ID to the shortcode. Here is an example.</p><pre class="brush: xml; title: ; notranslate">
[list_subpages post_parent=&quot;3&quot;]
</pre><p>This allows you to list a page and its subpages on any page or post.</p><p>I hope you find this shortcode useful. Fell free to expand as needed.</p><p
class="notice">This will only work with post-types with a hierarchal structure</p> ]]></content:encoded> <wfw:commentRss>http://kopepasah.com/tuts/listing-the-child-pages-of-a-parent-page-using-a-shortcode/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Coping with Sickness by Drinking Fresh Ginger Tea</title><link>http://kopepasah.com/coping-with-sickness-by-drinking-fresh-ginger-tea/</link> <comments>http://kopepasah.com/coping-with-sickness-by-drinking-fresh-ginger-tea/#comments</comments> <pubDate>Thu, 02 Feb 2012 04:44:54 +0000</pubDate> <dc:creator>Justin Kopepasah</dc:creator> <category><![CDATA[Food]]></category> <category><![CDATA[ginger]]></category> <category><![CDATA[sickness]]></category> <category><![CDATA[tea]]></category><guid
isPermaLink="false">http://kopepasah.com/?p=3232</guid> <description><![CDATA[Over the past few days I&#8217;ve been quite sick. Sore throat&#8230; cough&#8230; headache and earache&#8230; sickness sucks. I did all the normal things: rest, medicate, rest, sweat, bathe, et cetera. However, these things did little to restore my energy. It was energy that I lacked the most during this illness. Often times I would stand [...]]]></description> <content:encoded><![CDATA[<p>Over the past few days I&#8217;ve been quite sick. Sore throat&#8230; cough&#8230; headache and earache&#8230; sickness sucks.</p><p>I did all the normal things: rest, medicate, rest, sweat, bathe, et cetera. However, these things did little to restore my energy. It was energy that I lacked the most during this illness. Often times I would stand for a mere half hour and suddenly feel as if I was going to faint. I spent most of my days laying in bed. Too tired to type, yet too rustled to sleep.</p><p>Good thing I had Netflix and Hulu.</p><p>What is even more important is the food I ate. Fresh fruits and vegetables, whole grains and lean meats (pretty much the normal meal for me). In addition to all of this, there is a special remedy that my wife introduced to me when we first met: Ginger Tea.</p><p><span
id="more-3232"></span></p><p>No, not that powder stuff you buy at the store. Real ginger tea. Freshly chopped ginger slowly simmered over low heat with just a tiny bit of honey soothes all the woes of sickness.</p><p>If you do not know how to make fresh ginger tea, the recipe is quite simple.</p><h3>What you need:</h3><ul><li>A couple large pieces of ginger.</li><li>Honey</li></ul><h3>What to do:</h3><ol><li>Peel the ginger as if it were a potato.<a
href="http://kopepasah.com/wp-content/uploads/2012/02/peel-ginger-like-a-potato.jpg"><img
src="http://kopepasah.com/wp-content/uploads/2012/02/peel-ginger-like-a-potato-1024x768.jpg" alt="" title="peel ginger like a potato" width="1024" height="768" class="alignnone size-large wp-image-3242" /></a></li><li>Chop the ginger into thin slices.<a
href="http://kopepasah.com/wp-content/uploads/2012/02/finely-chop-the-ginger.jpg"><img
src="http://kopepasah.com/wp-content/uploads/2012/02/finely-chop-the-ginger-1024x768.jpg" alt="" title="finely chop the ginger" width="1024" height="768" class="alignnone size-large wp-image-3240" /></a></li><li>Put the slices into a medium size pot (depending on the amount of ginger).</li><li>Fill the pot with water (leave about an inch of room).</li><li>Let the water simmer on low to medium-low heat for about 20-30 minutes.<a
href="http://kopepasah.com/wp-content/uploads/2012/02/slowly-simmer-ginger-over-low-heat.jpg"><img
src="http://kopepasah.com/wp-content/uploads/2012/02/slowly-simmer-ginger-over-low-heat-1024x768.jpg" alt="" title="slowly simmer ginger over low heat" width="1024" height="768" class="alignnone size-large wp-image-3241" /></a></li><li>Remove from heat and spoon into a mug</li><li>Add honey to taste and enjoy!<a
href="http://kopepasah.com/wp-content/uploads/2012/02/delicious-ginger-tea.jpg"><img
src="http://kopepasah.com/wp-content/uploads/2012/02/delicious-ginger-tea.jpg" alt="" title="delicious ginger tea" width="1024" height="768" class="alignnone size-full wp-image-3245" /></a></li></ol><p>That&#8217;s pretty much it. Hope you enjoy your ginger tea!</p> ]]></content:encoded> <wfw:commentRss>http://kopepasah.com/coping-with-sickness-by-drinking-fresh-ginger-tea/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Cool Cisco Advertisement on Wired.com</title><link>http://kopepasah.com/cool-cisco-advertisement-on-wired-com/</link> <comments>http://kopepasah.com/cool-cisco-advertisement-on-wired-com/#comments</comments> <pubDate>Wed, 25 Jan 2012 21:53:20 +0000</pubDate> <dc:creator>Justin Kopepasah</dc:creator> <category><![CDATA[Advertisement]]></category> <category><![CDATA[digital]]></category> <category><![CDATA[news]]></category> <category><![CDATA[youtube]]></category><guid
isPermaLink="false">http://kopepasah.com/?p=3228</guid> <description><![CDATA[Have you visited Wired.com today? There is a pretty cool advertisement from Cisco. Just incase you miss it, here is a video. Having trouble viewing the video? Try watching in a colorbox or on its YouTube page]]></description> <content:encoded><![CDATA[<p>Have you visited <a
href="http://wired.com" title="Wired" target="_blank">Wired.com</a> today? There is a pretty cool advertisement from <a
href="http://gobuild.cisco.com/view/manufacturing/?POSITION=3rd+party+banner&#038;COUNTRY_SITE=us&#038;CAMPAIGN=hn+built+for&#038;CREATIVE=CS_Assembly_Lines&#038;REFERRING_SITE=Wired&#038;DC_CID=46254423&#038;DC_PID=75979012&#038;DC_AID=252354444#/view/manufacturing" title="Cisco Builder for Manufacturing" target="_blank">Cisco</a>. Just incase you miss it, here is a video.</p><div
class="custom_video_embeds"><iframe
class="yt_embed_video" src="http://www.youtube.com/embed/y8Jjuw2bFZI?wmode=transparent&amp;hd=1" frameborder="0" allowfullscreen></iframe><p
class="yt_embed_extras">Having trouble viewing the video? Try watching in a <a
class="yt_colorbox" href="http://www.youtube.com/embed/y8Jjuw2bFZI?rel=0" title="Pretty cool Cisco advertisement on Wired.com">colorbox</a> or on its <a
class="colorbox" href="http://www.youtube.com/watch?v=y8Jjuw2bFZI" title="Pretty cool Cisco advertisement on Wired.com" target="_blank">YouTube page</a></p></div> ]]></content:encoded> <wfw:commentRss>http://kopepasah.com/cool-cisco-advertisement-on-wired-com/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Brisk Star Wars: Yoda vs. Darth Maul</title><link>http://kopepasah.com/brisk-star-wars-yoda-vs-darth-maul/</link> <comments>http://kopepasah.com/brisk-star-wars-yoda-vs-darth-maul/#comments</comments> <pubDate>Wed, 25 Jan 2012 17:12:04 +0000</pubDate> <dc:creator>Justin Kopepasah</dc:creator> <category><![CDATA[Advertisement]]></category><guid
isPermaLink="false">http://kopepasah.com/?p=3220</guid> <description><![CDATA[This ad by Lipton is awesome. I simply had to share it here. Having trouble viewing the video? Try watching in a colorbox or on its YouTube page]]></description> <content:encoded><![CDATA[<p>This ad by Lipton is awesome. I simply had to share it here.</p><div
class="custom_video_embeds"><iframe
class="yt_embed_video" src="http://www.youtube.com/embed/LwabxgoSGZY?wmode=transparent&amp;hd=1" frameborder="0" allowfullscreen></iframe><p
class="yt_embed_extras">Having trouble viewing the video? Try watching in a <a
class="yt_colorbox" href="http://www.youtube.com/embed/LwabxgoSGZY?rel=0" title="Brisk Star Wars: Yoda vs. Darth Maul">colorbox</a> or on its <a
class="colorbox" href="http://www.youtube.com/watch?v=LwabxgoSGZY" title="Brisk Star Wars: Yoda vs. Darth Maul" target="_blank">YouTube page</a></p></div> ]]></content:encoded> <wfw:commentRss>http://kopepasah.com/brisk-star-wars-yoda-vs-darth-maul/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Extensions Vs. Add-Ons: What is in a name?</title><link>http://kopepasah.com/extensions-vs-add-ons-what-is-in-a-name/</link> <comments>http://kopepasah.com/extensions-vs-add-ons-what-is-in-a-name/#comments</comments> <pubDate>Tue, 24 Jan 2012 03:40:05 +0000</pubDate> <dc:creator>Justin Kopepasah</dc:creator> <category><![CDATA[Web]]></category> <category><![CDATA[digital]]></category> <category><![CDATA[features]]></category> <category><![CDATA[product]]></category><guid
isPermaLink="false">http://kopepasah.com/?p=3183</guid> <description><![CDATA[Yesterday Carl Hancock (@carlhancock) asked the question on twitter of whether or not he should rename Gravity Forms &#8220;Add-Ons&#8221; to &#8220;Extensions.&#8221; Here is the actual tweet: Although my first thought was whether or not he was charging for the item, I started to think more about what it meant then names extension and add-on mean [...]]]></description> <content:encoded><![CDATA[<p>Yesterday Carl Hancock (@carlhancock) asked the question on twitter of whether or not he should rename <a
href="http://kopepasah.com/recs/gravityforms/" title="Gravity Forms" target="_blank">Gravity Forms</a> &#8220;Add-Ons&#8221; to &#8220;Extensions.&#8221; Here is the actual tweet:</p><blockquote
class="twitter-tweet"><p>Should Gravity Forms rename it's Add-Ons to Extensions? Which term do you prefer?</p>&mdash; Carl Hancock (@carlhancock) <a
href="https://twitter.com/carlhancock/status/161640516725899264" data-datetime="2012-01-24T02:44:36+00:00">January 24, 2012</a></blockquote><script src="//platform.twitter.com/widgets.js" charset="utf-8"></script><p>Although my first thought was whether or not he was charging for the item, I started to think more about what it meant then names extension and add-on mean to me. As a marketer, my thoughts quickly shifted to an actual physical product and how it relates extensions and add-ons.</p><p><span
id="more-3183"></span></p><h3 id="physical-product-comparison">Physical Product Comparison</h3><p>For our example, let&#8217;s use the various models of a <a
href="http://automobiles.honda.com/civic-coupe/price.aspx" title="Honda Civic Coupe" target="_blank">Honda Civic Coupe</a>. The Civic starts at its very base as the DX model. This model includes all the basic feature of a modern automobile (air bags, ABS, tire pressure monitors, et cetera). A step up from the DX model is the LX model which <strong>extends</strong> upon the features of the DX model by providing extra options (USB Audio Interface, Air Conditioning with Air-Filtration System, et cetera) included within the core features of that model.</p><p>The Civic goes even further to provide two more models (EX &#038; EX-L) which extend more upon the base model (DX) by providing even more options within its core. So, in my opinion, extensions are found within the core product and add value that most customers are willing to pay extra for if they desire those feature.</p><p>In contrast, <strong>add-ons</strong> are features not included within the core product. Expanding on our above example, one can easily find add-ons for the Honda Civic. These add-ons can be provided by the core company (Honda), or by external companies. For example, just think of all the accessories (body kits, stylish hoods, nitrous, et cetera) that one can purchase and add-on to the Civic. These add-ons not only change the value of the car, but can also give it better performance and style.</p><h3 id="relation-to-digital-products">Relation to Digital Products</h3><p>How does all this relate to digital products like WordPress <a
href="http://kopepasah.com/recs/ithemes-theme-store/" title="iThemes – Theme Store" target="_blank">themes</a> or <a
href="http://kopepasah.com/recs/pluginbuddy-com-wordpress-plugins/" title="PluginBuddy.com – WordPress Plugins" target="_blank">plugins</a>? After all, physical and digital products are not one and the same. However, the promotion and features of physical and digital products can be comparable. Expanding on out above example of the Civic, let&#8217;s say we have a digital product and included in the product are various features that not every customer will find useful. Features that could possibly be considered extensions, as long as they are included within the core product.</p><p>If something is not going to be included within the core product, it should be considered an add-on. Why? Because it requires some extra work or activation by the consumer. In essence, the user is required to make and additional (add-on) effort to use the product.</p><h3 id="article-conclusion">Conclusion</h3><p>To sum up, an extension is something within the core product (even if there are several models of the product) and an add-on is something that requires and additional effort from the customer in order to use. Although these thoughts are merely opinions, this is how I view the use of extensions and add-ons work in the digital realm. I am sure that everyone has a different opinion and I am anxious to hear yours.</p> ]]></content:encoded> <wfw:commentRss>http://kopepasah.com/extensions-vs-add-ons-what-is-in-a-name/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Custom Related Posts Using WordPress Tags or Taxonomies</title><link>http://kopepasah.com/tuts/custom-related-posts-using-wordpress-tags-or-taxonomies/</link> <comments>http://kopepasah.com/tuts/custom-related-posts-using-wordpress-tags-or-taxonomies/#comments</comments> <pubDate>Fri, 20 Jan 2012 20:39:17 +0000</pubDate> <dc:creator>Justin Kopepasah</dc:creator> <guid
isPermaLink="false">http://kopepasah.com/?post_type=tutorials&#038;p=3141</guid> <description><![CDATA[I am sure most of you are aware of all the related posts plugins for WordPress. After all, creating a plugin for related posts is quite simple. But what if you are like me and do not like using plugins because of the potential security risk? There is an easy solution. Finding Related Posts There [...]]]></description> <content:encoded><![CDATA[<p>I am sure most of you are aware of all the <a
title="Best Related Posts Plugins" href="http://www.mattcutts.com/blog/wordpress-plugin-related-posts/" target="_blank">related posts plugins</a> for WordPress. After all, creating a <a
title="PluginBuddy Developer Suite" href="http://kopepasah.com/recs/pluginbuddy-developer-suite/" target="_blank">plugin</a> for related posts is quite simple. But what if you are like me and do not like using plugins because of the potential <a
title="Choosing an Effective Password" href="http://kopepasah.com/unfiled/choosing-an-effective-password/" target="_blank">security</a> risk? There is an easy solution.</p><p><span
id="more-3141"></span></p><h3 if="finding-related-posts">Finding Related Posts</h3><p>There are a few different ways to compare and relate posts within WordPress. The most efficient way is to use tags or custom taxonomies for custom post types (if you are <a
href="http://www.problogger.net/archives/2007/09/27/using-categories-and-tags-effectively-on-your-blog/" target="_blank">using them correctly</a>). We do this by finding the tags in the current post, comparing those with posts that using the same tags and listing those posts.</p><p>Enough with the small talk, let&#8217;s get started.</p><h3 id="where-to-add-code">Where to add the code</h3><p>We are going to add this code within the footer of the article for single posts. If you are using the twentyeleven theme, the file is content-single.php and the syntax should look like this:</p><pre class="brush: xml; highlight: [9]; title: ; notranslate">
&lt;article class=&quot;post hentry&quot;&gt;
	&lt;header class=&quot;entry-header&quot;&gt;
		&lt;!-- your header --&gt;
	&lt;/header&gt;
	&lt;div class=&quot;entry-content&quot;&gt;
		&lt;!-- your content --&gt;
	&lt;/div&gt;
	&lt;footer class=&quot;entry-meta&quot;&gt;
		&lt;!-- ADD THE CODE HERE --&gt;
	&lt;/footer&gt;
&lt;/article&gt;
</pre><p>Once you&#8217;ve decided on the location for your related posts, we need to open up the code first by checking to see if we are on the an actual posts page. We do so by checking the post type.</p><pre class="brush: php; title: ; notranslate">
if ( 'post' == get_post_type() ) {

}
</pre><p>You don&#8217;t necessarily need to do this, but I use my content-single.php for different post types, so I like to check. Now we are ready to start with the fun stuff.</p><h3 id="finding-the-tags-or-taxonomies">Finding the Tags or Taxonomies</h3><p>For for post tags, we are going to use the standard wp_get_post_tags() function in conjunction with the post ID. For custom post types and taxonomies, you will need to use the wp_get_post_terms() function, but more on that later.</p><pre class="brush: php; highlight: [2]; title: ; notranslate">
if ( 'post' == get_post_type() ) {
	$taxs = wp_get_post_tags( $post-&gt;ID );
}
</pre><h3>Checking if Tags Exist and Listing those Tags in an Array</h3><p>Once we have some tags, we need to first check if they exist and then break them out in an array. We do this by opening an if statement and then an empty array. Once we have the empty array, we will find each individual term and list it within the array. The addition to this code does just that:</p><pre class="brush: php; highlight: [0,3,4,5,6]; title: ; notranslate">
if ( 'post' == get_post_type() ) {
	$taxs = wp_get_post_tags( $post-&gt;ID );
	if ( $taxs ) {
		$tax_ids = array();
		foreach( $taxs as $individual_tax ) $tax_ids[] = $individual_tax-&gt;term_id;
	}
}
</pre><h3 id="creating-a-new-query">Creating a New Query</h3><p>Now that we have the information we need in an array that we can pass through a query, we can create a query that pulls <a
title="Customizing Rob Marsh’s Post Plugins" href="http://kopepasah.com/unfiled/custom-post-plugins/" target="_blank">related posts</a> based on similar tags. I assume that you are familiar with the query and this next part should make perfect sense:</p><pre class="brush: php; highlight: [7,8,9,10,11,12,14]; title: ; notranslate">
if ( 'post' == get_post_type() ) {
	$taxs = wp_get_post_tags( $post-&gt;ID );
	if ( $taxs ) {
		$tax_ids = array();
		foreach( $taxs as $individual_tax ) $tax_ids[] = $individual_tax-&gt;term_id;

		$args = array(
			'tag__in'	 			=&gt; $tax_ids,
			'post__not_in' 			=&gt; array( $post-&gt;ID ),
			'showposts'				=&gt; 5,
			'ignore_sticky_posts'	=&gt; 1
		);

		$my_query = new wp_query( $args );

	}
}
</pre><p>Essentially we are calling for posts with certain tags, excluding current post, showing five posts and ignoring sticky posts.</p><h3 id="listing-the-content">Listing the Content</h3><p>No that we have our new query, we can list our results quite easily.</p><pre class="brush: php; highlight: [16,17,18,19,20,21,22,23,24,25,26,27,28,29,31]; title: ; notranslate">
if ( 'post' == get_post_type() ) {
	$taxs = wp_get_post_tags( $post-&gt;ID );
	if ( $taxs ) {
		$tax_ids = array();
		foreach( $taxs as $individual_tax ) $tax_ids[] = $individual_tax-&gt;term_id;

		$args = array(
			'tag__in'	 			=&gt; $tax_ids,
			'post__not_in' 			=&gt; array( $post-&gt;ID ),
			'showposts'				=&gt; 5,
			'ignore_sticky_posts'	=&gt; 1
		);

		$my_query = new wp_query( $args );

		if( $my_query-&gt;have_posts() ) {

			echo '&lt;ul&gt;';

			while ( $my_query-&gt;have_posts() ) :
				$my_query-&gt;the_post();

				echo '&lt;li&gt;&lt;a href=&quot;' . the_permalink() . '&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to ' . the_title_attribute() . '&quot;&gt;' . the_title() . ' &lt;/a&gt;&lt;/li&gt;';

			endwhile;

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

		}

		wp_reset_query();

	}
}
</pre><p>Of course we need to reset the query when we are done.</p><h3 id="wraping-it-up">Wrap Up</h3><p>Using the above example code, you should be able to create your own related posts and not have to worry about using other plugins any longer. Here is what this looks like in action (with some styles applied).</p><p><a
href="http://kopepasah.com/wp-content/uploads/2012/01/custom-related-posts-using-tags-and-taxonomies.png"><img
class="alignnone size-full wp-image-3156" title="custom related posts using tags and taxonomies" src="http://kopepasah.com/wp-content/uploads/2012/01/custom-related-posts-using-tags-and-taxonomies.png" alt="" width="664" height="172" /></a></p><h4 id="using-custom-taxonomies">Using Custom Taxonomies</h4><p>Remember when I mentioned using custom post types and custom taxonomies? You can do the same here, but you&#8217;ll need to change a few elements. For instance, you will need to check which custom post type you are using and get the proper terms. You can do this by changing <code>'post' == get_post_type()</code> to <code>'your_post_type' == get_post_type()</code> and <code>wp_get_post_tags( $post-&gt;ID )</code> to <code>wp_get_post_terms( $post-&gt;ID, 'your_custom_taxonomy' )</code>. In addition, you will need to modify the <code>$args</code> of the query. Your new query should look something like this:</p><pre class="brush: php; title: ; notranslate">
$args = array(
	'tax_query' =&gt; array(
		array(
			'taxonomy'  =&gt; 'your_custom_taxonomy',
			'terms' 	=&gt; $tax_ids,
			'operator'  =&gt; 'IN'
		)
	),
	'post__not_in' 			=&gt; array( $post-&gt;ID ),
	'posts_per_page' 		=&gt; 3,
	'ignore_sticky_posts' 	=&gt; 1
);
</pre><p>This will output your new results for your custom post types.</p><p>Do you use a plugin for finding related posts? Do you think there is a better method for finding related posts? I am anxious to hear your thoughts.</p> ]]></content:encoded> <wfw:commentRss>http://kopepasah.com/tuts/custom-related-posts-using-wordpress-tags-or-taxonomies/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Celebrating my Moms Birthday at Redrock Canyon Grill</title><link>http://kopepasah.com/celebrating-my-moms-birthday-at-redrock-canyon-grill/</link> <comments>http://kopepasah.com/celebrating-my-moms-birthday-at-redrock-canyon-grill/#comments</comments> <pubDate>Mon, 16 Jan 2012 17:20:43 +0000</pubDate> <dc:creator>Justin Kopepasah</dc:creator> <category><![CDATA[Food]]></category> <category><![CDATA[birthday]]></category> <category><![CDATA[burger]]></category> <category><![CDATA[pork]]></category> <category><![CDATA[quesadillas]]></category> <category><![CDATA[restaurants]]></category><guid
isPermaLink="false">http://kopepasah.com/?p=3123</guid> <description><![CDATA[I&#8217;ve visited Redrock several time in the past few years. Everything about the place is relaxing and it is the perfect place to take your mom for her birthday. No, I&#8217;m not here to talk about the conversation or the time spent with my family, I just want to mention the delicious food we ate. [...]]]></description> <content:encoded><![CDATA[<p>I&#8217;ve visited Redrock several time in the past few years. Everything about the place is relaxing and it is the perfect place to take your mom for her birthday. No, I&#8217;m not here to talk about the conversation or the time spent with my family, I just want to mention the delicious food we ate.</p><p>Based on the location and look of the restaurant, one could easily assume that the restaurant is expensive; however, some of the best items on the menu cost you less than $10. Enough talk, I&#8217;ll let the pictures do the rest.</p><p><span
id="more-3123"></span></p><h3>Cheeseburger ($8)</h3><blockquote><p>Fresh ground tenderloin, monterey jack and cheddar cheese, lettuce, tomato and onion on a hosted house bun.</p></blockquote><p><a
href="http://kopepasah.com/wp-content/uploads/2012/01/red-rock-burger.jpg"><img
class="alignnone size-large wp-image-3124" title="red rock burger" src="http://kopepasah.com/wp-content/uploads/2012/01/red-rock-burger-1024x768.jpg" alt="" width="1024" height="768" /></a></p><h3>Mustard Crusted Pork Chop ($10)</h3><blockquote><p>Center cut pork chop, hardwood grilled and topped with sweet onion-apple compote. Served with redskin mashed potatoes and seasonal vegetables.</p></blockquote><p><a
href="http://kopepasah.com/wp-content/uploads/2012/01/red-rock-pork-chop.jpg"><img
class="alignnone size-large wp-image-3125" title="red rock pork chop" src="http://kopepasah.com/wp-content/uploads/2012/01/red-rock-pork-chop-1024x768.jpg" alt="" width="1024" height="768" /></a></p><h3>Redrock Sunday Feature &#8211; Quesadillas ($10)</h3><p><a
href="http://kopepasah.com/wp-content/uploads/2012/01/red-rock-quesadillas.jpg"><img
class="alignnone size-large wp-image-3126" title="red rock quesadillas" src="http://kopepasah.com/wp-content/uploads/2012/01/red-rock-quesadillas-1024x768.jpg" alt="" width="1024" height="768" /></a></p> ]]></content:encoded> <wfw:commentRss>http://kopepasah.com/celebrating-my-moms-birthday-at-redrock-canyon-grill/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Nothing Beats Beef Noodle Soup After A Late Night of Dancing</title><link>http://kopepasah.com/nothing-beats-beef-noodle-soup-after-a-late-night-of-dancing/</link> <comments>http://kopepasah.com/nothing-beats-beef-noodle-soup-after-a-late-night-of-dancing/#comments</comments> <pubDate>Mon, 16 Jan 2012 05:07:41 +0000</pubDate> <dc:creator>Justin Kopepasah</dc:creator> <category><![CDATA[Food]]></category> <category><![CDATA[beef]]></category> <category><![CDATA[dancing]]></category> <category><![CDATA[noodle]]></category> <category><![CDATA[restaurants]]></category><guid
isPermaLink="false">http://kopepasah.com/?p=3117</guid> <description><![CDATA[Most people that know me know that I love to dance. More specifically, I love to salsa dance. There is a salsa party almost every weekend here in Oklahoma, but there is only one place I dance at ritually: International Dance Studio (iDance). Just like any other person, I enjoy spending time with friends sharing [...]]]></description> <content:encoded><![CDATA[<p>Most people that know me know that I love to dance. More specifically, I love to <a
title="Salsa Dancing and the Austin Salsa Congress" href="http://kopepasah.com/unfiled/austin-salsa-congress/">salsa dance</a>. There is a salsa party almost every weekend here in Oklahoma, but there is only one place I dance at ritually: International Dance Studio (<a
title="International Dance Studio" href="http://idancestudio.com" target="_blank">iDance</a>).</p><p>Just like any other person, I enjoy spending time with friends sharing stories (and drinks). Even though we (my wife and I) may say we are leaving early, most of the time we end up staying late. This is fine for me, but my wife has a difficult time falling asleep and like to go for a walk on Sunday morning.</p><p>Nevertheless, we do get up in the morning and go for a (groggy) walk. Almost every time we end up grabbing a small bowl of noodles from a Phó <a
title="Places to Eat When Visiting Oklahoma City" href="http://kopepasah.com/food/places-to-eat-when-visiting-oklahoma-city/" target="_blank">restaurant</a> near by and I would like to say that nothing beats a hot beef noodle soup after a late night of dancing.</p><p><a
href="http://kopepasah.com/wp-content/uploads/2012/01/beef-noodle-soup.jpg"><img
class=" wp-image-3118 alignnone" title="beef noodle soup" src="http://kopepasah.com/wp-content/uploads/2012/01/beef-noodle-soup-1024x768.jpg" alt="" width="1024" height="768" /></a></p><p>From the small slivers of steak to the fresh cut jalapeños, every bite sends a smooth awakening through my body. I can easily say that the walk home is better than the walk to the restaurant.</p><p>I love dancing and I love early morning walks with my wife. Adding some beef noodles to the mix just makes both experiences that much better.</p> ]]></content:encoded> <wfw:commentRss>http://kopepasah.com/nothing-beats-beef-noodle-soup-after-a-late-night-of-dancing/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Visiting the Texas State Capitol</title><link>http://kopepasah.com/visiting-the-texas-state-capitol/</link> <comments>http://kopepasah.com/visiting-the-texas-state-capitol/#comments</comments> <pubDate>Fri, 13 Jan 2012 15:29:34 +0000</pubDate> <dc:creator>Justin Kopepasah</dc:creator> <category><![CDATA[Traveling]]></category> <category><![CDATA[austin]]></category> <category><![CDATA[capitol]]></category> <category><![CDATA[texas]]></category><guid
isPermaLink="false">http://kopepasah.com/?p=3087</guid> <description><![CDATA[Recently we visited Austin and had the pleasure of taking a tour of the Texas State Capitol. Here are some of my favorite photos.]]></description> <content:encoded><![CDATA[<p>Recently we visited Austin and had the pleasure of taking a tour of the <a
title="Texas State Capitol" href="http://www.flickr.com/photos/kopepasah/sets/72157628769594465/" target="_blank">Texas State Capitol</a>. Here are some of my favorite photos.</p><p><a
href="http://kopepasah.com/wp-content/uploads/2012/01/6656829447_1d500f27ba_b.jpg"><img
class=" wp-image-3088 alignnone" title="6656829447_1d500f27ba_b" src="http://kopepasah.com/wp-content/uploads/2012/01/6656829447_1d500f27ba_b.jpg" alt="" width="680" height="1024" /></a></p><p><span
id="more-3087"></span></p><p><a
href="http://kopepasah.com/wp-content/uploads/2012/01/6656829853_2ee4259e3b_b.jpg"><img
class=" wp-image-3089 alignnone" title="6656829853_2ee4259e3b_b" src="http://kopepasah.com/wp-content/uploads/2012/01/6656829853_2ee4259e3b_b.jpg" alt="" width="1024" height="680" /></a></p><p><a
href="http://kopepasah.com/wp-content/uploads/2012/01/6656830177_84cf42fa4d_b.jpg"><img
class=" wp-image-3090 alignnone" title="6656830177_84cf42fa4d_b" src="http://kopepasah.com/wp-content/uploads/2012/01/6656830177_84cf42fa4d_b.jpg" alt="" width="1024" height="680" /></a></p><p><a
href="http://kopepasah.com/wp-content/uploads/2012/01/6656834513_8a8f5d54ff_b.jpg"><img
class=" wp-image-3091 alignnone" title="6656834513_8a8f5d54ff_b" src="http://kopepasah.com/wp-content/uploads/2012/01/6656834513_8a8f5d54ff_b.jpg" alt="" width="1024" height="680" /></a></p><p><a
href="http://kopepasah.com/wp-content/uploads/2012/01/6656835223_88ce84f20d_b.jpg"><img
class=" wp-image-3092 alignnone" title="6656835223_88ce84f20d_b" src="http://kopepasah.com/wp-content/uploads/2012/01/6656835223_88ce84f20d_b.jpg" alt="" width="1024" height="680" /></a></p><p><a
href="http://kopepasah.com/wp-content/uploads/2012/01/6656836121_82dc260069_b.jpg"><img
class=" wp-image-3093 alignnone" title="6656836121_82dc260069_b" src="http://kopepasah.com/wp-content/uploads/2012/01/6656836121_82dc260069_b.jpg" alt="" width="1024" height="680" /></a></p><p><a
href="http://kopepasah.com/wp-content/uploads/2012/01/6656836747_c28e6078ac_b.jpg"><img
class=" wp-image-3094 alignnone" title="6656836747_c28e6078ac_b" src="http://kopepasah.com/wp-content/uploads/2012/01/6656836747_c28e6078ac_b.jpg" alt="" width="680" height="1024" /></a></p><p><a
href="http://kopepasah.com/wp-content/uploads/2012/01/6656839439_f6abee7f7d_b.jpg"><img
class=" wp-image-3095 alignnone" title="6656839439_f6abee7f7d_b" src="http://kopepasah.com/wp-content/uploads/2012/01/6656839439_f6abee7f7d_b.jpg" alt="" width="1024" height="680" /></a></p> ]]></content:encoded> <wfw:commentRss>http://kopepasah.com/visiting-the-texas-state-capitol/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: kopepasah.com @ 2012-02-22 20:55:58 -->
