• Resolved kcchalk

    (@kcchalk)


    Hi –

    I am trying to put a search shortcode on the home page, and put the results on a different page. I’ve been trying this for a while,and haven’t had any success.

    Is there something obvious that I’m missing? The application is a sports player injury database.

    The home page, short code is:
    [pdb_search search_fields=player target_page=injuries]

    The target page is a simple list shortcode [pdb_list]

    I looked in the debug log, and there is no filter being passed.

    [08/12/20 12:08pm CDT]
    PDb_List::_setup_iteration list query: SELECT p.id, p.last_updated, p.school, p.pos, p.player, p.injury, p.status, p.last_played, p.return_date, p.notes, p.delete_record FROM wp_p6k0dawd10_participants_database p ORDER BY p.school ASC

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author xnau webdesign

    (@xnau)

    Did you take a look at the page on our site on using the search shortcode? Take a look if you have not, it will help you understand how this shortcode works and how to configure it.

    Using the Search Shortcode

    Thread Starter kcchalk

    (@kcchalk)

    Thanks for the reply. Yes, I’ve ready it and believe I have followed it perfectly. That’s what is confusing me as to why it is not working.

    When I do the search on the Home page – it goes to the target page for results, but there is no search filter passed. Its simply showing the whole list each time.

    Plugin Author xnau webdesign

    (@xnau)

    Did you check the “target_instance” value? It won’t work if that is not correct. This is explained on that page under “Targeting the Result List”

    Thread Starter kcchalk

    (@kcchalk)

    Ok – I will check target_instance. I thought that was only need if there were 2 instances on the results page. Thanks again.

    Plugin Author xnau webdesign

    (@xnau)

    I did some tests and it appears there is a problem with this. I will probably need to issue an update to get this working.

    Thread Starter kcchalk

    (@kcchalk)

    I just checked, and put the target instance in the target page. I looked in Chrome debugging tools and the Home page (location of the search shortcode) is not POSTing the filter to the target page.

    Thread Starter kcchalk

    (@kcchalk)

    Ok, thanks for the update. I’ll watch for an update

    Plugin Author xnau webdesign

    (@xnau)

    For now, you can get this working by deselecting the “Enable AJAX Search Functionality” setting in the main plugin settings under the advanced tab.

    Thread Starter kcchalk

    (@kcchalk)

    Perfect – it worked. Thank you

    Thread Starter kcchalk

    (@kcchalk)

    Got the update and all is working – thanks again.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘pdb_search different page results not working’ is closed to new replies.