Apply Sort Order to custom query
-
I’m trying to use your plug-in with a custom WP_Query() on a custom posttype. Is that something that should work or be possible?
Here is my query:
$args = array( 'post_type' => 'menu-item', 'posts_per_page' => -1, 'parent' => $cat_id, 'tax_query' => array( array( 'taxonomy' => 'menus', 'field' => 'ID', //can be set to ID 'terms' => $cat_id, //if field is ID you can reference by cat/term number 'include_children' => false ) ) ); $menu_items = new WP_Query( $args );
- The topic ‘Apply Sort Order to custom query’ is closed to new replies.