- This topic has 1 reply, 2 voices, and was last updated 6 years, 5 months ago by .
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › [Help] Tips for using ACF post objects with S&F
Tagged: acf, post meta, post object
Because it is not recommended to connect one taxonomy (As stated on this forum here somewhere) to multiple post types I had the idea to create an extra post type which holds in theory some terms and connect them via post objects. I have used this multiple times now on multiple sites and this works fine, but never with S&F.
Right now I am sketching out the site structure of a large site which has multiple post types and all these post types are connected to specific animals (as terms) through out the site, so what I want is have a post type with animal names and connect them via the ACF post object field, but each post type (eg news, downloads, events) has their own custom filter on which you need to filter (eg all news posts that have the post object Animal connected to Dogs), are there things I should keep in mind while building this?
As a last resort I cloud create all separate taxonomies for each post type, but this means I have to manage as much animal terms as there are post types which is not a DRY way of working.
Search & Filter Pro supports some ACF relational field types, but not the complex ones. For example, it DOES support the Post Type Object field. It can fetch the Post ID of the term and display the Title in the field list in the form.
What it cannot do is further digging in to the Post, to fetch other data terms. This is because ACF has a simple method to return the ID or Title, but no other data.
I am not sure if that helps.
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
We also use cookies to store items in your cart as well as allowing your to login on the site.
You can adjust all of your cookie settings by navigating the tabs on the left hand side.
By continuing to use this site, you also agree to our Privacy Policy.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
*Other cookies used for logging in and cart functions will only be used when you use those features and cannot be disabled.
If you disable these cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!
More information about our Cookie Policy