Show Post from Subcategories on a Category Page
-
I want to create one or more category templates (category-x.php) that display nothing but always the most recent post from it′s one or more subcategories.
Something that look likle this for example: https://www.wp-themes.der-prinz.com/branfordmagazine/a-three-column-page.
Imagine this page (it′s a page template in this case but never mind) is a category template and the 3 columns show the 3 subcategories of this parent category.
This category template of course should detect the subcategories automatically and dislay them with one article each.
Something like:”if it is a category that has subcategories display the most recent article of each subategory that has at least one article”
Doesn′t sound too difficult I thought but I simply can′t get it working. Can someone provide a code snipped?
Thanks in advance
Michael
- The topic ‘Show Post from Subcategories on a Category Page’ is closed to new replies.