[WordPress] Get Posts By Term and Sort Them

/ Published in: PHP
Save to your folder(s)

1. Get Posts however you see fit
2. Loop through the posts getting the terms from taxonomies and add them to the Post object
3. Sort the Array of Post Objects by the property you want them sorted by using sort_on_field()

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.