Forums › Forums › Search & Filter Pro › Advanced Custom Field, How to!
Tagged: acf, advanced custom fields, Demo
- This topic has 15 replies, 2 voices, and was last updated 9 years, 5 months ago by Ross.
-
Anonymous(Private) May 13, 2015 at 5:25 pm #17432
Hi,
I have purchased your plugin but I’am finding problem in using it! Before I purchased it I saw your demo and it was close to what I want to achieve so I decided to buy the pro version of your plugin.
Unfortunately I didn’t figure out how to do that! How it is possible to make a search form like this on your demo. I use the Advanced Custom Fields plugin and I have few numeric custom fields how can I make them searchable with a slide, exactly as it is on your demo.Please provide me a step by step solution.
If there is a doc about my question please provide me with a link, please not a general link to the documentation but a link to the exact doc which gives answer to my question.Thank you in advance.
Ross Moderator(Private) May 14, 2015 at 8:35 am #17480I will come back to this ticket however there are others ahead of you in the queue, it will likely be tomorrow morning before I can get on to this properly.
I’ll give some general tips though while I’m here…
ACF custom fields are stored in WordPress Post Meta.
So, to create a field from ACF on your Search Form, add a “post meta” field.
From here you can choose numeric (for number ranges), choice (for dropdowns) and Date.
If you are using serialised data when using the choice options, please note there has been a newly discovered bug – if this is affecting your setup I can send you a patch until the next update.
When you’ve added the Post Meta field, you must choose a “key” – you must find the name of your ACF field in this list – also, please not ACF creates 2 keys, one with an underscore, ie:
myfield
and
_myfield
From my memory I think you need to use the key that doesn’t have an underscore.
Thanks
Anonymous(Private) May 18, 2015 at 9:24 am #17741Hi,
Lets take this step by step!1. Add New Search Form!
2. Post Meta
3. Add Condition
4. From the drop down I choose the the field I want to include in the search form…
5. And then what???I was waiting for your reply 3 days ago, as you said in your previous reply…
Anonymous(Private) May 18, 2015 at 9:45 am #17748Check this page, I finally managed to add the field I wanted but it is not making any change in the results. The slider I have added is for choosing the number of rooms in a villa, the number is a custom field made with Advanced Custom Field plugin, I have tried doth the _rooms and rooms keys but none of them has any effect on my results.
Actually none of the search values have any impact on search results, so I might be doing something wrong!
My setting are:
Display Results: As an archive page
Use a custom template for results? YESSet a slug? http://aspalisvillas.com
Any advice on that?
Anonymous(Private) May 18, 2015 at 10:01 am #17750I want to create a specific page for searching the villas on my theme, so I want to add it as a shortcode in a search-villa.php file and edit the styling.
When I change the settings of the plugin and choose as “Display results:” the “Using a shortcode”, the search form is not working also!
Ross Moderator(Private) May 19, 2015 at 10:32 am #17850Hey Christoforos
You have not been waiting 6 days for a response,
I came back to this ticket and re-read my response – I provided all the general info for adding an ACF field so I did not update further, I waited to see how the advice I gave you worked out.
I also jumped you ahead of the support queue to provide a faster reply.
Now what you are asking is something completely different – which is explained in the docs:
It would help to keep things friendly and polite, but if support really is as bad as you think (for a product worth $20) I am happy to provide a full refund in this instance.
Thanks
Ross Moderator(Private) May 19, 2015 at 10:45 am #17852You are jumping ahead of the queue again – next time there will be a delay in response as I have to place you in the correct position in the queue.
The problem none of your results contain the meta fields: rooms or people – so your search is looking for 1-24 rooms or 1-52 people, but if the meta key does not exist nothing will show.
Thanks
-
AuthorPosts