<?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:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
	<title>Latest posts from “UG PicandoCódigo - Foro de programación y software libre” board.</title>
	<description>Latest posts from “UG PicandoCódigo - Foro de programación y software libre” board.</description>
	<link>http://foro.picandocodigo.net/index.php</link>
	
	<lastBuildDate>Sun, 01 Nov 2009 10:50:12 -0600</lastBuildDate>

			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/foropicandocodigo" type="application/rss+xml" /><feedburner:emailServiceId>foropicandocodigo</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
			<dc:creator>BlairH</dc:creator>
			<pubDate>Tue, 17 Nov 2009 04:05:10 -0600</pubDate>
			<guid isPermaLink="false">http://foro.picandocodigo.net/viewtopic.php?f=27&amp;p=1061#p1061</guid>
			<link>http://feedproxy.google.com/~r/foropicandocodigo/~3/dssTob-A4TU/viewtopic.php</link>
			<title>Re: List Category Plugin</title>
			<description>Hey thanks, the plugin is amazing, just whats needed for WP.&lt;br /&gt;
@lzerner thanks for the code modification it displays the post almost exactly how i want,&lt;br /&gt;
how would i get my categories post to only display 5 or 6 lines of each post? Because some pages are extremely long showing the whole post!&lt;br /&gt;
isn't there some code i could insert to make each post like a preview and then have a readmore link somewhere.&lt;br /&gt;
&lt;br /&gt;
Kind regards.&lt;br /&gt;
&lt;br /&gt;
Blair.H&lt;img src="http://feeds.feedburner.com/~r/foropicandocodigo/~4/dssTob-A4TU" height="1" width="1"/&gt;</description>
		<feedburner:origLink>http://foro.picandocodigo.net/viewtopic.php?f=27&amp;p=1061#p1061</feedburner:origLink></item>
			<item>
			<dc:creator>Fernando</dc:creator>
			<pubDate>Mon, 16 Nov 2009 12:13:22 -0600</pubDate>
			<guid isPermaLink="false">http://foro.picandocodigo.net/viewtopic.php?f=27&amp;p=1060#p1060</guid>
			<link>http://feedproxy.google.com/~r/foropicandocodigo/~3/RbIo3YSKThI/viewtopic.php</link>
			<title>Re: List Category Plugin</title>
			<description>Hi, at first I thought including the option to display the content would be unnecessary. But since I´ve had so many requests, and lzerner was kind enough to write the code, I´ll add it to the next version of the plugin.&lt;br /&gt;
&lt;br /&gt;
Thanks for using List Category Posts, and thanks a lot for the code!!&lt;br /&gt;
The plugin is getting better thanks to its users!&lt;br /&gt;
&lt;br /&gt;
Regards&lt;img src="http://feeds.feedburner.com/~r/foropicandocodigo/~4/RbIo3YSKThI" height="1" width="1"/&gt;</description>
		<feedburner:origLink>http://foro.picandocodigo.net/viewtopic.php?f=27&amp;p=1060#p1060</feedburner:origLink></item>
			<item>
			<dc:creator>lzerner</dc:creator>
			<pubDate>Thu, 12 Nov 2009 13:58:24 -0600</pubDate>
			<guid isPermaLink="false">http://foro.picandocodigo.net/viewtopic.php?f=27&amp;p=1059#p1059</guid>
			<link>http://feedproxy.google.com/~r/foropicandocodigo/~3/KIFHRhvKi24/viewtopic.php</link>
			<title>Re: List Category Plugin</title>
			<description>Hello, Ellen.  I am not the author of this wonderful plugin, but a user like you.  I have the same need you describe.  I am also a programmer, so I wrote the enhancement myself and I'm sharing it here with you and the rest of the community of users of this plugin.  I want to be clear that this version is not approved by the plugin author, Ferndando Briano, but I hope Fernando will include my changes in his next version.&lt;br /&gt;
&lt;br /&gt;
In my enhancement of the plugin, you will see you can use the &amp;quot;content&amp;quot; attribute to instruct that the plugin should display the full content of the posts, like this:&lt;br /&gt;
&lt;br /&gt;
[catlist name=mycategory content=yes]&lt;br /&gt;
&lt;br /&gt;
If you specify both excerpt=yes and the content=yes attributes, then the content will be shown, even for posts that have an excerpt.  For posts that happen to have an excerpt only, with no content, in this case specifying both excerpt=yes and the content=yes will display the excerpt rather than displaying empty content.&lt;br /&gt;
&lt;br /&gt;
This version of the plugin also has a fix to a bug that prevented the &amp;quot;name&amp;quot; attribute from working correctly.&lt;br /&gt;
&lt;br /&gt;
Since I don't see a way to attach a file to this post, I'll show the whole code for the enhanced list_cat_posts.php file and templates/default.php template.  You can copy and paste these into a text editor to make new files to replace the ones in your WordPress plugins/list_cat_posts folder (or just wait for Fernando to incorporate these changes into the next version):&lt;br /&gt;
&lt;br /&gt;
list_cat_posts.php&lt;br /&gt;
&lt;div class="codewrapper"&gt;&lt;div class="codetitle"&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div&gt;&lt;div class="codecontent"&gt;&amp;lt;?php&lt;br /&gt;
/*&lt;br /&gt;
Plugin Name: List category posts&lt;br /&gt;
Plugin URI: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/&lt;br /&gt;
Description: List Category Posts allows you to list posts from a category into a post/page using the &amp;#91;catlist&amp;#93; shortcode. This shortcode accepts a category name or id, the order in which you want the posts to display, and the number of posts to display. You can use &amp;#91;catlist&amp;#93; as many times as needed with different arguments. Usage: &amp;#91;catlist argument1=value1 argument2=value2&amp;#93;.&lt;br /&gt;
Version: 0.6&lt;br /&gt;
Author: Fernando Briano&lt;br /&gt;
Author URI: http://picandocodigo.net/wordpress/&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
/* Copyright 2008&amp;nbsp; Fernando Briano&amp;nbsp; (email : transformers.es@gmail.com)&lt;br /&gt;
&lt;br /&gt;
This program is free software; you can redistribute it and/or modify&lt;br /&gt;
it under the terms of the GNU General Public License as published by&lt;br /&gt;
the Free Software Foundation; either version 3 of the License, or&lt;br /&gt;
any later version.&lt;br /&gt;
&lt;br /&gt;
This program is distributed in the hope that it will be useful,&lt;br /&gt;
but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&amp;nbsp; See the&lt;br /&gt;
GNU General Public License for more details.&lt;br /&gt;
&lt;br /&gt;
You should have received a copy of the GNU General Public License&lt;br /&gt;
along with this program; if not, write to the Free Software&lt;br /&gt;
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA&amp;nbsp; 02110-1301&amp;nbsp; USA&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
//Shortcode &amp;#91;catlist parameter=&amp;quot;value&amp;quot;&amp;#93;&lt;br /&gt;
function catlist_func($atts, $content=null) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp;$atts=shortcode_atts(array(&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'id' =&amp;gt; '0',&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'name' =&amp;gt; 'default',&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'orderby' =&amp;gt; 'date',&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'order' =&amp;gt; 'desc',&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'numberposts' =&amp;gt; '5',&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'date' =&amp;gt; 'no',&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'author' =&amp;gt; 'no',&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'dateformat' =&amp;gt; get_option('date_format'), //By Verex&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'template' =&amp;gt; 'default',&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'excerpt' =&amp;gt; 'no',&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'content' =&amp;gt; 'no',&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'exclude' =&amp;gt; '0'&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;), $atts);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;return list_category_posts($atts);&lt;br /&gt;
}&lt;br /&gt;
add_shortcode('catlist', 'catlist_func');&lt;br /&gt;
&lt;br /&gt;
function list_category_posts($atts){&lt;br /&gt;
&amp;nbsp; &amp;nbsp;if($atts&amp;#91;'name'&amp;#93;!='default' &amp;amp;&amp;amp; $atts&amp;#91;'id'&amp;#93;=='0'){&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$category = 'category_name=' . $atts&amp;#91;'name'&amp;#93;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;}else{&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$category = 'cat=' . $atts&amp;#91;'id'&amp;#93;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp;//Build the query for get_posts()&lt;br /&gt;
&amp;nbsp; &amp;nbsp;$catposts = get_posts($category.'&amp;amp;numberposts=' . $atts&amp;#91;'numberposts'&amp;#93; .&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'&amp;amp;orderby=' . $atts&amp;#91;'orderby'&amp;#93; .&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'&amp;amp;order=' . $atts&amp;#91;'order'&amp;#93;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;//Template code:&lt;br /&gt;
&amp;nbsp; &amp;nbsp;$tplFileName= $atts&amp;#91;'template'&amp;#93; != 'default'?dirname(__FILE__).'/templates/'.$atts&amp;#91;'template'&amp;#93;.'.php' : null;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;if ((!empty($tplFileName)) &amp;amp;&amp;amp; (is_readable($tplFileName))) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$lcpTemplate = true;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;}else{&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$output = '&amp;lt;ul class=&amp;quot;lcp_catlist&amp;quot;&amp;gt;';//For default ul&lt;br /&gt;
&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;foreach($catposts as $single):&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;//Template idea by Verex&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;if($lcpTemplate){&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;require($tplFileName);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;} else {&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$output .= '&amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;' . get_permalink($single-&amp;gt;ID).'&amp;quot;&amp;gt;' . $single-&amp;gt;post_title . '&amp;lt;/a&amp;gt;';&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;if($atts&amp;#91;'date'&amp;#93;=='yes'){&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$output .=&amp;nbsp; ' - ' . get_the_time($atts&amp;#91;'dateformat'&amp;#93;, $single);//by Verex, great idea!&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;if($atts&amp;#91;'author'&amp;#93;=='yes'){&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$lcp_userdata = get_userdata($single-&amp;gt;post_author);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$output.=&amp;quot; - &amp;quot;.$lcp_userdata-&amp;gt;user_nicename . '&amp;lt;br/&amp;gt;';&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;if($atts&amp;#91;'content'&amp;#93;=='yes' &amp;amp;&amp;amp; $single-&amp;gt;post_content){&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$output .= &amp;quot;&amp;lt;p&amp;gt;$single-&amp;gt;post_content&amp;lt;/p&amp;gt;&amp;quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;if($atts&amp;#91;'excerpt'&amp;#93;=='yes' &amp;amp;&amp;amp; $single-&amp;gt;post_excerpt &amp;amp;&amp;amp; !($atts&amp;#91;'content'&amp;#93;=='yes' &amp;amp;&amp;amp; $single-&amp;gt;post_content) ){&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$output .= &amp;quot;&amp;lt;p&amp;gt;$single-&amp;gt;post_excerpt&amp;lt;/p&amp;gt;&amp;quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$output.=&amp;quot;&amp;lt;/li&amp;gt;&amp;quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp;endforeach;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;if(!$lcpTemplate): $output .= &amp;quot;&amp;lt;/ul&amp;gt;&amp;quot;; endif;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;return $output;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function lcp_add_option_page(){&lt;br /&gt;
&amp;nbsp; &amp;nbsp;add_options_page('List Category Posts', 'List Category Posts', 'manage_options','list-category-posts/list_cat_posts_options.php');&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
//Sidebar Widget:&lt;br /&gt;
include('list_cat_posts_widget.php');&lt;br /&gt;
//Filters and actions:&lt;br /&gt;
add_action('plugins_loaded', 'lcp_load_widget');&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
templates/default.php&lt;br /&gt;
&lt;div class="codewrapper"&gt;&lt;div class="codetitle"&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div&gt;&lt;div class="codecontent"&gt;&amp;lt;?php&lt;br /&gt;
/*&lt;br /&gt;
Plugin Name: List Category Posts - Template&lt;br /&gt;
Plugin URI: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/&lt;br /&gt;
Description: Template file for List Category Post Plugin for Wordpress which is used by plugin by argument template=value.php&lt;br /&gt;
Version: 0.0.2&lt;br /&gt;
Author: Radek Uldrych &amp;amp; Fernando Briano &lt;br /&gt;
Author URI: http://picandocodigo.net http://radoviny.net&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
/* Copyright 2009&amp;nbsp; Radek Uldrych&amp;nbsp; (email : verex@centrum.cz), Fernando Briano (http://picandocodigo.net)&lt;br /&gt;
&lt;br /&gt;
This program is free software; you can redistribute it and/or modify&lt;br /&gt;
it under the terms of the GNU General Public License as published by&lt;br /&gt;
the Free Software Foundation; either version 3 of the License, or &lt;br /&gt;
any later version.&lt;br /&gt;
&lt;br /&gt;
This program is distributed in the hope that it will be useful,&lt;br /&gt;
but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&amp;nbsp; See the&lt;br /&gt;
GNU General Public License for more details.&lt;br /&gt;
&lt;br /&gt;
You should have received a copy of the GNU General Public License&lt;br /&gt;
along with this program; if not, write to the Free Software&lt;br /&gt;
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA&amp;nbsp; 02110-1301&amp;nbsp; USA&lt;br /&gt;
*/&lt;br /&gt;
&amp;nbsp; &amp;nbsp;$output .= &amp;quot;&amp;lt;li&amp;gt;&amp;lt;a href='&amp;quot;.get_permalink($single-&amp;gt;ID).&amp;quot;'&amp;gt;&amp;quot;.$single-&amp;gt;post_title.&amp;quot;&amp;lt;/a&amp;gt;&amp;quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;//Style for date:&lt;br /&gt;
&amp;nbsp; &amp;nbsp;if($atts&amp;#91;'date'&amp;#93;=='yes'){&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$output.=&amp;quot; - &amp;quot;.get_the_time($atts&amp;#91;'dateformat'&amp;#93;, $single);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp;//Show author?&lt;br /&gt;
&amp;nbsp; &amp;nbsp;if($atts&amp;#91;'author'&amp;#93;=='yes'){&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$lcp_userdata = get_userdata($single-&amp;gt;post_author);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$output.=&amp;quot; - &amp;quot;.$lcp_userdata-&amp;gt;user_nicename;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp;//Show content?&lt;br /&gt;
&amp;nbsp; &amp;nbsp;if($atts&amp;#91;'content'&amp;#93;=='yes' &amp;amp;&amp;amp; $single-&amp;gt;post_content){&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$output .= &amp;quot;&amp;lt;p&amp;gt;$single-&amp;gt;post_content&amp;lt;/p&amp;gt;&amp;quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp;//Show excerpt?&lt;br /&gt;
&amp;nbsp; &amp;nbsp;if($atts&amp;#91;'excerpt'&amp;#93;=='yes' &amp;amp;&amp;amp; $single-&amp;gt;post_excerpt &amp;amp;&amp;amp; !($atts&amp;#91;'content'&amp;#93;=='yes' &amp;amp;&amp;amp; $single-&amp;gt;post_content) ){&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$output .= &amp;quot;&amp;lt;p&amp;gt;$single-&amp;gt;post_excerpt&amp;lt;/p&amp;gt;&amp;quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp;$output.=&amp;quot;&amp;lt;/li&amp;gt;&amp;quot;;&lt;br /&gt;
?&amp;gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
If you have any questions with this, feel free to reply to this post.  I have requested that the forum send notice to me when there are replies, and I will respond.&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Lang Zerner&lt;br /&gt;
&lt;!-- m --&gt;&lt;a class="postlink" href="http://www.studio32.com/"&gt;http://www.studio32.com/&lt;/a&gt;&lt;!-- m --&gt;&lt;img src="http://feeds.feedburner.com/~r/foropicandocodigo/~4/KIFHRhvKi24" height="1" width="1"/&gt;</description>
		<feedburner:origLink>http://foro.picandocodigo.net/viewtopic.php?f=27&amp;p=1059#p1059</feedburner:origLink></item>
			<item>
			<dc:creator>lzerner</dc:creator>
			<pubDate>Thu, 12 Nov 2009 13:26:41 -0600</pubDate>
			<guid isPermaLink="false">http://foro.picandocodigo.net/viewtopic.php?f=27&amp;p=1058#p1058</guid>
			<link>http://feedproxy.google.com/~r/foropicandocodigo/~3/sGSYgyiLzWs/viewtopic.php</link>
			<title>Re: List Category Posts WordPress Plugin support</title>
			<description>There is a simple but serious bug in the handling for the name attribute.  See lines 48-52:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="codewrapper"&gt;&lt;div class="codetitle"&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div&gt;&lt;div class="codecontent"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;48&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if($atts&amp;#91;'name'&amp;#93;!='default' &amp;amp;&amp;amp; $atts&amp;#91;'id'&amp;#93;!='0'){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;49&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$category = 'category_name=' . $atts&amp;#91;'name'&amp;#93;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;50&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}else{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;51&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$category = 'cat=' . $atts&amp;#91;'id'&amp;#93;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;52&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This says, if the &amp;quot;name&amp;quot; attribute has been explicitly set and the &amp;quot;id&amp;quot; attribute has also been set, then use the category_name, otherwise, use the category ID.  That's contrary to the documentation, which says:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="quotewrapper"&gt;&lt;div class="quotetitle"&gt;Quote:&lt;/div&gt;&lt;div class="quotecontent"&gt;If you use both arguments (wrong!), List Category Posts will show the posts from the category in 'name'.&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
In the above implementation, if you set both arguments, List Category Posts shows the posts from the category in &amp;quot;id&amp;quot; instead.&lt;br /&gt;
&lt;br /&gt;
It's very bad, though, if you provide only the &amp;quot;name&amp;quot; argument.  In this case, since $atts['id'] is still '0', you skip line 49 and instead execute line 51: &lt;div class="codewrapper"&gt;&lt;div class="codetitle"&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div&gt;&lt;div class="codecontent"&gt;$category = 'cat=' . $atts&amp;#91;'id'&amp;#93;;&lt;/div&gt;&lt;/div&gt;  The result is that you see all posts listed from all a categories.&lt;br /&gt;
&lt;br /&gt;
In other words, the &amp;quot;name&amp;quot; argument doesn't ever work.  The only way to restrict the category in your current implementation is to use the &amp;quot;id&amp;quot; argument.&lt;br /&gt;
&lt;br /&gt;
The fix to this is very simple.  In line 48, change &lt;div class="codewrapper"&gt;&lt;div class="codetitle"&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div&gt;&lt;div class="codecontent"&gt;$atts&amp;#91;'id'&amp;#93;!='0'&lt;/div&gt;&lt;/div&gt; to &lt;div class="codewrapper"&gt;&lt;div class="codetitle"&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div&gt;&lt;div class="codecontent"&gt;$atts&amp;#91;'id'&amp;#93;=='0'&lt;/div&gt;&lt;/div&gt; (change from &amp;quot;not equal&amp;quot; to &amp;quot;equal&amp;quot;), so the whole line is:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="codewrapper"&gt;&lt;div class="codetitle"&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div&gt;&lt;div class="codecontent"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;48&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if($atts&amp;#91;'name'&amp;#93;!='default' &amp;amp;&amp;amp; $atts&amp;#91;'id'&amp;#93;=='0'){&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
In this case it will behave as you documented it.&lt;br /&gt;
&lt;br /&gt;
In a subsequent post, I will provide an enhancement to your code that allows the inclusion of post content on the page as an alternative to the post excerpt.&lt;br /&gt;
&lt;br /&gt;
Thank you for a wonderful little plugin that has perfectly solved my requirement to put category listings into the page navigation.&lt;br /&gt;
&lt;br /&gt;
Lang Zerner&lt;br /&gt;
&lt;a href="http://www.studio32.com/" class="postlink"&gt;http://www.studio32.com/&lt;/a&gt;&lt;img src="http://feeds.feedburner.com/~r/foropicandocodigo/~4/sGSYgyiLzWs" height="1" width="1"/&gt;</description>
		<feedburner:origLink>http://foro.picandocodigo.net/viewtopic.php?f=27&amp;p=1058#p1058</feedburner:origLink></item>
			<item>
			<dc:creator>alfirin</dc:creator>
			<pubDate>Thu, 12 Nov 2009 07:19:46 -0600</pubDate>
			<guid isPermaLink="false">http://foro.picandocodigo.net/viewtopic.php?f=27&amp;p=1057#p1057</guid>
			<link>http://feedproxy.google.com/~r/foropicandocodigo/~3/doJB0FrBzq8/viewtopic.php</link>
			<title>Qtranslate Multilingual Support for List Category Posts Plug</title>
			<description>Hi!&lt;br /&gt;
&lt;br /&gt;
For everyone using Qtranslate in their websites, here is a way to make List Category Posts Plugin with multilingual support to show the correct part of the post title in each language version.&lt;br /&gt;
&lt;br /&gt;
In &lt;span style="font-weight: bold"&gt;list_cat_posts.php&lt;/span&gt; add this line&lt;br /&gt;
&lt;br /&gt;
&lt;div class="codewrapper"&gt;&lt;div class="codetitle"&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div&gt;&lt;div class="codecontent"&gt;$catposts = __($catposts);&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
at the end of 	&lt;br /&gt;
&lt;br /&gt;
&lt;div class="codewrapper"&gt;&lt;div class="codetitle"&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div&gt;&lt;div class="codecontent"&gt; //Build the query for get_posts()&lt;br /&gt;
&amp;nbsp; &amp;nbsp;$catposts = get_posts($category.'&amp;amp;numberposts=' . $atts&amp;#91;'numberposts'&amp;#93; .&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'&amp;amp;orderby=' . $atts&amp;#91;'orderby'&amp;#93; .&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'&amp;amp;order=' . $atts&amp;#91;'order'&amp;#93;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;$catposts = __($catposts);&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
It works perfect for me. Thanks for this great plugin!&lt;br /&gt;
&lt;br /&gt;
Cheers,&lt;br /&gt;
Milena from Hubavo - Interaction Design Studio&lt;br /&gt;
&lt;!-- m --&gt;&lt;a class="postlink" href="http://hubavo.com"&gt;http://hubavo.com&lt;/a&gt;&lt;!-- m --&gt;&lt;img src="http://feeds.feedburner.com/~r/foropicandocodigo/~4/doJB0FrBzq8" height="1" width="1"/&gt;</description>
		<feedburner:origLink>http://foro.picandocodigo.net/viewtopic.php?f=27&amp;p=1057#p1057</feedburner:origLink></item>
			<item>
			<dc:creator>ellenstevens</dc:creator>
			<pubDate>Wed, 11 Nov 2009 18:10:09 -0600</pubDate>
			<guid isPermaLink="false">http://foro.picandocodigo.net/viewtopic.php?f=27&amp;p=1056#p1056</guid>
			<link>http://feedproxy.google.com/~r/foropicandocodigo/~3/lCsOGF2QPRI/viewtopic.php</link>
			<title>List Category Plugin</title>
			<description>Thank you so much for creating this plugin!  I think it has been a much needed feature on wordpress for some time.&lt;br /&gt;
&lt;br /&gt;
Is it possible to display the entire posts, versus just a title list?  I understand the excerpts can be posted, but I would like to see all of the post.  Is that possible?&lt;br /&gt;
&lt;br /&gt;
thanks,&lt;br /&gt;
&lt;br /&gt;
ellen&lt;img src="http://feeds.feedburner.com/~r/foropicandocodigo/~4/lCsOGF2QPRI" height="1" width="1"/&gt;</description>
		<feedburner:origLink>http://foro.picandocodigo.net/viewtopic.php?f=27&amp;p=1056#p1056</feedburner:origLink></item>
			<item>
			<dc:creator>Fernando</dc:creator>
			<pubDate>Thu, 05 Nov 2009 20:40:36 -0600</pubDate>
			<guid isPermaLink="false">http://foro.picandocodigo.net/viewtopic.php?f=27&amp;p=1055#p1055</guid>
			<link>http://feedproxy.google.com/~r/foropicandocodigo/~3/FLLo61aIKY4/viewtopic.php</link>
			<title>Re: List Category Posts WordPress Plugin support</title>
			<description>Levi:&lt;br /&gt;
Thanks a lot for your code.  &lt;img src="http://foro.picandocodigo.net/images/smilies/005.gif" alt=":pene:" title="Pene, pero feliz" /&gt; &lt;br /&gt;
&lt;br /&gt;
I'll add this on a future release of List Category Posts.&lt;br /&gt;
&lt;br /&gt;
Regards!&lt;img src="http://feeds.feedburner.com/~r/foropicandocodigo/~4/FLLo61aIKY4" height="1" width="1"/&gt;</description>
		<feedburner:origLink>http://foro.picandocodigo.net/viewtopic.php?f=27&amp;p=1055#p1055</feedburner:origLink></item>
			<item>
			<dc:creator>leviv</dc:creator>
			<pubDate>Thu, 05 Nov 2009 19:35:10 -0600</pubDate>
			<guid isPermaLink="false">http://foro.picandocodigo.net/viewtopic.php?f=27&amp;p=1054#p1054</guid>
			<link>http://feedproxy.google.com/~r/foropicandocodigo/~3/m4yrDu-DxIg/viewtopic.php</link>
			<title>Re: List Category Posts WordPress Plugin support</title>
			<description>Hey yo Glassy and Nando...&lt;br /&gt;
&lt;br /&gt;
Here is the fix for the offset that Glassy is asking about...&lt;br /&gt;
&lt;br /&gt;
Glassy, what you really mean is that the posts that are listed are those which are already been showed, so in order to avoid that I reprogrammed the plugin to use the offset function of the :&lt;br /&gt;
&lt;br /&gt;
Offset Parameter&lt;br /&gt;
&lt;br /&gt;
You can displace or pass over one or more initial posts which would normally be collected by your query through the use of the offset parameter.&lt;br /&gt;
&lt;br /&gt;
The following will display the 5 posts which follow the most recent (1): &lt;br /&gt;
&lt;br /&gt;
&lt;div class="codewrapper"&gt;&lt;div class="codetitle"&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div&gt;&lt;div class="codecontent"&gt;query_posts('posts_per_page=5&amp;amp;offset=1');&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
as stated in the wp CODEX site:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://codex.wordpress.org/Template_Tags/query_posts#Parameters" class="postlink"&gt;http://codex.wordpress.org/Template_Tags/query_posts#Parameters&lt;/a&gt;&lt;br /&gt;
Scroll all the way down to offset..&lt;br /&gt;
&lt;br /&gt;
So the fix is to add a new parameter:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="codewrapper"&gt;&lt;div class="codetitle"&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div&gt;&lt;div class="codecontent"&gt;'offset' =&amp;gt; '4',&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
and to send that parameter to the query_post():&lt;br /&gt;
&lt;div class="codewrapper"&gt;&lt;div class="codetitle"&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div&gt;&lt;div class="codecontent"&gt;&amp;nbsp; &amp;nbsp;'&amp;amp;offset=' . $atts&amp;#91;'offset'&amp;#93; );&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
and to add that parameter to the code:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="codewrapper"&gt;&lt;div class="codetitle"&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div&gt;&lt;div class="codecontent"&gt;&amp;#91;catlist ID=1 numberposts=5 excerpt=yes date=yes offset=4&amp;#93;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
This will list all the post starting at the 4th post on the cat id 1, all you need to do is.. can you count?&lt;br /&gt;
&lt;br /&gt;
The final fix to the plugin shows as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="codewrapper"&gt;&lt;div class="codetitle"&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div&gt;&lt;div class="codecontent"&gt;function catlist_func($atts, $content=null) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp;$atts=shortcode_atts(array(&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'id' =&amp;gt; '0',&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'name' =&amp;gt; 'default',&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'orderby' =&amp;gt; 'date',&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'order' =&amp;gt; 'desc',&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'offset' =&amp;gt; '4', //Permite especificar un offset para comensar a listar los posts, contribucion por Levi Vasquez&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'numberposts' =&amp;gt; '5',&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'date' =&amp;gt; 'no',&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'author' =&amp;gt; 'no',&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'dateformat' =&amp;gt; get_option('date_format'), //By Verex&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'template' =&amp;gt; 'default',&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'excerpt' =&amp;gt; 'no',&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'exclude' =&amp;gt; '0'&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;), $atts);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;return list_category_posts($atts);&lt;br /&gt;
}&lt;br /&gt;
add_shortcode('catlist', 'catlist_func');&lt;br /&gt;
&lt;br /&gt;
function list_category_posts($atts){&lt;br /&gt;
&amp;nbsp; &amp;nbsp;if($atts&amp;#91;'name'&amp;#93;!='default' &amp;amp;&amp;amp; $atts&amp;#91;'id'&amp;#93;!='0'){&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$category = 'category_name=' . $atts&amp;#91;'name'&amp;#93;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;}else{&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$category = 'cat=' . $atts&amp;#91;'id'&amp;#93;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp;//Build the query for get_posts()&lt;br /&gt;
&amp;nbsp; &amp;nbsp;$catposts = get_posts($category.'&amp;amp;numberposts=' . $atts&amp;#91;'numberposts'&amp;#93; .&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'&amp;amp;orderby=' . $atts&amp;#91;'orderby'&amp;#93; .&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'&amp;amp;order=' . $atts&amp;#91;'order'&amp;#93; .&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;'&amp;amp;offset=' . $atts&amp;#91;'offset'&amp;#93; ); //Permite especificar un offset para comensar a listar los posts, contribucion por Levi Vasquez&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
Cheers mates!!!!&lt;br /&gt;
&lt;br /&gt;
Levi.&lt;img src="http://feeds.feedburner.com/~r/foropicandocodigo/~4/m4yrDu-DxIg" height="1" width="1"/&gt;</description>
		<feedburner:origLink>http://foro.picandocodigo.net/viewtopic.php?f=27&amp;p=1054#p1054</feedburner:origLink></item>
			<item>
			<dc:creator>Glass4242</dc:creator>
			<pubDate>Mon, 02 Nov 2009 06:31:47 -0600</pubDate>
			<guid isPermaLink="false">http://foro.picandocodigo.net/viewtopic.php?f=27&amp;p=1053#p1053</guid>
			<link>http://feedproxy.google.com/~r/foropicandocodigo/~3/whtnidYkRZU/viewtopic.php</link>
			<title>Re: List Category Posts WordPress Plugin support</title>
			<description>Hi,&lt;br /&gt;
&lt;br /&gt;
I had been looking for an answer to a question I had and the answer WAS in the comments but since they were removed, I can't find the answer now.&lt;br /&gt;
&lt;br /&gt;
The problem I am having is that when the plugin generates the list, it also puts the pages that the list is on IN the list. Can this be disabled or removed?&lt;img src="http://feeds.feedburner.com/~r/foropicandocodigo/~4/whtnidYkRZU" height="1" width="1"/&gt;</description>
		<feedburner:origLink>http://foro.picandocodigo.net/viewtopic.php?f=27&amp;p=1053#p1053</feedburner:origLink></item>
			<item>
			<dc:creator>vivazzii</dc:creator>
			<pubDate>Sun, 01 Nov 2009 10:50:12 -0600</pubDate>
			<guid isPermaLink="false">http://foro.picandocodigo.net/viewtopic.php?f=22&amp;p=1052#p1052</guid>
			<link>http://feedproxy.google.com/~r/foropicandocodigo/~3/P31uFWV_Jfk/viewtopic.php</link>
			<title>Se busca programador / a Web</title>
			<description>Para proyecyo web. Necesitarás amplios conocimientos en php y Mysql, quizá javascript.  Si vives en Madrid mejor, aunque no excluyente.&lt;br /&gt;
&lt;br /&gt;
Escribe contando brevemente experiencia y aportando algunas urls de trabajos a&lt;br /&gt;
&lt;br /&gt;
jbcvip arroba gmail punto com&lt;br /&gt;
&lt;br /&gt;
Anuncio serio. Saludos&lt;img src="http://feeds.feedburner.com/~r/foropicandocodigo/~4/P31uFWV_Jfk" height="1" width="1"/&gt;</description>
		<feedburner:origLink>http://foro.picandocodigo.net/viewtopic.php?f=22&amp;p=1052#p1052</feedburner:origLink></item>
	</channel>
</rss>
