Sort post by a custom field
-
I’m liking this widget! I’ve used it to display a list of recent posts of a specific type on my front page (the link is to my sandbox site). But, I really need to sort those posts by a custom field. I have it working fine on the actual posts archive page, but the recent posts widget extended is clearly using a custom query that isn’t taking into account my custom sorting field (set in my functions.php using a custom my_pre_get_posts). Does anyone know how to get it to use a custom field for sorting? Thanks in advance.
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Sort post by a custom field’ is closed to new replies.