<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to Make Your Own WordPress [Shortcode]</title>
	<atom:link href="http://blogcraving.com/wordpress-shortcode/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogcraving.com/wordpress-shortcode/</link>
	<description>What&#039;s your craving?</description>
	<lastBuildDate>Sat, 21 Jan 2012 23:35:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Wordpress Short Code &#124; Syinnovations</title>
		<link>http://blogcraving.com/wordpress-shortcode/comment-page-1/#comment-3198</link>
		<dc:creator>Wordpress Short Code &#124; Syinnovations</dc:creator>
		<pubDate>Mon, 31 Oct 2011 19:07:48 +0000</pubDate>
		<guid isPermaLink="false">http://blogcraving.com/?p=631#comment-3198</guid>
		<description>[...] Below are links with more details on creating shortcodes and examples. http://codex.wordpress.org/Shortcode_API http://xavisys.com/wordpress-25-shortcodes/ http://blogcraving.com/wordpress-shortcode/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Below are links with more details on creating shortcodes and examples. <a href="http://codex.wordpress.org/Shortcode_API" rel="nofollow">http://codex.wordpress.org/Shortcode_API</a> <a href="http://xavisys.com/wordpress-25-shortcodes/" rel="nofollow">http://xavisys.com/wordpress-25-shortcodes/</a> <a href="http://blogcraving.com/wordpress-shortcode/" rel="nofollow">http://blogcraving.com/wordpress-shortcode/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Crespabs</title>
		<link>http://blogcraving.com/wordpress-shortcode/comment-page-1/#comment-3193</link>
		<dc:creator>Crespabs</dc:creator>
		<pubDate>Thu, 28 Jul 2011 06:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogcraving.com/?p=631#comment-3193</guid>
		<description>Newbie here on wordpress.
I just wanna ask is it possible to make a shortcode that auto populate the platinum seo Meta keywords, Meta descriptions and Title when i post unto my website via email? 
Your idea is very much appreciated... Hope you can enlighten me.
Thanks.
Cres </description>
		<content:encoded><![CDATA[<p>Newbie here on wordpress.<br />
I just wanna ask is it possible to make a shortcode that auto populate the platinum seo Meta keywords, Meta descriptions and Title when i post unto my website via email?<br />
Your idea is very much appreciated&#8230; Hope you can enlighten me.<br />
Thanks.<br />
Cres</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumonbdcox</title>
		<link>http://blogcraving.com/wordpress-shortcode/comment-page-1/#comment-3189</link>
		<dc:creator>Sumonbdcox</dc:creator>
		<pubDate>Sat, 18 Jun 2011 11:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogcraving.com/?p=631#comment-3189</guid>
		<description>thanks...</description>
		<content:encoded><![CDATA[<p>thanks&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to create Wordpress Shortcodes &#124; tutorials blogs</title>
		<link>http://blogcraving.com/wordpress-shortcode/comment-page-1/#comment-3160</link>
		<dc:creator>How to create Wordpress Shortcodes &#124; tutorials blogs</dc:creator>
		<pubDate>Thu, 11 Nov 2010 16:17:22 +0000</pubDate>
		<guid isPermaLink="false">http://blogcraving.com/?p=631#comment-3160</guid>
		<description>[...] progress): WORKING WITH WORDPRESS SHORTCODES Creating a WordPress Shortcode for Youtube Videos How to make your own WordPress Shortcode Integrate some Adsense Ads with [...]</description>
		<content:encoded><![CDATA[<p>[...] progress): WORKING WITH WORDPRESS SHORTCODES Creating a WordPress Shortcode for Youtube Videos How to make your own WordPress Shortcode Integrate some Adsense Ads with [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nathan</title>
		<link>http://blogcraving.com/wordpress-shortcode/comment-page-1/#comment-3150</link>
		<dc:creator>nathan</dc:creator>
		<pubDate>Sun, 26 Sep 2010 16:05:13 +0000</pubDate>
		<guid isPermaLink="false">http://blogcraving.com/?p=631#comment-3150</guid>
		<description>this is great - I was wanting to be able to write some custom html along with some css to control the dynamic content added by the client  - for instance He might want to add video&#039;s to the page while my css knowledge can achieve some border and alignment/floating effects so the videos appear in two or three columns and so forth I really wanted to add some type of custom video player - With the help from psd2css online, that code for the custom player is easily achieved and thus all I have to do know is create the shortcode so that now each video added is placed in a custom frame with custom controls and all the client has to do is copy and paste the video into the html - wait ... that might be tough where would the client be able to change the video after placing the shortcode...????? I&#039;m sure a plugin would be a better route maybe i&#039;ll go that route - guess my research has just begun.</description>
		<content:encoded><![CDATA[<p>this is great &#8211; I was wanting to be able to write some custom html along with some css to control the dynamic content added by the client  &#8211; for instance He might want to add video&#8217;s to the page while my css knowledge can achieve some border and alignment/floating effects so the videos appear in two or three columns and so forth I really wanted to add some type of custom video player &#8211; With the help from psd2css online, that code for the custom player is easily achieved and thus all I have to do know is create the shortcode so that now each video added is placed in a custom frame with custom controls and all the client has to do is copy and paste the video into the html &#8211; wait &#8230; that might be tough where would the client be able to change the video after placing the shortcode&#8230;????? I&#8217;m sure a plugin would be a better route maybe i&#8217;ll go that route &#8211; guess my research has just begun.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nickshor</title>
		<link>http://blogcraving.com/wordpress-shortcode/comment-page-1/#comment-3137</link>
		<dc:creator>Nickshor</dc:creator>
		<pubDate>Sun, 12 Sep 2010 17:54:01 +0000</pubDate>
		<guid isPermaLink="false">http://blogcraving.com/?p=631#comment-3137</guid>
		<description>I put this code in my theme folder into function.custom.php, and call it in the post with shortcode [relatedseries] ... 
but it returns “No related posts found!”
like this: http://screencast.com/t/MjY1ODI3Y

If i add the code in the single.php template it works!

Can you help me with this? How do I make a shortcode from that php script!?

&lt;code&gt;
function series_related() {
	return show_related_here();
}
add_shortcode(&#039;relatedseries&#039;, &#039;series_related&#039;);

function show_related_here() {

//for in the loop, display all &quot;content&quot;, regardless of post_type,
//that have the same custom taxonomy (e.g. genre) terms as the current post
$backup = $post;  // backup the current object
$found_none = &#039;No related posts found!&#039;;
$taxonomy = &#039;seria&#039;;//  e.g. post_tag, category, custom taxonomy
$param_type = &#039;seria&#039;; //  e.g. tag__in, category__in, but genre__in will NOT work
$post_types = get_post_types( array(&#039;public&#039; =&gt; true), &#039;names&#039; );
$tax_args=array(&#039;orderby&#039; =&gt; &#039;none&#039;);
$tags = wp_get_post_terms( $post-&gt;ID , $taxonomy, $tax_args);
if ($tags) {
  foreach ($tags as $tag) {
    $args=array(
      &quot;$param_type&quot; =&gt; $tag-&gt;slug,
      &#039;post__not_in&#039; =&gt; array($post-&gt;ID),
      &#039;post_type&#039; =&gt; $post_types,
      &#039;showposts&#039;=&gt;-1,
      &#039;caller_get_posts&#039;=&gt;1
    );
    $my_query = null;
    $my_query = new WP_Query($args);
    if( $my_query-&gt;have_posts() ) {
      while ($my_query-&gt;have_posts()) : $my_query-&gt;the_post(); ?&gt;


&lt;a href=&quot;&quot; rel=&quot;bookmark&quot; title=&quot;&quot;&gt;&lt;/a&gt;

 test 

        &lt;?php $found_none = &#039;&#039;;
      endwhile;
    }
  }
}
if ($found_none) {
echo $found_none;
}
$post = $backup;  // copy it back
wp_reset_query(); // to use the original query again

}
&lt;/code&gt; 

I post this also on wp forum, here:
http://wordpress.org/support/topic/related-posts-by-custom-taxonomy?replies=12</description>
		<content:encoded><![CDATA[<p>I put this code in my theme folder into function.custom.php, and call it in the post with shortcode [relatedseries] &#8230;<br />
but it returns “No related posts found!”<br />
like this: <a href="http://screencast.com/t/MjY1ODI3Y" rel="nofollow">http://screencast.com/t/MjY1ODI3Y</a></p>
<p>If i add the code in the single.php template it works!</p>
<p>Can you help me with this? How do I make a shortcode from that php script!?</p>
<p><code><br />
function series_related() {<br />
	return show_related_here();<br />
}<br />
add_shortcode('relatedseries', 'series_related');</p>
<p>function show_related_here() {</p>
<p>//for in the loop, display all "content", regardless of post_type,<br />
//that have the same custom taxonomy (e.g. genre) terms as the current post<br />
$backup = $post;  // backup the current object<br />
$found_none = 'No related posts found!';<br />
$taxonomy = 'seria';//  e.g. post_tag, category, custom taxonomy<br />
$param_type = 'seria'; //  e.g. tag__in, category__in, but genre__in will NOT work<br />
$post_types = get_post_types( array('public' =&gt; true), 'names' );<br />
$tax_args=array('orderby' =&gt; 'none');<br />
$tags = wp_get_post_terms( $post-&gt;ID , $taxonomy, $tax_args);<br />
if ($tags) {<br />
  foreach ($tags as $tag) {<br />
    $args=array(<br />
      "$param_type" =&gt; $tag-&gt;slug,<br />
      'post__not_in' =&gt; array($post-&gt;ID),<br />
      'post_type' =&gt; $post_types,<br />
      'showposts'=&gt;-1,<br />
      'caller_get_posts'=&gt;1<br />
    );<br />
    $my_query = null;<br />
    $my_query = new WP_Query($args);<br />
    if( $my_query-&gt;have_posts() ) {<br />
      while ($my_query-&gt;have_posts()) : $my_query-&gt;the_post(); ?&gt;</p>
<p>&lt;a href=&quot;" rel="bookmark" title=""&gt;</p>
<p> test </p>
<p>        &lt;?php $found_none = &#039;&#039;;<br />
      endwhile;<br />
    }<br />
  }<br />
}<br />
if ($found_none) {<br />
echo $found_none;<br />
}<br />
$post = $backup;  // copy it back<br />
wp_reset_query(); // to use the original query again</p>
<p>}<br />
</code> </p>
<p>I post this also on wp forum, here:<br />
<a href="http://wordpress.org/support/topic/related-posts-by-custom-taxonomy?replies=12" rel="nofollow">http://wordpress.org/support/topic/related-posts-by-custom-taxonomy?replies=12</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

