1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

List of categories sorted by Date?

Discussion in 'WordPress' started by packjazz, Jun 17, 2013.

  1. #1
    I am developing a WordPress site for a client in which every month there are two posts published into a new category (named for the topic of that month).

    I'm looking for a way to display the list of categories (topics) in chronological order. I'm thinking of two possible ways this can be achieved:

    1. List the categories and order by date. I have not found a good way to do this, probably because categories aren't time-stamped. Maybe there's a way to look to see how recent the posts in the category are and use that information to determine the order the categories?

    2. List the posts in a loop where I only display the category name for that post. The problem here is that since there are always two posts per category, the category name will show up twice. Is there a way to show only one post per category in a loop?

    Thanks for your help in advance!
    packjazz, Jun 17, 2013 IP
  2. themes4all

    themes4all Active Member

    Messages:
    535
    Likes Received:
    38
    Best Answers:
    6
    Trophy Points:
    75
    #2
    Why you don't simply use the List Category Posts plugin.. it use a short-codes and there is a Parameters to show the Posts by Date and Category... you will need to tweak it and looking around it...

    Goodluck
    themes4all, Jul 1, 2013 IP