See WP_Query in Codex for info on how to query on custom fields.
$args = array(
'posts_per_page' => -1,
'cat' => 4,
'meta_key' => 'point_score',
'orderby' => 'meta_value_num'
);
$points_query = new WP_Query( $args );
while( $points_query->have_posts() ):
$points_query->the_post();
the_title();
echo ' : ';
echo get_post_meta( $post->ID, 'point_score', true );
endwhile;
Related Posts:
- group search results by post type?
- Alphabetical sorting of custom post type – one letter per page
- Store CPT ‘Reviews’ average ratings to a WordPress DB table or to a DB custom table?
- Custom post type, organized by categories
- sorting in wp query based on custom field value
- Pagination not working with custom loop
- Can the Next/Prev Post links be ordered by menu order or by a meta key?
- Display all posts in a custom post type, grouped by a custom taxonomy
- How do I set the default admin sort order for a custom post type to a custom column?
- Have different number of posts on first page
- Display all posts starting with given letter?
- Make custom column sortable
- How do you get the count of posts in an archive page?
- Using meta_query, how can i filter by a custom field and order by another one?
- register_post_type sort order by title by default
- wp_pagenavi() with custom wp_query()?
- Drag n Drop Post Order for multiple Custom Post Types
- Sort custom post type list table by display name of a user id stored as post meta value
- How to use a custom post type as front page?
- Custom sortable columns ordered by meta-value?
- How to show Y number of custom posts after every X normal posts?
- Display Authors Comments on Profile Page
- List all posts commented by current user
- How to order adjacent posts (prev / next) by custom field value?
- WordPress post sorting with AJAX
- Ordering posts by custom taxonomy in admin area
- Custom Post Type, WP_Query and ‘orderby’
- Filter admin columns by custom post field value
- Get Custom post with ID
- Sorting a query by custom field date
- Custom Post Type Pagination Not Working On Archive Page
- Custom Post Type Archive Page: Set Posts Per Page, Paginate
- Custom Taxonomy Template Post List with Sort Order
- Ordering Posts List By Taxonomy Terms?
- Column sorting with emtpy meta values
- Display several random posts, but make sure a condition is met
- Number of pages – multiple (custom) post types
- Category as Class for Custom Post Type
- Archive page…limiting posts per page
- Adding custom post type to loop
- WP_Query -> sort results by relevance (= most tags / taxonomy terms in common)
- how to sort post in admin column by recently
- how do I group content in magazine-style ‘issues’?
- WP_Query to loop a Custom Field, Custom Post Types do not show
- Custom Post type sort order not working in the admin area
- Retrieving 3 latest post from each of 5 different custom post types
- How to query custom posts using a dynamic category
- How to sort a table of custom posts by column containing custom field
- WordPress “Loop” with large set of results
- Pagination go to first page if i’m on last post
- Grossly inefficient wordpress loops!
- Posts in Multiple Columns and Rows with one single loop
- Order custom posts by taxonomy?
- Newer/Older posts links display same posts on every page
- Best way to style first post differently?
- How to solve suspected memory issue in custom WordPress loop?
- List events by month
- WP_Query on custom post type not displaying, multiple loops & get_template_part
- Conditional two level dropdown filter for custom post type
- How do I write this SQL statement for Posts written in last 24 hours?
- Show all custom post type posts sorted by custom taxonomy then by another custom taxonomy
- List all posts in Custom Post Type but group dynamically by Custom Taxonomies
- Using new WP_Query in shortcode in a custom field causes the main post content to not display
- Taxonomy posts on Archive page
- Group search results by post type, but hide post types with no results
- How to show posts from multiple post types in a single loop? And display them separately on the same template
- How to show related posts by category or custom post type?
- sort events based on event date custom field
- How to Sort Custom Field Admin Column by Date
- Fix custom query pagination without changing site-wide posts-per-page settings
- How to Sort by Date When Using d-m-Y Format
- Custom post type loops with different page templates
- Randomly placed sticky custom posts complemented by blog posts
- How to create posts (not post template) to be displayed on projects page?
- Custom Post Loop in Archive returns same the_permalink
- WP_Query post at custom position
- How to display the rest of categories on Portfolio filterable
- Should unaltered default loop/query return a list of custom posts belonging to a custom taxonomy?
- 404 error PageNavi custom type taxonomy | wordpress
- WooCommerce – Show orders for a specific product ? [closed]
- Get_post_meta() won’t return value
- exclude custom post type by meta key in wp_query
- Query for posts in 2 taxonomies
- Pagination with custom post types results in 404 issues
- Problems excluding a custom post-type from the loop
- Query Custom Post by Category
- How to get current post id of a custom post type in a loop using template singel-{custom type}.php?
- IF statement in a do_shortcode
- Sort Posts Best Practice
- Custom Post Type sorted by Title
- How do you output custom code between posts in the loop?
- Get the title of custom post type in another loop
- How to append element after thumbnail
- How do I Use Nested Loops of Custom Post Types for MultiSite Blogs using WP_Query()
- How to add new tab to admin list of posts and handle result list
- ‘category__and’ for custom taxonomy?
- WP_Query and using a variable for ‘cat’=> in the args array = WP Bug?
- Sort by two dates. Default entry date and custom field if present
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- Posts navigation in custom post type single.php not working