Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › advanced title and description fields dynamic by searched words
This topic contains 6 replies, has 2 voices, and was last updated by Ernest Marcinko 3 years, 5 months ago.
- AuthorPosts
- March 6, 2021 at 1:34 pm #32063
Hi,
I have a Restauran search webpage. And I have their menus as well to search for a single dish.
But as the search result I get only the Tite and the general description of that restaurant.
I´d like to get as result:
The name of the restaurant, and the Dish (searched keyword) and the price.I tried to add the variable Main_food_title, but there are more than one e.g. main_food_title2…. and so on.
How can I display the exact position for the searched word?
thanks very a lot
Marcel
Attachments:
You must be logged in to view attached files.March 6, 2021 at 1:59 pm #32065You cannot access this content.March 8, 2021 at 10:10 am #32072Hi,
Well, you either have to enter them manually to the advanced title/content fields, or maybe use some sort of a programmatical solution via the asp_results filter.
Best,
I would probably use the programmatical solution, especially if you want to display fileds depending on specific ctriteria.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 8, 2021 at 11:43 am #32074You cannot access this content.March 8, 2021 at 12:33 pm #32076I am not sure I understand exactly what you mean by this.
Do you mean if the keyword match is within the dishes_4_food_title field, then it should display the dishes_4_food_title? I’m afraid that is not possible. The field location of the match is not possible to determine within the query.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 8, 2021 at 1:47 pm #32079Okay I see.
But is it possible to print as result the text around the searched keywords?March 8, 2021 at 2:51 pm #32083Yes, via this option. However this only works if the keywords were found in the primary or secondary description fields and those fields are actually used for displaying.
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.