Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function modify_archive_query( $query ) {
- if ( is_tax('ll_prop_type') && $query->is_main_query() ) {
- $query->set( 'orderby', 'meta_value_num' );
- $query->set( 'meta_key', '_spprice' );
- $query->set( 'order', 'ASC' );
- //$query->set('p', '361');
- }
- }
- add_action( 'pre_get_posts', 'modify_archive_query' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement