Support » Fixing WordPress » Display one recent post from parent category on index.php

  • srhnbr


    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?

Viewing 1 replies (of 1 total)
  • baroncastor


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

Viewing 1 replies (of 1 total)
  • The topic ‘Display one recent post from parent category on index.php’ is closed to new replies.