- This topic has 3 replies, 2 voices, and was last updated 9 months ago by .
I want to get publish post with post_status when displaying the post field.
I specified query_args in the post field, but I get all posts.
$args = array( 'query_args' => array( 'post_status' => 'publish', ), ); $posts = rwmb_meta( 'field_posts', $args, $post->ID );
Is it possible to specify WP_Query in args of rwmb_meta?
- You must be logged in to reply to this topic.