List category posts Wordpress Plugin (English)

Description

List Category Posts is a simple WordPress plugin which allows you to list posts from a category into a post/page using the [catlist] 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 [catlist] as many times as needed with different arguments. Great to use WordPress as a CMS, and create pages with several categories posts.
Usage: [catlist argument1=value1 argument2=value2].

The arguments you can use are:
‘name’ - To display posts from a category using the category’s name. Ex: [catlist name=mycategory]
‘id’ - To display posts from a category using the category’s id. Ex: [catlist id=24]
If you use both arguments (wrong!), List Category Posts will show the posts from the category in ‘name’.

‘orderby’ - To customize the order. Valid values are:

  • ‘author’ - Sort by the numeric author IDs.
  • ‘category’ - Sort by the numeric category IDs.
  • ‘content’ - Sort by content.
  • ‘date’ - Sort by creation date.
  • ‘ID’ - Sort by numeric post ID.
  • ‘menu_order’ - Sort by the menu order. Only useful with pages.
  • ‘mime_type’ - Sort by MIME type. Only useful with attachments.
  • ‘modified’ - Sort by last modified date.
  • ‘name’ - Sort by stub.
  • ‘parent’ - Sort by parent ID.
  • ‘password’ - Sort by password.
  • ‘rand’ - Randomly sort results.
  • ’status’ - Sort by status.
  • ‘title’ - Sort by title.
  • ‘type’ - Sort by type.

Ex: [catlist name=mycategory orderby=date]

‘order’ - How to sort ‘orderby’. Valid values are:

  • ‘ASC’ - Ascending (lowest to highest).
  • ‘DESC’ - Descending (highest to lowest).

Ex: [catlist name=mycategory orderby=title order=asc]

‘numberposts’ - Number of posts to return. Set to 0 to use the max number of posts per page. Set to -1 to remove the limit. Default: 5
Ex: [catlist name=mycategory numberposts=10]

You can customize the way List Category Posts shows the posts in your CSS by editing “lcp_catlist“. The generated code is: <ul class=”lcp_catlist”>, and a <li> for each post in the category.

Since version 0.2, List Category Posts includes a sidebar widget. This is still in development, since I dedicated more time to the arguments thing. It does work, but you’re welcome to test it and comment your feedback.

If you’re updating List Category Posts from version 0.1, you must change the code in the pages using it, since it’s not backwards compatible. LCP now uses WordPress’s shortcode API, in order to allow arguments. You should change the previous [catlist=ID] to [catlist id=ID].

List Category Post was written with Geany

Installation

  • Upload list-category-posts directory into your wp-content/plugins/ directory.
  • Login to your WordPress Admin menu, go to Plugins, and activate it.
  • Add “lcp_catlist” class into your theme’s CSS for custom formatting.
  • You can find the List Category Posts widget in your widgets. Hasn’t been tested, still in development, but usable.

The generated HTML looks like this:

<ul class="lcp_catlist">
	<li>
		<a href="post_url">
			Post title
		</a></li>
	<li>
		<a href="post_url">
			Post title
		</a></li>
	<li>
		<a href="post_url">
			Post title
		</a></li>
</ul>

You can see it working here:
http://picandocodigo.net/programacion/

| Download List Category Posts |

104 Comentarios para “List category posts Wordpress Plugin (English)”

  1. baron



    Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1

    hi. Thanks for plugin

    perfect.

    Regards

  2. fernando



    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071618 Iceweasel/3.0.1 (Debian-3.0.1-1)

    Glad you liked it and found it useful :D
    Thanks for commenting.
    Regards

  3. Marty



    Opera/9.51 (Windows NT 5.1; U; cs)

    Can it works in sidebar? Is there a php version instead of [catlist=ID]? I need to display last 3 post from each category in the sidebar. I cant find any plugin for WP 2.6:(.

  4. Mahdi Yousefi



    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)

    I think there is a bug in it, I active it but in option menu there is wrong link to go to this plugin option, I use wordpress 2.6.1,

    Also it is very hard to find category ID if there is option to use Category name or Category slug it can be better.

  5. fernando



    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071618 Iceweasel/3.0.1 (Debian-3.0.1-1)

    Marty:
    I’ll look to include a sidebar widget to use with it. But if you’re into PHP hacking, here’s the code to include in your theme’s sidebar to include category posts (this is a static sidebar):

    $result = "<ul class='lcp_catlist'>";
    $catposts = get_posts('category='.$ID."&numberposts=".$NUMBEROFPOSTS);
    foreach($catposts as $single):
    	$result .= "<li><a href='";
    	$result .=get_permalink($single->ID)."'>".$single->post_title."</a></li>";
    endforeach;
    $result .= "</ul>";
    echo $result;

    Mahdi Yousefi:
    Thanks for your feedback. I had another user report your error too. There’s a bug at the options page. I’ll fix it ASAP.
    You’re right about findindg the Category ID, I’ll add an option to list categories by the name.

    Thanks for the comments, glad you like my plugin.

    Regards

  6. fernando



    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071618 Iceweasel/3.0.1 (Debian-3.0.1-1)

    I just committed version 0.1.1 to wordpress.org, which fixes the 404 error when trying to enter the options page. If you’re using it in your blogs, WordPress should ask you to update soon.

  7. Toto



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080219 Firefox/2.0.0.12 Navigator/9.0.0.6

    Hi fernanado,

    congrats on this great little plugin.
    I have a question though. I have set the plugin to show 50 posts from category x with currently 12 posts added but it only shows 11 on the page and leaves a gap.

    Do you have an idea what this could be?

    Thanks alot and talk later. :-)

    Toto

  8. Toto



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080219 Firefox/2.0.0.12 Navigator/9.0.0.6

    Hi,

    i just found out that it is actually working just fine. :-) There was some image overlay in FireFox.

    1 suggestion if that ok?

    I have installed the plugin “AStickyPostOrderER” and oorted the posts differently from the way i added them. I see that your plugin still orders the posts the way i added them.

    Coiuld i change that soemwhere to be compatible?

    Thanks alot and keep up the good work.

    Hasta la próxima!

  9. fernando



    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071618 Iceweasel/3.0.1 (Debian-3.0.1-1)

    Toto:
    Thanks for your comments. So the problem you mentioned in your first comment is working fine, right?

    About the order of the posts, it’s a great idea, and I’ll implement it on a future release. Something like [catlist=ID order=parameter], with parameter being: title, author, date, ID, etc.

    Thanks for the idea/request!
    Regards

  10. Toto



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080219 Firefox/2.0.0.12 Navigator/9.0.0.6

    Hi fernando,

    yes correct. It working fine. :-)

    yeah that’ll be great if you could order it like you mentioned. :-)

    And let me say that your plugin is exactly what i was looking for. I wanted to have a page for music articles on my site but have the music articles written as posts.

    But i am using the category part as an artist roster, therefore i didn’t want any article category shown there.

    Give me a few days and I’ll donate something. I’m just quite skinned atm. :P

    Thanks again and keep up the good work.

    Toto

  11. combo



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1

    where is the download link ?

  12. fernando



    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071618 Iceweasel/3.0.1 (Debian-3.0.1-1)

    Toto:
    I’ll work on it. It’ll be like an overloaded [catlist]. This was also exactly what I was looking for, so not being able to find anything that suited my needs, I made it.

    A donation would be sweet, but not mandatory, thanks!

    combo:
    Sorry for that, the link was missing :P. The plugin is hosted at wordpress.org:
    http://wordpress.org/extend/plugins/list-category-posts/

  13. Shala



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.15) Gecko/20080623 Firefox/2.0.0.15

    Thanks - this plugin was just what I needed. I’m seconding the request to be able to change the sort order that displays (would like to order posts alphabetically by title).

    Thanks!

  14. fernando



    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071618 Iceweasel/3.0.1 (Debian-3.0.1-1)

    Shala:
    The request is on the way. I’m testing it and fixing some bugs right now, but as soon as it’s ready, I’ll release it. You’ll be able to order it by date, post title, author, etc., among other new options.

    Thanks for your comment!
    Your feedback is really important.
    Regards

  15. pdpate



    Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_5_4; en-us) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.20.1

    I wanted to use this as a static sidebar, how do I use that PHP snippet above with a specific category (ie what tags go around it?

  16. fernando



    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071618 Iceweasel/3.0.1 (Debian-3.0.1-1)

    pdpate:
    You should use that code in your sidebar.php, on your template’s directory. Here’s an example of how it might look:

    <div class="sidebar">
    	<?php
    		//The PHP code snippet from above
    	?>
    </div>

    The plugin will include a widget in a future release.
    Thanks for using it!

  17. Maurits



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9) Gecko/2008052906 Firefox/3.0

    Still gives an error in the sidebar, even when using the php. It says this:

    Parse error: syntax error, unexpected T_DNUMBER, expecting T_VARIABLE or ‘$’ in C:\xampp\htdocs\nightlybuilt\wp-content\plugins\exec-php\includes\runtime.php(42) : eval()’d code on line 4

    I am using PHP exec plugin as well. Maybe it is related? Thanks.

  18. fernando



    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071618 Iceweasel/3.0.1 (Debian-3.0.1-1)

    Maurits:
    I don’t know about that error. Seems like a specific error on your local server or something.

    I’ll be adding a widget to the plugin soon.

    Regards

  19. frank guillen



    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22

    Help needed, how can I set this plugin, I am doing something wrong…. Check for yourself, http://www.macevangelismo.com

  20. fernando



    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071618 Iceweasel/3.0.1 (Debian-3.0.1-1)

    frank:
    I don’t see what’s wrong. You can try contacting me via the contact form and explain what the problem is, and how it’s not working.

  21. frank guillen



    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22

    Fernando, the problem is:

    How can I make it works if I place the code into my template?

    It is not working

  22. frank guillen



    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22

    See Here what I am doing:

    MacDailynews
    [catlist=1047]

    MacIntouch
    [catlist= 2502]

    Placed directly in the template, if I create a page or a post the plugin works perfectly, but I need to place it in the template… thanks for your help in advance

  23. frank guillen



    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22

    Thanks Fernando, something that I really need is how to have 2 lines of the post content below the title?

    Thx

  24. fernando



    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071618 Iceweasel/3.0.1 (Debian-3.0.1-1)

    frank:
    Now I get it. What you need to do is write the PHP directly into the template.

    You need to do a loop for getting the categories. Change $ID for the category’s ID and $NUMBEROFPOSTS for the max number of posts you want to display:

    $result = "<ul class='lcp_catlist'>";
    $catposts = get_posts('category='.$ID."&numberposts=".$NUMBEROFPOSTS);
    foreach($catposts as $single):
    	$result .= '<li><a href=';
    	$result.=get_permalink($single->ID).'>'.$single->post_title.'</a><br/>';
    	//This displays the title for the post and an end of line (br tag)
    	$result .= $single->the_excerpt."\n".'</li>';
    	//This displays the first 55 words of the post's content [the_excerpt() function]
    endforeach;
    $result .= "</ul>";
    echo $result;

    The plugin doesn’t work if you use [catlist] on the template. Only on pages and posts. But I think this code snippet will work out for you. Tell me if it did (or didn’t).

    Regards

  25. Sam Deeks



    Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16

    I downloaded the plugin, activated it.

    I then wrote [catlist=nameofmycategory] in my posts and pages (in the HTML editor)as the plugin text says.

    Nothing. It just shows [catlist=whatever] as text on the post.

    I’m WP 2.5 - any ideas why this just doesn’t work out of the box?

  26. fernando



    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071618 Iceweasel/3.0.1 (Debian-3.0.1-1)

    Sam:
    You have to use catlist=categoryID for now. That’s the ID, not the name of the category. I am working on a more advanced version where you’ll be able to use the name of the category. It’ll be ready soon.

    Regards

  27. Elle Fredrix



    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; SU 3.005; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)

    Here’s something that I found that will help the last poster… http://lepixelshoppe.com/scrap4dollars/2008/06/wordpress-25-use-category-id/

    Fernando, I’ve been searching for a simple plugin like this all day. Thank you! One request. Is there any simple way to add the date of the post to the list as well?

    Thanks again!

  28. Priscilla



    Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16

    Oh, I was so excited about this plugin! I thought it was just what I needed, but I’ve run into a problem. I am using the plugin page-category-plus to assign categories to my pages as well as to posts (I use WP as a CMS, not only a blog) and when I activated your plugin, it lists only the posts assigned to the category in question, not pages. Would it be possible for you to edit it so it lists pages as well?

    Thank you!

  29. fernando



    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071618 Iceweasel/3.0.1 (Debian-3.0.1-1)

    Elle:
    It wouldn’t be too complicated to add the date to the list. I’ll add that as a feature too.

    Priscilla:
    I’ll download this plugin and check the way it assigns categories to pages. I’ll check if I can make lcp compatible with it, without breaking it for blogs not using page-category-plus.

    Thanks for your comments, suggestions and requests. Keep them coming! I’m writing down every suggestion, request and coment to improve the plugin. I’ll be working on them these days.

    The next version will be out soon, implementing the sidebar widget with a few options. It’ll be totally independent from the plugin itself. I’ll also try to get some “order by” options into the next release, since its one of the most popular requests.

    I’m kind of overwhelmed with all the positive feedback, thanks a lot. Glad you all found the plugin useful!

  30. jbevans



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1

    Great plugin and perfect for what I want. Thanks for your time and effort!

    jbevans

  31. Boots



    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)

    Fernado -

    What an excellent plugin!!! Nice job.

    It fits the bill to a T for one way I will be using it.

    I have a featue request or a hack request.
    I’d like to have the plug-in be able to produce the cat list with interection of two categories where I’d use [catlist id=24,46] and it would show only posts that are members of both 24 and 46. If you could squeeze it in…

    Best regards,

    Nick

  32. Elle Fredrix



    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; SU 3.005; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)

    Great work! Thanks for the added functionality.

    Now another request. :) Is there any way to show the final result of the orderby list in the displayed list? For example, if I sort by the date, can the date AND the post title show? Or if I sort by author, could the output provide author PLUS post title? If it could, this plugin would be beyond perfect!

    Payday is Friday, so I’ll fire off a donation for your efforts then.

    Thanks again…

  33. fernando



    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071618 Iceweasel/3.0.1 (Debian-3.0.1-1)

    The data of the “order by” is definitively going in at version 0.4 of List Category Posts. It will display something like:

    *Post title - by Fernando

    That’s when it’s ordered by author, and:

    *Post title - 07/07/2008

    When ordered by date. Maybe even add the option to display the author/date before or after the post title.

    I’ll see what I can do about several categories, I should check if WordPress has a default for that, or should I make my own hack.

    Has anyone tried the sidebar widget? I haven’t had time for testing yet. I’ll try to have it complete for the next version.

    As I wrote before, all your comments and requests are being written down for me to work on them. Thanks for the feedback!

  34. Klaas Koopman



    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1

    Hi There,

    I’m trying your plugin right now and it seems to be doing what it should be, but I was wondering, is it possible to get the following:

    Include it in the sidebar and that i can choose that if you visit the page about fishing, people will see the headlines of the fishing news. And when they visit the page of horseriding, they see the news related to the horseriding.

    If so, please let me know how I do this. Someone told me i can do it with if statements, but i’m no php expert haha

  35. Klaas Koopman



    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1

    and some other thing to my post above:

    $catposts = get_posts(’category=’.$ID.”&numberposts=”.$NUMBEROFPOSTS);

    Can i insert the id in there somewhere?

    Cause i tried:

    $catposts = get_posts(’category=’.$3.”&numberposts=”.$NUMBEROFPOSTS);

    and I trieD:

    $catposts = get_posts(’category=’.3.”&numberposts=”.$NUMBEROFPOSTS);

    But none worked…

  36. fernando



    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071618 Iceweasel/3.0.1 (Debian-3.0.1-1)

    Klaas:

    The sidebar widget is still on development. You can use it with at least one category (i think), with certain parameters.

    I didn’t really get what you mean with the headings of each page. You can make a new page with the Headlines of the fishing news by using [catlist name=fishing] for example, and so on with horseriding, etc.

    About the code you posted, you should give $ID a value. For example:

    $id=3;
    $number_posts=5;
    And then use them in your code.

    Hope this helps.

    Regards

  37. pcngocquy



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1

    thanks so much, it’s so great!

  38. tk



    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1

    Great plugin!

    How can i list just the title of the category and no posts? I just want a list of categories on the page.

    Also how would i include this in a template? Looks like you mention some code above so how do include this in the loop?

    Thank you so much!

  39. fernando



    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071618 Iceweasel/3.0.1 (Debian-3.0.1-1)

    tk:
    You can either write the code above in the sidebar file (generally sidebar.php), or use the sidebar widget included in the latest version of the plugin.

    The code doesn’t go in the loop, at least not the one for the posts. It has its own loop, where you bring posts for each category.

    I don’t know about listing categories, I think there already is something in WordPress to do that, but I’ll check it.

    Regards

  40. tk



    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1

    thanks so much!!

  41. sapien1980



    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

    good post! thanks :)

  42. gw468



    Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16

    I tried the code above that you replied to Frank and it just breaks the page. The page won’t even load.

    I am trying to add this to my archive.php file. I would like to show a list of post names only, sorted ascending by name for the current category and all children categories. Is this possible? How would I code it to be included on the archive.php page? BTW, using it in a post works beautifully, so I know it is installed correctly.

  43. Craig



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1

    Is there any way of adding pagination to this so that if you have 8 articles but only allow 4 per page, then there is a next button to take you to the next 4 articles.

  44. Mike



    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1

    Great plug in! I now have it working almost perfectly.

    I used the php code above in my template, at first it gave an error on this line:
    result .= $single->the_excerpt.”\n”.”;
    I fixed that by adding a $ at the beggining of the line and now it lists my posts perfectly but I cannot get it to show the excerpt. I have tried everything I can think of, and spent 2 hours searching the web for an answer, but no luck.
    Has anyone else managed to make it show the excerpt? muchas gracias

  45. Mike



    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1

    @tk
    I almost forgot ‘wp_list_categories’ is what you are looking for.

  46. Wardeh



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1

    Hi, I am using the widget. It works right off the bat, but I would like to be able to title my list of posts in the category specified. Right now it doesn’t do any title AT ALL, not even the category name.

    Thanks,
    Wardeh

  47. fernando



    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071618 Iceweasel/3.0.1 (Debian-3.0.1-1)

    Wardeh:
    Thanks for trying the widget. I’ll add a title on the next release.

    Regards!

  48. Mrs. Brown



    Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.7) Gecko/20060911 Camino/1.0.3 (MultiLang)

    Hi, Fernando, thank you so much for your plugin. I don’t know whether my little problem is related to the plugin or wheter its origin lies somewhere else. Anyway: I’m using this code to display the category list in the sidebar:

    ?php echo do_shortcode('[catlist name=Projects numberposts=5)]'); ?

    The list actually shows five titles but it displays titles from all categories I have, not just one category. I also tried to use the ID - with the same result. Do you have an idea what might be going wrong?

  49. Yick



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16

    I activated the pluggin, then I try to add the code to sidebar.php

    If I add [catlist id=24] to the html, it just print [catlist id=24].

    If I add [catlist id=24] inside php code, it gives me an error.

    Can you show me the exact coding to add to sidebar.php?

    <?php wp_list_categories(’show_count=1&title_li=Categories’); ?>

    I want to achieve the following result

    I see your examples but don’t know how to add the code correctly to the sidebar.php.

    Pls help.

  50. Yick



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16

    The result I want to achieve is

    (cat1)
    (post1)
    (post2)
    (cat2)
    (post1)
    (post2)
    (post3)

  51. aHfUi



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1

    fernando,
    how can i display unlimited for the category ?
    i try to set $NUMBEROFPOSTS = “”;
    but it no function …
    Thanks you

  52. fernando



    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008072820 Firefox/3.0.1

    Mrs. Brown:

    I had never used the do_shortcode function, but great if it works! I have no idea why it’s displaying posts from all of your categories. The ID should work as well. I think the “name” argument is actually the short url code for the category (See Manage => Categories => Your Category)

    Yick:
    Yeah, just adding the shortcode to html or php files won’t do it. I’ve said that on previous comments. Try the code I wrote up there for each category you want to display.

    aHfUi:

    ‘numberposts’ - Number of posts to return. Set to 0 to use the max number of posts per page. Set to -1 to remove the limit. Default: 5

  53. Yick



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16

    Ok, thanx for your kind reply. However, it only display the post in the category, it does not display the name of the catergory.

    How to display the category name and then the post in the category.

    Like
    (cat1)
    (post1)
    (post2)
    (cat2)
    (post1)
    (post2)

    Thanx a lot

  54. Conrad Erway



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1

    I am using AStickyPostOrderER to order my posts. I order I choose does not match with any of the choices you offer in the widget. Is there a way to pick the order from what I choose in AStickyPostOrderER? With this one added feature, this is a real winner.

    Also is there a way to put a title on the post lists in the sidebar widget such as you can with other widgets?

    Thanks.

  55. kirksydney



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b5) Gecko/2008032620 Firefox/3.0b5

    Great plug in! make some more. =)

  56. Martino



    Mozilla/5.0 (Macintosh; U; Intel Mac OS X; it; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16

    Hi there,
    very useful plugin.

    I was wondering if there is a way to have a class to display as selected the page you’re in. I mean, let’s say i’m in the home page and there is the list in the sidebar: i click a link and there i’m in the page, but the list doesn’t show that i’m already in that page.

    This

    $result .= "&lt;a href='";

    is the code i need to edit. That should have a
    <li class="<php if (page_is(BIG_PROBLEM))".

    The BIG PROBLEM is how to tell WP to get the ID of the page i’m in so that php render the special class.

    Maybe i’m not very clear, but i can explain better if anybody can help me :)

  57. RiteandRitual



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1

    I’ve had a heck of a time trying to find a way to make a standard static menu as described by Yick in the comment on Septiembre 12:
    (cat1)
    (post1)
    (post2)
    (cat2)
    (post1)
    (post2)
    … Looks like, of all the plugins for wordpress, this is the only thing that comes close to it. Great work! All you need now is to add the Category as a title and link (as above), let the user display all categories or choose which to exclude… and this will be a perfect plugin!
    Right now it looks like I have to do this manually…

  58. fernando



    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071618 Iceweasel/3.0.1 (Debian-3.0.1-1)

    Thanks for all your comments. Just a quick note to let you know all your requests will be considered for the next version.

    I’m running low on time recently, so as soon as I get some spare time, I’ll work on my WordPress plugins for a while.

    Regards

  59. Bob



    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727)

    Awesome plugin!

    I`m using several different categories on my website, and now i would like to display the last 5 posts within every category using the following code:


    $result = "";
    $catposts = get_posts('category='.$ID."&numberposts=".$NUMBEROFPOSTS);
    foreach($catposts as $single):
    $result .= "ID).”‘>”.$single->post_title.”“;
    endforeach;
    $result .= “”;
    echo $result;

    For example:
    =======================================
    Post in Category 1.

    [text]

    Last 3 posts in this category:
    - post 1
    - post 2
    - post 3
    =======================================
    Post in Category 2.

    [text]

    Last 3 posts in this category:
    - post 4
    - post 5
    - post 6
    ========================================

    I want this code to be dynamic so that i dont have to change the code for every single category.

    Do you have any idea how to achieve this?

  60. TN



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1

    Thanks for plugin. Nice

  61. Amanda



    Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.0.3) Gecko/2008092414 Firefox/3.0.3

    I just downloaded this plugin (not for the site listed above, but for a family member’s web site), and have followed the directions in uploading the plugin, etc. (as far as I know), but when I put your code in to list posts from a category on one of the site’s pages, it displays nothing. What could I be doing wrong?

    Thanks, I hope to get this working as I think this is just the plugin I’ve been looking for.

  62. krAzykrAkr01



    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092510 Ubuntu/8.04 (hardy) Firefox/3.0.3

    Great Plugin. It works perfect.

    To answer a question asked above, I have found that to get a title, the easiest way is to put a h2 tag with the title above the catlist shortcode.

  63. jG



    Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1

    congratulations, that’s a great plugin !
    I have one question for you …

    I use HeadSpace2 plugin :
    could you give me the code to display the meta title description despite the title_post ?

    your help would be really appreciated
    THANK YOU !

  64. Upekshapriya



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3

    Very useful plugin. Just what I’ve been looking for. Thanks very much for releasing it. :-)

    However [catlist name=mycategory] doesn’t seem to be working for me, even though [catlist id=ID] is working just fine. I am using Wordpress 2.6.2.

    All I get with [catlist name=mycategory] is a list of all posts of all categories.

  65. Moondome



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3

    I’m getting the same results as Upekshapriya. [catlist id=ID] works as designed (see the Berberova button on the site associated with my name above), but it would be nice to be able to use the category name.

    One additional question: can this plugin be configured to display the full text of the posts instead of just the titles, the same way clicking on a given category list does?

    My objective is to have a navigation button that points to such a page.

    Thanks so much for your contribution to the WP community.

  66. delbert



    Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14

    i’m trying to use the plug in but all i get are the most recent posts, not the most recent posts by category:

    http://dudespaper.com/welcome/

  67. Melton Cartes



    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22

    I’m having the same problem as Amanda.

    I’ve added “[catlist id=3]” to a test post and a test page ([catlist id=0] too) on my Sandbox (my local version of WP and my live site and nothing shows up.

    My test Page includes the resulting code without displaying text:

    &lt;div class="entry"&gt;
    &lt;p&gt;Blah, blah...&lt;/p&gt;
    &lt;ul class='lcp_catlist'&gt;&lt;/ul&gt;
    &lt;ul class='lcp_catlist'&gt;&lt;/ul&gt;

    The test Post does the same thing.

    I checked a different theme and I checked my CSS for any “hiddens” or “display:none”s and found no further clues.

    Thanks for any help.

    mc

  68. Moondome



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3

    In addition to the problem I mentioned a few posts above, I cannot get numberposts to work. I’ve tried 0, -1, and numbers greater or smaller than 5, but only the default five post titles appear on the page.

    Currently I’m using [catlist id=4 numberposts=7].

  69. Moondome



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3

    I might also mention that for comparison, I tried the widget. It seems to work as designed, although it would be nice to have the option to title the widget.

  70. fernando



    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092816 Iceweasel/3.0.3 (Debian-3.0.3-2)

    Thanks for the comments!

    I’ll look up those bugs you’ve mentioned, and try to release a new version asap.

    Any extra code is welcome.

    Regards

  71. aidee



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3

    Hello and thanks for the plugin!

    Is it possible to display posts relating to two (or more) categories i.e. posts with category ID 9 *AND* ID 13; posts marked with both these categories.

    I know there is the option in Wordpress to use the following code:

    query_posts(array(’category__and’=>array(9,13)));

    Is it possible to use the following:

    [catlist id=9&13]

    Thanks!

  72. aespe



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3

    Exactly just what i need, with a little modification, what i need is simply all post without grouped in categories :) here is the result http://aespesoft.com/semua-artikel/

    Thank you fernando

  73. Brooke



    Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.17) Gecko/20080829 Firefox/2.0.0.17

    Is there any way to get the excerpt to show with this plugin?

  74. Tino



    Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.17) Gecko/20080829 Firefox/2.0.0.17

    Is there a way to get the date to show after the title?
    I read the previous posts. However, I was not sure if this feature has been added or not.

  75. bill



    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3

    I have the same question as Brooke, can I add an excerpt using the shortcode?

  76. Pablo



    Mozilla/5.0 (Windows; U; Windows NT 6.0; es-AR; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4

    Hola Fernando, la verdad que el plugin es espectacular! Felicitaciones!
    Tengo una duda, ¿Es posible listar las entradas correspondientes a cada categoría una vez que estás dentro de la misma?
    Digamos, si ingresas a la categoría “Juegos” que sólo aparezcan en el Sidebar las entradas que correspondan a esa categoría.

    Un abrazo y mil gracias!

  77. site



    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; MSN Optimized;GB; MSN Optimized;GB)

    Hi,

    This doesn’t work for me.

    I have a page. I have a category called articles, so I have inserted this into the post:

    [catlist name=articles]

    But it displays 5 posts and not just from the artciles category but all categroies.

    Help please, thanks.

  78. clhmedia



    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SV1; Embedded Web Browser from: http://bsalsa.com/; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506)

    This is exactly what i have been looking for… hope it works :)

Trackbacks

  1. Leonaut.com
  2. 10 New Useful WordPress Plugins | Blog Oh Blog
  3. blog.rightreading.com » A WordPress plugin, and how to find category ID numbers
  4. List Category Posts | Gabfire web design
  5. 10 plugins wordpress novinhos em folha! | Wordpress Love - Themes, Plugins e tudo para Wordpress, em Português
  6. 10+3 nuevos plugins para Wordpress muy útiles | frogx.three
  7. Plugins Úteis para WordPress
  8. Tarde programando PHP para WordPress | Picando Código
  9. WordPress Plugin Releases for 08/19 | BlogBroker24-7
  10. ??? ? Wordpress » ????? ????? » ??????? ??? Wordpress (29.08.2008)
  11. ??10??????? | ?????
  12. wordpress??????????…? - ????
  13. BLOVEC » ??10???????
  14. 13?????Wordpress?? | ??????-HEAMO Digi Observer
  15. 10 plugins novos em folha para turbinar seu Wordpress | Wordpress Themes
  16. Nuovi plug-in per migliorare il vostro WordPress! | TechNotizieNews
  17. ??????? » ??10???????
  18. List category posts Wordpress Plugin (English) | Lesehan bareng Kang Oyot
  19. 10 New Useful WordPress Plugins | WP Passion
  20. 10 Plugins for Wordpress is very Useful | Blogs and Wordpress
  21. HellBoy » Blog Archive » 10 New Useful WordPress Plugins
  22. ??10??????? ? ????
  23. ??10??????? | ????-Blog QQ:47900026
  24. ??10??????? | ????-Blog QQ:47900026
  25. ??.com » wordpress????
  26. ??10??????? at Wopus????

Dejar un comentario