• Resolved wolfenr

    (@wolfenr)


    Hi, 5 star plugin by the way.
    So I’m using the following straightforward code for a pdb_search:
    [pdb_search target_page=Search-Results search_fields=”resource_title, resource_notes”]
    Is there any way that I can pass the search terms onto the target page i.e. what the user searched for. I’d basically like to display something along the lines of,
    You searched for…
    Here are the results…

Viewing 1 replies (of 1 total)
  • Thread Starter wolfenr

    (@wolfenr)

    Please ignore, worked it out!
    All I needed to do was include the search=”true” in the pdb_list statement on the Search Results page.
    i.e. my full statement on the Search-Results page is:
    [pdb_list fields=”resource_title, resource_notes, contact_details, issue, up” orderby=resource_title order=asc search=”true” search_fields=”resource_title, resource_notes”]
    and this populates the Search fields with what was searched for.
    My thanks

Viewing 1 replies (of 1 total)
  • The topic ‘pdb_search’ is closed to new replies.