WordPress.org

Ready to get started?Download WordPress

Forums

Recent Post By Category (9 posts)

  1. puCK2001
    Member
    Posted 9 years ago #

    Hi all,
    I'm trying to obtain for the sidebar something similar to

    Category 1 [XML]
    - Title of the last article in that category (data)
    - Title of the previous article in that category (data)
    - Title of the third article ordered by data descending (data)

    Category 2 [XML]
    - The same thing, three articles by data descending

    ... and so on

    any idea? thanks

  2. Lorelle
    Member
    Posted 9 years ago #

    You are asking a lot, but there are two ways you can do this, sorta. One is by using a plugin and ther e are quite a few that deal with this or you can also use the wp_get_archives() template tag to do this, but it does have some limits.

  3. Jinsan
    Member
    Posted 9 years ago #

  4. puCK2001
    Member
    Posted 9 years ago #

    no.. there's no way to get archives by category

    neither with wp_get_archives nor c2c's plugin...

    :(

    without that i cannot migrate from movable type...

  5. ColdForged
    Member
    Posted 9 years ago #

    Yes, there is with the previously mentioned c2c plugin. I use it for my asides and my currently reading list, both of which are categories. I detail how I did it with his plugin here.

  6. puCK2001
    Member
    Posted 9 years ago #

    Maybe with that one:
    Get Recent Post

    I'll try it and refer my feedback

  7. echozone
    Member
    Posted 9 years ago #

    I'm doing something similar in a sidebar using customizable-post-listings plugin with a conditional statement.

    The category links remain there, so it's like an expanding menu.

    If it's x category, or a post in x category, the sidebar gets recent posts from only that category.

    If it's a Page, it shows all categories' recent posts.

    If there's no posts (including a search with no results or a 404) it shows category titles with no recent posts.

    The main page is a static custom "Page" with hard coded links to the categories.

    The client's blog is not public yet, but you can see this in my test version.
    Notice the sidebar category recent posts expanding + hiding.

    http://echozone.com/blog/

  8. Roar
    Member
    Posted 9 years ago #

    WOW! Echozone, I LOVE what you have done with that expanding categories. It's awesome.

  9. echozone
    Member
    Posted 9 years ago #

    Thanks! Yeah I think it's pretty cool too.

Topic Closed

This topic has been closed to new replies.

About this Topic