Sort by custom field value

Have you tried hard-coding the category parameter for testing, and additionally trying different methods to set the query parameters.. Eg. query_posts( array( ‘category_name’ => ‘myname’, ‘meta_ke’ => ‘wpfp_favorites’, ‘orderby’ => ‘meta_value_num’ ) ); query_posts( array( ‘cat’ => N, ‘meta_key’ => ‘wpfp_favorites’, ‘orderby’ => ‘meta_value_num’ ) ); query_posts( array( ‘cat__in’ => array( N ), ‘meta_key’ => … Read more

Sorting results from JSON-API on custom fields

Looking through the source code, this plugin maps the query variable orderby to the WP_Query argument of the same name, orderby. What this means is that you should be able to do the following: http://www.example.com/wordpress/?json=get_author_posts&author_slug=user&post_type=custom&include=title,custom_fields&custom_fields=date_value&count=10&page=1&orderby=date_value

Custom Table Column Sortable by Taxonomy Query

To achieve adding a custom sortable column to the WP_List_Table of your post type within the WordPress administration back-end dashboard, you will need to do the following: Replace all occurrences of YOUR-POST-TYPE-NAME with your actual post type name. Replace all occurrences of YOUR-TAXONOMY-NAME with your actual taxonomy name. Replace all occurrences of YOUR COLUMN NAME … Read more