- This topic has 1 reply, 2 voices, and was last updated 6 years, 7 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
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 › Add S&F on CPT Single Page based on ACF Relationship
Tagged: acf, cpt, custom field
Hi!
I’m currently working on a site, where i’m using ACF Relationship.
I want to know if its possible to add S&F on a Single CPT Page, and filter based on ACF Relationship field.
Example:
On https://bitcoin.bull-software.ro/casino_cpt/bazat-casino/ we have Deposit Methods: Bitcoin, Ethereum, etc.
Deposit Methods is a CPT “cpt_acceptedcurrency” .
casino_cpt is in relatioship with cpt_acceptedcurrency using a custom field named: ‘cpt_field_site_accepted_cryptocurrencies’.
Right now, i can do a WP Query to display all casino_cpt that is in relationship with cpt_acceptedcurrency, but i really dont have any idea how can i add a S&F for that.
Thanks!
If I understand you correctly.
You want a form on a single post page, and for it to filter and area on that page that would show results based on terms found that come from settings on that page?
That would require some very custom PHP coding in the single post template page, where you would determine which prebuilt form to use, and then load according to that code whichever form you would need. However, most display results methods require a fixed results URL, and for those that do not, I cannot see this working.
I am sorry, but with the current version of our plugin, I cannot see how this can work.