Quantcast
Channel: Best way to arrange custom post types by Attributes -> Order metabox value? - WordPress Development Stack Exchange
Browsing latest articles
Browse All 2 View Live

Answer by two7s_clash for Best way to arrange custom post types by Attributes...

This did it:add_filter( 'pre_get_posts', 'my_get_posts' );function my_get_posts( $query ) { if ( is_home() && false == $query->query_vars['suppress_filters'] ) $query->set( 'post_type',...

View Article


Best way to arrange custom post types by Attributes -> Order metabox value?

I have my front page setup to display a custom post type via:add_filter( 'pre_get_posts', 'my_get_posts' );function my_get_posts( $query ) { if ( is_home() && false ==...

View Article

Browsing latest articles
Browse All 2 View Live