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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.