Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Search with Advanced Custom Fields.
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 2 years, 5 months ago.
- AuthorPosts
- December 15, 2020 at 10:47 pm #30723
Hello,
We are adding a search function to a directory using Advanced Custom Fields. The Ajax Search Pro displays the title when searching, but the search results are blank.Does the Ajax Search Pro work with Advanced Custom Fields?
Do we need to develop a search results page?
Can you let us know all the tabs in the Ajax Search Pro admin that relate to Advanced Custom Fields?
Thanks.
December 16, 2020 at 10:03 am #30733Hi,
By results, do you mean the result content fields are blank? Are you using ACF to print the contents of posts or something similar? By default the plugin requests the post contents from wordpress, which ACF should integrate to. You can change those here: https://i.imgur.com/9Pmh8c8.png
If a custom field is defined for the content, you should be able to select that there as well.
If you are using multiple custom fields for the post contents, then using the advanced title and content fields feature might be better for your case – as there you can enter as many custom field names as you want.The search results page cannot be controlled by the plugin (the layout), that has to be custom coded within the theme.
ACF is not separated from the regular custom fields, it integrates with them. You can choose the ACF custom fields for search on the General Options -> Sources panel, as well as use them as filters, or the upper mentioned advanced title/content fields.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 16, 2020 at 3:35 pm #30763You cannot access this content.December 17, 2020 at 10:21 am #30772Hi,
The results page URL is requested from WordPress core, via the post/CPT ID. If you want to modify the results URLs, I recommend changing them on the post editor screen, so it is populated across the site.
However you can use a custom hook via asp_results if you want to edit the result URLs on the live results list.After the plugin redirects to a single result page, it has no control of what is displayed there, that is defined within the theme, you will have to look in the theme options.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.