Support

Account

Home Forums Front-end Issues Set post object field using php Reply To: Set post object field using php

  • Hi @marco82 ,

    You could use the post_parent in the query as

     // only show children of the current post being edited
        $args['post_parent'] = $post_id;
    	
    	// return
        return $args;

    Let me know how it goes.