Category Posts Widget 1.2

I tried to think of some new features to add to the Category Posts Widget, but I couldn’t think of anything worth adding. Instead I fixed some bugs and tweaked how the plugin behaves.

Changes:

  • Fixed widget options save bug where title had to be specified in order to save options.
  • If no title is specified, the name of the category is used.
  • Maximum number of widgets increased to 20.

You can download the plugin at the official WordPress plugin repository.

Donate

This plugin was created by me and is made available free of charge. However, if you would like to show your appreciation, you can donate via PayPal by clicking the donate button in the sidebar. All funds go towards getting me into college so I can get an education.

18 Responses to “Category Posts Widget 1.2”

  1. Michael  on January 18th, 2008

    Thank you for this plugin; exactly what I needed.

  2. Nicolas  on January 23rd, 2008

    I have customized your plugin to display preview of posts. You can see it on my blog. Thanks for this nice plugin.

  3. lutfi  on January 26th, 2008

    Thanks.just like what i want. Nice plugin.

  4. Mark  on January 29th, 2008

    Hey James, great plugin! The only issues I had were:
    (a) posts in subcategories and
    (b) show nonempty categories.

    I have updated the plugin to allow users to select whether or not the show posts from subcategories and set the default category list to show empty categories. If this sounds useful, I can post/send you my (very minimal) updates.

    Cheers.

  5. Bill Weye  on February 1st, 2008

    how come my comment and suggestion was deleted?

  6. James  on February 1st, 2008

    Bill, you made your comment on a different post.

    http://jameslao.com/2007/10/21/category-posts-wordpress-widget/#comment-984

  7. Julien  on February 5th, 2008

    Brilliant Plugin, well done :)

  8. Michael  on February 6th, 2008

    Thank you for this widget!!
    If there is a version 2.0 the following features would be nice:

    * no filtering (all categories)
    * no limit at the numbers of post to show => all
    * sort the posts alph. (asc and desc)

    Thanks for Version 1.2 and looking forward Version 2.0 ;-)

    Michael

  9. robby  on February 8th, 2008

    Cool plugin James,

    Just had a quick question. Im trying to use php includes instead of the auto install of the widget sidebar. it’s just more flexible and not as limiting.

    I would like to call different settings for the widget depending on the page its on, for example:

    ??????

    ??????

    BTW im new to php, but anyways is it possible to do some type of get command and then apply the different variables depending on the page with just php after it has been activated?

  10. robby  on February 8th, 2008

    whoops, i guess you cant use those closing tags. didn’t know that. see i am new. :)

    ?php if (is_category(page1)) { ? ??????
    ?php } ?

    ?php if (is_category(page2)) { ? ??????
    ?php } ?

  11. Drew  on February 15th, 2008

    Maybe an opportunity to have a drop down option from the category chosen? Otherwise I think this plug was very helpful indeed.

  12. helen  on March 3rd, 2008

    Love the widget works really well. The only thing I want to do with it is sort from oldest to newest so the oldest post appears at the top due to the nature of the way I am using this. Is this easy to do? Perhaps I should do it myself but I don’t know enough about PHP to mess.

  13. irwin  on March 5th, 2008

    Hi James. I am trying to use Category Posts 1.2. to display a concert gig schedule on my sidebar. The only problem is that the order of events seem to be opposite that of the actual gig calendar. Any thoughts or resorting the order?

    Thanks in advance.
    is

  14. the surg3on  on March 8th, 2008

    How do i get the categories to display posts in a bulleted or numbered list?

  15. the surg3on  on March 8th, 2008

    Nevermind. I figured out how to do it.

    I edited the plugin this section of code at the top:

    echo $before_widget;
    echo $before_title . $title . $after_title;
    echo ”;
    nk_cat_posts($catID, $num);
    echo ”;
    echo $after_widget;

    AND CHANGED IT TO USED MY CSS STYLE BULLETS. THIS IS WHAT IT LOOKS LIKE AFTER I CHANGED IT.

    echo $before_widget;
    echo $before_title . $title . $after_title;
    echo ”;
    nk_cat_posts($catID, $num);
    echo ”;
    echo $after_widget;

    THE BULLETS CLASS COMES FROM MY THEME, WHICH IS ALREADY DEFINED USING THE MIMBO THEME.

  16. the surgeon  on March 19th, 2008

    how can i make the category name into a link so that users can click the title of the category and go to page of all the posts in that category?

  17. normalperson  on March 19th, 2008

    Dude James
    I agree with Michael posted on February 6, 2008:
    * no limit at the numbers of post to show => all
    * sort the posts alph. (asc and desc)

    If this could be in next version you’ll have a major slam banger plugin. I would even start using WordPress more.

    Nice one with the First robotics project. Stick it out and you might run the first WordPress enabled robot. (Why not, imagine basic WP install with a directional plugin – friendly bots with google map api or something.)

  18. James  on March 19th, 2008

    Thanks for your comments. I will work on integrating all these features into the plugin when spring break comes around next week. Life has been a little busy this past couple weeks.