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.

This was posted on January 16, 2008. It’s a prose on plugin, widget, and wordpress. CommentsHope you like it.

  • Thank you for this plugin; exactly what I needed.
  • Nicolas
    I have customized your plugin to display preview of posts. You can see it on my blog. Thanks for this nice plugin.
  • Thanks.just like what i want. Nice plugin.
  • Mark
    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.
  • how come my comment and suggestion was deleted?
  • Bill, you made your comment on a different post.

    http://jameslao.com/2007/10/21/category-posts-w...
  • Julien
    Brilliant Plugin, well done :)
  • Michael
    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
  • robby
    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?
  • robby
    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 } ?
  • Drew
    Maybe an opportunity to have a drop down option from the category chosen? Otherwise I think this plug was very helpful indeed.
  • 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.
  • irwin
    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
  • the surg3on
    How do i get the categories to display posts in a bulleted or numbered list?
  • the surg3on
    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.
  • 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?
  • normalperson
    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.)
  • 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.
blog comments powered by Disqus

back to the top