• Resolved hsquareweb

    (@hsquareweb)


    The posts excluded are not showing in the Advanced Custom Field “post object field”. How do i allow all posts to show in that field?

    This is as far as i got with the function for the field:

    
    function featured_video_field( $args, $field, $post_id ) {
        $args['post_type'] = 'videos';
        $args['post__in'] = get_option( 'sep_exclude', array() );
        return $args;
    }
    add_filter('acf/fields/post_object/query/name=featured_video', 'featured_video_field', 10, 3);
    

    Thank you.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘ACF Post Object field not showing excluded posts’ is closed to new replies.