Results page

This topic contains 10 replies, has 2 voices, and was last updated by  yaya 1 year, 4 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #12203

    yaya
    Participant

    Hi,

    Nice module!

    But, how can i enable a search results page? when add a keyword and click on search i always get a note that there are no results.

    http://prntscr.com/ehg1za

    Please advice! Thanks!

    #12204

    Ernest Marcinko
    Keymaster

    Hi!

    Thank you for your kind words!

    By default the plugin does not override the default wordpress core results, but you can enable that option on the General Options -> Logics & Behavior panel. For more info check these chapters in the documentaion:

    Results page override
    Search box behavior

    Some themes might not support results override, but it's worth a try for sure.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #12207

    yaya
    Participant

    Hi,

    Thanks for your answer, i followed the instructions but i still get the same empty results, the live search works very well.

    We work with visual composer.

    #12208

    yaya
    Participant
    You cannot access this content.
    #12209

    Ernest Marcinko
    Keymaster

    Hi,

    It probably means that either the theme (or another plugin) has a separate override method for the results page, which cannot be replaced.

    If you can fill the ticket with temporary FTP and back-end access, I might be able to check.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #12210

    Ernest Marcinko
    Keymaster

    Hi,

    Thanks for the details, I see what the problem is now.

    So looking at the search.php file in your theme directory, there is the problem. The override works, the results are passed to the results page, instead of printing the results there is a code looking for a specific template page (page id = 1751). I've looked up that page and that has a shortcode, which is then executed and its content is then printed. However that shortcode uses it's own method (executed long after the override) to get the results, it does not get the ones that are already overridden, and that is later printed to the results page by your custom code.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #12211

    yaya
    Participant

    Hi Ernest,

    Thank you for your quick support and explanation!

    But is there a way to fix this issue?

    Thanks!

    #12212

    yaya
    Participant

    What if i replace the search.php file with the default one?

    #12213

    Ernest Marcinko
    Keymaster

    It depends, if it has some kind of custom query by default, it might still override the results passed by ajax search pro. If you find statements like 'query_posts(…)' or 'get_posts(…)' within that file, then they will most likely negate the override, and are very bad practice – as the results are already queried.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #12214

    yaya
    Participant

    Oke, what do you advice to contact the theme makers?

    #12215

    yaya
    Participant

    I think i fixed the issue.

    changed a row in blog.php file

    'post_type' => 'post',

    'post_type' => (is_search() ? array('post','page') : 'post'),

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.