How to list posts from a certain category in the Awake Recent Post widget?

(7 posts) (4 voices)

  1. blueciccio
    Member

    I think the question is simple...
    otherwise can someone suggest a way to show recent posts from a single category in the sidebar in the "Awake Recent Post" widget style?
    help very appreciated!
    Thanks in advance

    Posted 11 months ago #
  2. Ruderic
    Support

    Hello,

    Go to the theme folder and open the file "lib/functions/widgets.php". In line #392 you will find this code:

    $posts = get_posts("cat=$exclude_blog_cats&numberposts=$number&offset=0");

    Replace "$exclude_blog_cats" with a single number, indicating your desired category ID. For example:

    $posts = get_posts("cat=12&numberposts=$number&offset=0");

    Let me know if you have more questions.

    Posted 11 months ago #
  3. blueciccio
    Member

    Thanks!
    works fine.
    Any theme upgrade in the future to choose one or more categories directly from the widget?
    Ciao!

    Posted 11 months ago #
  4. Elliott
    Support

    Glad you got it sorted blueciccio. I'll move this to feature requests and we'll take a look at including it in the next update.

    Posted 11 months ago #
  5. This would be a great feature to have and I think it would benefit quite a few users with this situation!

    I have a customers site that I am working on and they are an investment firm in several different businesses......what I'd like to be able to do is identify each company with a different post category and then call the recent news for that company only in the "Awake - Recent Post" widget on their page.

    If this is possible without adding it to the feature request, I would be interested in knowing how to accomplish it.

    Thanks!

    Posted 11 months ago #
  6. Elliott
    Support

    Hello apbrown25,

    Go ahead and try out Ruderic's quick fix. I moved it to feature requests so we can take a look into adding it to the next update.

    Posted 11 months ago #
  7. I ended up finding a plugin that does what I was looking for. Here is the link in case in helps anyone else.
    http://wordpress.org/extend/plugins/category-posts

    Posted 11 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme