functions – How to sort posts alphabetically based on a specific parent category
I’m building out an index page of posts that are grouped under multiple categories, but those categories are all under the same umbrella parent category.
I’d like to have these posts displayed alphabetically by default.
I’ve found functions that work to change the post order globally on my site, but I’d like to find a function that works to ONLY sort posts alphabetically based on either the post ID of this index page or the parent category ID.
I’m using a Divi child theme if that matters for anything.
02 months 2023-02-05T19:56:31-05:00 2023-02-05T19:56:31-05:00 0 Answers 0 views 0
Leave an answer