WordPress.org

Ready to get started?Download WordPress

Forums

Display one recent post from parent category on index.php (2 posts)

  1. srhnbr
    Member
    Posted 5 years ago #

    Hello,
    I have 2 issues really
    First I want to display one post (the latest) from each parent category on my index.php instead of the standard loop.
    I don't want to have to write out each category's id, since I want to get all the categories for this.
    How would I do that?

    Then something similar, if I have subcategories I want to do the same on category.php. That is display the latest post out of each subcategory when I've clicked on the parent category.

    Ok so to make it clear again, php should:
    get each category
    get the latest post from each one and display it.

    Can anyone help?

  2. baroncastor
    Member
    Posted 5 years ago #

    I've got exactly the same problem, and I'm waiting with you for an answer....

Topic Closed

This topic has been closed to new replies.

About this Topic