This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

advanced title and description fields dynamic by searched words

Home Forums Product Support Forums Ajax Search Pro for WordPress Support advanced title and description fields dynamic by searched words

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #32063
    foodiefood75foodiefood75
    Participant

    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

    #32065
    foodiefood75foodiefood75
    Participant

    You cannot access this content.

    #32072
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    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.
    I would probably use the programmatical solution, especially if you want to display fileds depending on specific ctriteria.

    #32074
    foodiefood75foodiefood75
    Participant

    You cannot access this content.

    #32076
    Ernest MarcinkoErnest Marcinko
    Keymaster

    I 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.

    #32079
    foodiefood75foodiefood75
    Participant

    Okay I see.
    But is it possible to print as result the text around the searched keywords?

    #32083
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Yes, 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.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.