List category posts Wordpress Plugin (English)
Wordpress 2.7 compatible
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]
‘date’ – Display the date of the post next to the title. Default is ‘no’, use date=yes to activate it.
‘author’ – Display the author of the post next to the title. Default is ‘no’, use author=yes to activate it.
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. It works pretty much the same as the plugin itself.
List Category Post was initially written with Geany
Now it’s being written with GNU Emacs.
Support this plugin:
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.
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/



Creative Commons Attribution-Share Alike 3.0 Unported License
Los contenidos de éste sitio se encuentran publicados bajo
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
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
Thanks for commenting.
Regards
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:(.
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.
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):
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
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.
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
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!
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
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.
Thanks again and keep up the good work.
Toto
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 ?
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:
. The plugin is hosted at wordpress.org:
Sorry for that, the link was missing
http://wordpress.org/extend/plugins/list-category-posts/
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!
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
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?
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:
The plugin will include a widget in a future release.
Thanks for using it!
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.
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
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
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.
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
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
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
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:
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
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?
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
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!
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!
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!
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
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
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…
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!
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
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…
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
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!
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!
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
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!!
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.
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.
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
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.
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
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!
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:
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?
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.
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)
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
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:
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
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.
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. =)
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
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
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…
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
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?
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
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.
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.
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 !
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.
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.
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/
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:
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
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].
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.
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
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!
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
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?
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.
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?
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!
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.
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
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4
name= does not work if you have multiple words in your category name.
[catlist name=top 10 numberposts=10]doesn’t display the “top 10″ category items.
name=”top 10″ doesn’t help.
Great plugin – saved the day for me.
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5
fantastic plugin! and I’m happy it works as a sidebar widget now.
Perhaps you could throw in the option to have a customizable Title in the widget options.
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1
This is exactly what I need. Are you developing this for 2.7?
It seems very popular thank you
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092921 IceCat/3.0.3-g1 Kubuntu
I’ll be releasing a new version soon. This will include some extra customization for the sidebar widget, and WordPress 2.7 compatibility.
Has anyone tried it on WordPress 2.7? I haven’t yet… But I’ll sure do in order to get compatibility with WP 2.7 and 2.6.
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1
I am using .3 on a site I just created (http://www.reformedlafayette.com) with Wordpress 2.7. It was working great, I upgraded to .4 and I receive the following error message.
“Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/wp-content/plugins/list-category-posts/list_cat_posts.php on line 62″
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1
Thanks for the quick fix Fernando!
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.2)
Very nice Plugin!!! Thanks you so much ^_^
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5
Thanks for the update! I notice the title option is now in there.
A quirk I’ve found in both the newest update and just previous (I’ve only tried it on wordpress 2.7) – everytime I save the widgets’ setting on my sidebar and then re-open the detailed options for your widget it seems everything is reset (to the first category, blank for the # of posts field, order by date, descending), instead of showing the previously saved settings.
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
This plugin worked great until I upgraded the plugin in Wordpress 2.7.
The pluginseems to want to list everything on my website, instead of just the category specified.
I went back to the old version of the plugin, hoping I could get it working again. But no luck! The plugin is still listing everything on my website instead of just the categories specified. Any ideas what is going on?
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092921 IceCat/3.0.3-g1 Debian GNU/Linux
bilyxiao.com:
Seems I forgot to program the part for the widget to remember its configuration :O
Will be done for next release.
cynthia:
Which parameter are you using? Apparently some users have problems when using the name instead of the category ID. Maybe something else changed on WordPress 2.7 I didn’t realize…
I’ll check it out.
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.3;MEGAUPLOAD 1.0
Hello, I am trying to use this plug in but I can`t get it working for some reason. I either really stupid or there`s something I`m missing.
Here`s what I`ve done.
I`ve uploaded the files into the plugins directory in it`s foot folder “list-category-posts”.
After that I went to the page where I wanted to post the list of post in the catagori and I used these variables.
[catlist id=3 orderby=title order=asc]I`ve also tried..
[catlist name=action orderby=title order=asc]
Nothing shows up on the page. If someone can help me out that would be great. I am using wordpress 2.6
Thanks
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.3;MEGAUPLOAD 1.0
and yes i did activate the plug-in. I forgot to mention in my last post.
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5
hi
I’m slowly trying to figure out Wordpress and was really thrilled to see this plug-in because it sounded just like what I was looking for!
Whenever I use a [catlist] it only displays the titles of the posts.
Is there a way to display the full post information (title, date, post text, comments) similar to the way posts are displayed on the front page??
Sorry if its been asked before, but I didnt see it in my skimming
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008122316 IceCat/3.0.5-g1 Debian GNU/Linux
Dave:
If the plugin was correctly activated, then I don’t see where the problem is. The syntax is correct. Maybe the id for the category is wrong? Try with a different category ID and tell me if it works.
graham:
There’s a category page for that in WordPress. If you want to show all of the information, check the category’s page.
Regards
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.3;MEGAUPLOAD 1.0
Hey Fernando,
It turned out to be my website host.
I have a test website where i test all plug-ins. It’s a free hosting site so maybe they had some set persmisson on certain files. Aynway, I’m using it on my real site now and it’s working great. Thanks for the excellent plug-in.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008122316 IceCat/3.0.5-g1 Debian GNU/Linux
Dave:
Glad it worked! You’re welcome!
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
Hello,
I’ve been trying to get this working, and just now I tried
[catlist name=articles orderby=title order=asc]The ascending and title works, but the category doesn’t.
As in, the command of listing posts from a certain category does not work, nor does replacing it with id instead work either.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092921 IceCat/3.0.3-g1 Kubuntu
site:
What version of WordPress are you using?
I don’t know about these bugs, I’ve tried to find out about them, but I don’t have enough information.
Maybe incompatibility with other plugin?
I’ll check the code…
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
I have wordpress 2.7 and don’t have other plugins there.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
Add “lcp_catlist” class into your theme’s CSS for custom formatting.
What do I do witht he aboce?
I’ve activated the plugin and put the [cat name] ec. in but do I need to do the above?
Thanks.
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.3;MEGAUPLOAD 1.0
Hello again Fernando,
I would like to use your plug in on a page to show the most recently updated posts. The problem is that I have over 30 catagories and I’m wondering if there is an alternative to listout out every catagorie like this [catlist id=1 catlist id=2 catlist id=3 ... orderby=title order=modified]
Thanks in advance
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
ah okay it works, had it on the wrong page- thanks!
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
Hello,
How do I put the code for posts from tages?
As catlist id=104 will list for the category id 204 but how about for the tags?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
I would like to display posts from tages.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
Anybody know how to list all post for a specific day? For example an end of the day listing of posts?
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
For the people using WP 2.7 who find that it is not listing the posts in the proper category, here is your solution:
1) Use [catlist id=VALUE] INSTEAD OF [catlist name=VALUE]
2) To find the category id # in WP 2.7, go to the main categories page, click on the category, and look in the url
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
This is an amazing plug-in!
I have found a part that does not work for me.
The catlist ignores “private” posts. I would like the titles of those posts listed as well, as I am using WP Sentry to give access to certain private posts to certain groups.
Is there a way I can get catlist to include posts listed as “private”?
Thanks!
keith
Mozilla/5.0 (Windows; U; Windows NT 5.1; sv-SE; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
Hi,
great plugin – just what I needed!. Is there a way do make it display postings from the last x days – I want to post a weekly “This weeks postings”, and then just display the last 7 days.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
The parameter NAME does not work. ID does work fine.
Using with Wordpress 2.6
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
Hello,
How do I list them in columns like on your example page?
Thanks.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
I Love this plugin but really need to show excerpts of each post Has ANYONE been able to show post excerpts?? If not is there a plugin that will list post excerpts from a particular category on a wordpress page ??? thanks, Megan
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)
Hi, is it possible to add the post excerpts? I’m interested in show all the post from an specific category with its excerpts. Thank u in advance
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
Hello,
I was just curious if there was a way to list posts from one single author. I want to create a page that will show the authors name with the authors posts below it. Something like this:
Bob
Authors post
Authors Post
Tom
Authors post
Authors Post
Authors Post
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008122316 IceCat/3.0.5-g1 Debian GNU/Linux
Dave:
There’s no alternative to showing posts from different categories yet other than writing it several times. It’s one of the features I worked on, but it isn’t ready for release yet.
site:
There’s not a way to display posts from tags. At least not yet, I hadn’t thought about it. Maybe I can include that in a future release as “[taglist id=tagid]” or something.
Keith Moen:
I don’t know about private posts. I’ll check WP Sentry when I have some spare time.
Carl:
Not yet, could be a future implementation.
fred:
How about with the url name for the category?
site:
Try with divs or tables.
Megan, Miss Lunatic:
Not yet. I’ll look into that too.
mike:
I could look into that for a future release.
To all af you thanks for using List Category Posts. I’ll make an update as soon as I have some time for php…
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
could you tell me the exact code please?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729)
Hey Fernando,
Thanks for making this excellent plugin. I know it works because I used it with the iNove template using wordpress 2.7 – but now I’ve switched themes (to the Gear theme) and it does the strangest thing: after I upload it to my server, then activate the plugin, it shows up as a widget but I can’t click ADD! There’s just no button for it.
Is there some other way i can insert it directly into my page?
Thanks!
Glenn
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729)
Hi, i tried to use your plugin but the lists of post titles is somewhat wrong because i use jLanguage plugin.
The titles appear as [english]Title[english][spanish]Titulo[/spanish] and not Title when in english or Titulo when viewing my blog in spanish.
The Recent Posts that WordPress has by default works great. So, maybe you can make some magic with your plugin to work along with jLanguage.
Thanks.
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.1; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.5.30729; .NET CLR 1.1.4322; .NET CLR 3.0.30618)
I’m pretty sure the line:
if($atts['name']!=’default’ && $atts['id']!=’0′){
Should be:
if($atts['name']!=’default’ && $atts['id']==’0′){
Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729)
Suggestion:
http://wordpress.org/extend/ideas/topic.php?id=2390
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.6) Gecko/2009011912 Firefox/3.0.6
i’ve got it halfway working for 2.7
i can list categories only by their ID – but i’m having a difficult time with the numberposts option – the page i’m trying to display all this on just comes up black when i try to use this option in more than one place…
this is what i’m trying to do:
`
beverages
[catlist id=23 orderby=name numberposts=-1]
breads
[catlist id=31 orderby=name numberposts=-1]
breakfasts
[catlist id=34 orderby=name numberposts=-1]
condiments
[catlist id=25 orderby=name numberposts=-1]
cooked veggies
[catlist id=29 orderby=name numberposts=-1]
entress
[catlist id=30 orderby=name numberposts=-1]
desserts
[catlist id=32 orderby=name numberposts=-1]
salads
[catlist id=28 orderby=name numberposts=-1]
snacks
[catlist id=22 orderby=name numberposts=-1]
soups
[catlist id=26 orderby=name numberposts=-1]
`
any suggestions or help would be much appreciated!
Mozilla/5.0 (Windows; U; Windows NT 5.1; es-AR; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6
Hola gracias por el plugin. Es muy util! Pero tengo un problemita, no hay alguna forma de agregar mas de un widget. Tengo 3 sidebars y necesito agregar un widget por cada una de mis secciones. Al poner una ya no se puede usar mas!!
Un abrazo!
Maxi
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729)
how can i use this code in the side bar i mean if i want to add * ‘ASC’ – Ascending (lowest to highest).
* ‘DESC’ – Descending (highest to lowest).
can anyone help please ?
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.48 Safari/525.19
Although I think I have used the right code, it only shows me 5 posts per category.
See here: http://www.recipemobile.com/recipes
The code I used eg. [catlist id=15 numberofposts=-1]
Please help!
Mozilla/5.0 (Windows; U; Windows NT 6.0; pt-BR; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6
OHHHHHH YEAHH!!
i got it!! oh yeahhhh!!!
thanks dudeeeeee thanks so much =D
bate aiii
o/
/|
/\
e noixxx!!!
saudacoes brasileira!!!!!!!!!!
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729)
Hi Fernando,
Great plugin! Easy to use!
I’ve made a little adaptation on it though, to exclude the current post on which the list will be displayed. Thus when I now put your [catlist] on a post, that post itself will not be displayed in the list.
Might be useful for others too, maybe an argument to pass in? Like exludeCurrent=yes?
Alterations that I did:
//define the current post
global $post;
$thePostID = $post->ID;
//inside the foreach loop, filter the current post
//that is: only display other posts than the current one
foreach($catposts as $single):
if ($thePostID != $single->ID){
$output …. (your code)
}
Keep up the good work!
Tom
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6
How can I exclude the current post from the list of results?
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729)
Is there a way to change how the date is displayed? I’d like to have it like this: Mar. 1/2009 (without the time)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729)
Thanks for a great plugin. Question about the css.
My my dynamic horizontal menu is ul,li so I changed the plugin output to just ul and it worked perfect. In the next upgrade can you have separate styling for li,ul display?
Thanks.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008122316 IceCat/3.0.5-g1 Debian GNU/Linux
I’ll see to add Tom’s code to the next release, as well as a way of changing the way dates are displayed and the CSS Andrew requests.
Thanks!
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6
Nice plugin, for things like this I usually prefer hard coding into template file, though laziness took over and I gave in. Im glad that I did, this sweet little plugin saved me allot of time. Good job man….. Be sure to mention you somewhere out there…..
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.3;MEGAUPLOAD 1.0
Hey Fernando,
I’m wondering if there is a way to show only posts that have been posted within a certain ammount of days within a page. I’d like to have a few tables such as “todays posts” and “yesterday’s posts” and have them display on my front page.
Let me know. Thanks
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7
i am using it inside a page and it is working well for me with my version of wordpress i.e 2.7.x now i would like to use this inside a template file. How can i use it?
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.0.6) Gecko/2009011912 Firefox/3.0.6
How to add .widgettitle class to widget title?
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322)
Your plug in is exactly what I need but I cannot get it to work. All I get in the page is the code, not the content.
That is, the page says:
Blah blah blah
[name=sewing]
where sewing is my category name.
I tried disabling the WYSIWYG editor but that made no difference. It is as if your plug in is just not there.
Version 2.7.1
Thanks
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322)
Sorry, I got it to work – forgot to put catlist in the slug. Oops
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322)
[catlist id=4]works
[catlist name=sewing]does not
it just lists all posts!
I tried name=Sewing, name=’sewing’ does
not work either.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8
Great plugin… just needs a little more explanation when suggesting php hack.
Quick suggestion:
When you say “Change $ID for the category’s ID and $NUMBEROFPOSTS for the max number of posts you want to display:”
You need to remind people that the numbers entered need to be in “” marks. For example… if category ID is 7 and number of posts is 10 then the code will look like this:
$catposts = get_posts(’category=’.”7″.”&numberposts=”.”10″);
Otherwise… you get the T_Dnumber parse error
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8
OOPs! Quick follow up… That code had ” instead of ‘ !!!
Meant to say single quote marks (otherwise IE loads page but gives an error message)
So for the same example:
$catposts = get_posts(’category=’.’7′.’&numberposts=’.'10′);
Sorry!
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.8) Gecko/2009032608 Firefox/3.0.8
Hello,
Is there a way I can change the format of the date? I’d like it to display like this: Thursday, April 2, 2009.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8
I can’t figure out how to configure the css to show the post date in the list… is this even possible?
Thanks!
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8
OH I’m stupid sorry – i have figured it out. duh.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8
hi,
nice work! and a hell a lot of comments! i have been wondering if i could get you to extent the functionality of this plugin a little more? things like the_content or the_excerpt would be REALLY GREAT !!! i don’t actually know if that is even possible!? let me know.
greetings
marc
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020414 IceCat/3.0.6-g1 Debian
Hey marc,
I haven’t updated the plugin for a while, since I’ve been pretty busy with work and stuff.
But as soon as I get on another plugin updating streak, I’ll try to include as many new features as possible, mostly based on the comments.
Thanks for using LCP!
Regards
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.8) Gecko/2009032608 Firefox/3.0.8
Hello! Is there a way to show a list of multiple categories? For example, to sort by cat1 AND cat2? This would rock, though the plugin is fantastic now.
Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en; rv:1.8.1.21) Gecko/20090327 Camino/1.6.7 (like Firefox/2.0.0.21pre)
For those who want to use excerpts, this
small addition works for me.
Edit list_cat_posts.php.
After line 64, add:
That’s all!
Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8 (.NET CLR 3.5.30729)
Hello, Thanks ! Great Plugin !
But in my category i have more of 150 article and when i use
numberposts=0
I no see page 1 2 3… or Next Page Prev Page
( in wordpress i have defined 30 articles)
And if i use numberposts=-1 :
All article links are in one page and google doesn’t like more of 100 links.
How do the plugin list items according to the number defined in wordpress and the links to the following pages
Big thanks
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.9) Gecko/2009040821 Firefox/3.0.9
I’m trying to remove the time from the date option, but can’t seem to get it to output anything.
I tried chaning
$output.=$single->post_date
to
$output.=$single->post_date = date(”d-m-y”,strtotime($post->post_date))
but it returns 0 for the date. Any ideas?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10
Hi Fernando,
Thanks for making this great plug-in, really useful for me, exactly what I was looking for!
@ Kane (and other trying to change the date format)
Edit the list_cat_posts.php
at line 59 change
$output.=” – “.$single->post_date;
to
$output.=” – “.$single->post_date = date(”l, F jS, Y”,strtotime($single->post_date));
where “l, F jS, Y” is according to the standard Wordpress date formats which can be found here
http://codex.wordpress.org/Formatting_Date_and_Time
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)
Great plugin. How would I go about adding a small image before the links?
$output .= “I WANT AN IMAGE HEREID).”‘>”.$single->post_title.”“;
For some reason when I try to add the normal deal it errors and makes my page entirely white. I don’t know a good way to do so, any help will be appreciated. Thank you.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)
Sorry code came out wrong…
$output .= "I WANT IMAGE HEREID)."'>".$single->post_title."";Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10
@Joe,
Thanks! That worked with one minor change. the double quotations needed to be single quotations within the date format.
$output.=” – “.$single->post_date = date(’l, F jS, Y’,strtotime($single->post_date));
You are my new hero!
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.10) Gecko/2009042315 Firefox/3.0.10 GTB5
can you append the icon “new!” to the first entry of a list of posts in a category and to be removed by some specified date–i know this it too muc to ask, maybe do the “new! first and worry about the date later.
thanks for a great plug in
Phil
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)
Thanks for the plug-ins. the listing works great, but I have installed a multi-language tool called gengo.
I have both english and french translations and both show in the category list when I am looking at the english or french site.
Any thoughts on how to work around this?
thanks in advance.
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; fr-fr) AppleWebKit/528.16 (KHTML, like Gecko) Version/4.0 Safari/528.16
Hey. Is it possible to use th eplugin to display the list of the posts + the thumbs ?
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.65 Safari/525.19
Love the plug in; however, whenever I edit any of my side bar widgets it resets. Any idea why?
Thanks,
Jim
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 GTB5 (.NET CLR 3.5.30729)
Hi there … how can i use this plugin in my sidebar without widgets?
Can i use a specific php code?
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)
Has anyone tested this on Wordpress 2.8 yet?
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)
Don’t worry it was a different error, not this plugin.
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SV1; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 1.1.4322; Windows-Media-Player/10.00.00.3990; .NET CLR 3.5.30729; .NET CLR 3.0.30618)
Can someone walk me through the installation of this? I do not understand. This is the part of the instructions I don’t get…
Add “lcp_catlist” class into your theme’s CSS for custom formatting.
I am trying to get my posts to list by category on my archives page. Any ideas? Hope someone can help. This looks like what I need, jsut not that saavy when it comes to code, etc.
Thanks!
Duncan
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10
I wanted to use only pages and keep posts seprate from my content. This plug in help me a lot.
THanks for sharing.
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.31 Safari/530.5
This is fantastic! I spent the whole day trying to create something like this myself, without any luck. And then I came across your plugin. Thank you very much. I use it to display “Related Articles” on my blog posts: http://www.ausbusiness.net/review/brain-games-for-kids/
Thank you very much.
Guennadi M
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.33 Safari/530.5
Is there any way by which I can show the title of the category above the category? Example:
Apple:
1. abc
2. pqr
3. xyz
where ‘Apple’ is the name of the category & ‘abc’; ‘pqr’; ‘xyz’ are posts under the category ‘Apple’
Thanks
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Safari/530.17
Welll, I figured out my last issue, however is it possible to customize the layout, like show the date in the next line (but the same bullet)?
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.1; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)
It took me a bit of fiddling about but I got it working! It’s on a site which could be considered commercial so no link to the placement but it’s a great plugin and realy helps with site navigation!
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
Anyone know how to have 2 categories showing with 2 different styles applied?