I'm new to the community, but I've been using WordPress (user level) for a long time now. I'm working now on a custom template and I can't figure out how to get something done the way I need it.
I'm trying to make a home template where posts are listed by category, I.E:
Post|Post|Post|Post (Load more)
Post|Post|Post|Post (Load More)
...and so on. I got it working sorting the categories with get_categories and then looping through them and through the posts: ($categories=get_categories() -> foreach $categeories as $category -> $posts=get_posts() -> foreach $posts as $post...) But I need to make the template show the most recently updated category on top, then the second one, etc. and since WP can only sort categories by id, name, slug, count or term group I'm having the hardest time trying to figure out how to do this, as my PHP knowledge is quite limited (I'm not dev of any sorts)
I'm beginning to think this might not be possible, can you guys give me some hints?