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?
- The topic ‘Display one recent post from parent category on index.php’ is closed to new replies.