<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress &#8250; Support Topic: SingleCat plugin</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Topic: SingleCat plugin</description>
<language>en</language>
<pubDate>Tue, 24 Nov 2009 10:10:14 +0000</pubDate>

<item>
<title>kojisin on "SingleCat plugin"</title>
<link>http://wordpress.org/support/topic/262736#post-1237304</link>
<pubDate>Tue, 06 Oct 2009 17:16:53 +0000</pubDate>
<dc:creator>kojisin</dc:creator>
<guid isPermaLink="false">1237304@http://wordpress.org/support/</guid>
<description>&#60;p&#62;i came across the same problem.&#60;/p&#62;
&#60;p&#62;i believe the problem is, this plug doesn't follow the rule below.&#60;br /&#62;
&#60;a href=&#34;http://codex.wordpress.org/Shortcode_API#Output&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Shortcode_API#Output&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;following is a rubbish maybe, but works for me.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;--- singlecat/singlecat.php.orig        2009-10-06 21:46:00.000000000 +0900
+++ singlecat/singlecat.php     2009-10-07 02:05:26.000000000 +0900
@@ -11,12 +11,14 @@
 //Actions
 add_shortcode(&#38;#39;singlecat&#38;#39;, &#38;#39;sc_shortcode&#38;#39;);

+
 function sc_shortcode($attr) {

     $level = $attr[&#38;#39;view&#38;#39;];
     $cat = $attr[&#38;#39;cat&#38;#39;];
     $posts = $attr[&#38;#39;posts&#38;#39;];
     $view = 0;
+    $output = &#38;quot;&#38;quot;;

     if($level != &#38;quot;public&#38;quot; &#38;amp;&#38;amp; $level != &#38;quot;private&#38;quot;):
         $level = &#38;quot;private&#38;quot;;
@@ -41,31 +43,31 @@
       $wp_query= null;
       $wp_query = new WP_Query();
       $wp_query-&#38;gt;query(&#38;#39;category_name=&#38;#39;.$catname-&#38;gt;name.&#38;#39;&#38;amp;showposts=&#38;#39;.$posts.&#38;#39;&#38;amp;paged=&#38;#39;.$paged);
-
-      while ($wp_query-&#38;gt;have_posts()) : $wp_query-&#38;gt;the_post(); ?&#38;gt;
+
+      while ($wp_query-&#38;gt;have_posts()) : $wp_query-&#38;gt;the_post();
+        $output .= &#38;#39;

         &#38;lt;div class=&#38;quot;post&#38;quot;&#38;gt;

-          &#38;lt;h2&#38;gt;&#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink(); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/h2&#38;gt;
+          &#38;lt;h2&#38;gt;&#38;lt;a href=&#38;quot;&#38;#39;.apply_filters(&#38;#39;the_permalink&#38;#39;, get_permalink()).&#38;#39;&#38;quot;&#38;gt;&#38;#39;.get_the_title().&#38;#39;&#38;lt;/a&#38;gt;&#38;lt;/h2&#38;gt;

-          &#38;lt;small&#38;gt;&#38;lt;?php the_time(&#38;#39;F jS, Y&#38;#39;); ?&#38;gt;&#38;lt;/small&#38;gt;
+          &#38;lt;small&#38;gt;&#38;#39;.apply_filters(&#38;#39;the_time&#38;#39;, get_the_time( &#38;#39;F jS, Y&#38;#39; ), &#38;#39;F jS, Y&#38;#39;).&#38;#39;&#38;lt;/small&#38;gt;

           &#38;lt;div class=&#38;quot;entry&#38;quot;&#38;gt;
-            &#38;lt;?php the_content(); ?&#38;gt;
+            &#38;#39;.str_replace(&#38;#39;]]&#38;gt;&#38;#39;, &#38;#39;]]&#38;gt;&#38;#39;, apply_filters(&#38;#39;the_content&#38;#39;, get_the_content())).&#38;#39;
           &#38;lt;/div&#38;gt;

-          &#38;lt;p class=&#38;quot;postmetadata&#38;quot;&#38;gt;Posted in &#38;lt;?php the_category(&#38;#39;, &#38;#39;); ?&#38;gt;&#38;lt;/p&#38;gt;
-
-        &#38;lt;/div&#38;gt;
+        &#38;lt;/div&#38;gt;&#38;#39;;

-      &#38;lt;?php endwhile; ?&#38;gt;
+      endwhile;

+      $output .= &#38;#39;
       &#38;lt;div class=&#38;quot;navigation&#38;quot;&#38;gt;
-        &#38;lt;div class=&#38;quot;alignleft&#38;quot;&#38;gt;&#38;lt;?php previous_posts_link(&#38;#39;&#38;amp;laquo; Previous&#38;#39;) ?&#38;gt;&#38;lt;/div&#38;gt;
-        &#38;lt;div class=&#38;quot;alignright&#38;quot;&#38;gt;&#38;lt;?php next_posts_link(&#38;#39;More &#38;amp;raquo;&#38;#39;) ?&#38;gt;&#38;lt;/div&#38;gt;
-      &#38;lt;/div&#38;gt;
+        &#38;lt;div class=&#38;quot;alignleft&#38;quot;&#38;gt;&#38;#39;._adjacent_post_link(&#38;#39;&#38;amp;laquo; Previous&#38;#39;, &#38;#39;%title&#38;#39;, false, &#38;#39;&#38;#39;, true).&#38;#39;&#38;lt;/div&#38;gt;
+        &#38;lt;div class=&#38;quot;alignright&#38;quot;&#38;gt;&#38;#39;._adjacent_post_link(&#38;#39;More &#38;amp;raquo;&#38;#39;, &#38;#39;%title&#38;#39;, false, &#38;#39;&#38;#39;, false).&#38;#39;&#38;lt;/div&#38;gt;
+      &#38;lt;/div&#38;gt;&#38;#39;;

-      &#38;lt;?php $wp_query = null; $wp_query = $temp;
+      $wp_query = null; $wp_query = $temp;

     else:

@@ -73,6 +75,37 @@

     endif;

+    return $output;
+}
+
+
+// import from wp-includes/link-template.php
+function _adjacent_post_link($format, $link, $in_same_cat = false, $excluded_categories = &#38;#39;&#38;#39;, $previous = true) {
+        if ( $previous &#38;amp;&#38;amp; is_attachment() )
+                $post = &#38;amp; get_post($GLOBALS[&#38;#39;post&#38;#39;]-&#38;gt;post_parent);
+        else
+                $post = get_adjacent_post($in_same_cat, $excluded_categories, $previous);
+
+        if ( !$post )
+                return;
+
+        $title = $post-&#38;gt;post_title;
+
+        if ( empty($post-&#38;gt;post_title) )
+                $title = $previous ? __(&#38;#39;Previous Post&#38;#39;) : __(&#38;#39;Next Post&#38;#39;);
+
+        $title = apply_filters(&#38;#39;the_title&#38;#39;, $title, $post);
+        $date = mysql2date(get_option(&#38;#39;date_format&#38;#39;), $post-&#38;gt;post_date);
+
+        $string = &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39;.get_permalink($post).&#38;#39;&#38;quot;&#38;gt;&#38;#39;;
+        $link = str_replace(&#38;#39;%title&#38;#39;, $title, $link);
+        $link = str_replace(&#38;#39;%date&#38;#39;, $date, $link);
+        $link = $string . $link . &#38;#39;&#38;lt;/a&#38;gt;&#38;#39;;
+
+        $format = str_replace(&#38;#39;%link&#38;#39;, $link, $format);
+
+        $adjacent = $previous ? &#38;#39;previous&#38;#39; : &#38;#39;next&#38;#39;;
+        return apply_filters( &#38;quot;{$adjacent}_post_link&#38;quot;, $format, $link );
 }&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>zacnboat on "SingleCat plugin"</title>
<link>http://wordpress.org/support/topic/262736#post-1099807</link>
<pubDate>Fri, 12 Jun 2009 00:35:30 +0000</pubDate>
<dc:creator>zacnboat</dc:creator>
<guid isPermaLink="false">1099807@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I'm have this same exact issue, and don't see a resolution on here.&#60;/p&#62;
&#60;p&#62;It looks like it's been a month.  Does the creator not monitor queries here?&#60;/p&#62;
&#60;p&#62;MichaelH, that's a great tool, but it doesn't allow for the display of the complete post, just a list.  &#60;/p&#62;
&#60;p&#62;I too want the five most recent complete posts from a specific category to be display below an introduction.  This thing is aweseome, except the posts all show up above my other content on the page.
&#60;/p&#62;</description>
</item>
<item>
<title>MichaelH on "SingleCat plugin"</title>
<link>http://wordpress.org/support/topic/262736#post-1048392</link>
<pubDate>Fri, 17 Apr 2009 12:42:03 +0000</pubDate>
<dc:creator>MichaelH</dc:creator>
<guid isPermaLink="false">1048392@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Might also look at &#60;a href=&#34;http://wordpress.org/extend/plugins/list-category-posts/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/list-category-posts/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>lenaluna on "SingleCat plugin"</title>
<link>http://wordpress.org/support/topic/262736#post-1047661</link>
<pubDate>Thu, 16 Apr 2009 18:08:16 +0000</pubDate>
<dc:creator>lenaluna</dc:creator>
<guid isPermaLink="false">1047661@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I installed SingleCat plugin to be able to insert posts in a page.&#60;br /&#62;
It is working brilliantly, but it always inserts the posts at the top of the page. I would like to be able to have an intro and then put the singlecat shortcode as I tried in my page:&#60;/p&#62;
&#60;p&#62;bla bla bla intro&#60;br /&#62;
&#60;code&#62;[singlecat cat=23 level=private posts=10]&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;thanx much
&#60;/p&#62;</description>
</item>

</channel>
</rss>
