Support

Account

Home Forums Backend Issues (wp-admin) How Do I Further Constrain a "Filter by Post Type" Result Set Reply To: How Do I Further Constrain a "Filter by Post Type" Result Set

  • Thank you for the reply, John. My short-term goal is the latter (i.e., all selected products “are related to the manufacturer”). However, I plan to implement the former as well, which is to subselect a list of products from the manufacturer field.

    While I appreciate having the “post-2-post-for-acf” plugin available, I want to avoid a solution that adds another plugin to my site. Interestingly, the link you presented for “acf/fields/relationship/quaery filter” reads like it can address both goals. Specifically,

        // Restrict results to children of the current post only.
        $args['post_parent'] = $post_id;

    Yet, I am unsure if this ACF WP filter hook manifests within the custom post type’s editor window or only in the rendered HTML, which may be why you introduced the “post-2-post-for acf” plugin.

    I would appreciate your thoughts on this. Thank you.