Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1259075
    bsuccar
    Participant

    Hello,
    I’m using Polylang and the search results are no longer displaying (please see http://BIMexcellence.org/)
    I contacted them and they said that I need to add <?php get_search_form(); ?> to the default template (at least this is what I understood) or the results won’t show.

    Can you help me with this? The information I found online is too advanced for my wp-newbie brain!
    Thanks in advance,
    Bilal

    #1259218
    Paul R
    Moderator

    Hi Bilal,

    Thanks for writing in! Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.

    #1260729
    bsuccar
    Participant

    Hi Paul,
    Here’s the full story:
    1. The search was working correctly
    2. I installed Polylang and added language-specific pages
    3. The search stopped working…That is, when I enter a term into the search box, I get a 404.
    4. If I disable Polylang, all goes to normal.
    5. I emailed Polyland and this is what they said ” When a search form does not work it’s due to the search form not passed passed through filter ‘get_search_form’. See: https://polylang.pro/always-use-get_search_form-to-create-search-forms/&#8221;
    6. I checked the link and – what I understood – is that I need to add <?php get_search_form(); ?> to the default template where the results need to display.
    7. I searched the X-theme knowledgebase and couldn’t figure it out.
    8. Help!

    Can you kindly assist me with this or point me in the right direction?
    Thank you,
    Bilal

    #1260819
    Rad
    Moderator

    Hi there,

    The get_search_form() is just used to display the from, it’s not connected to search results. In fact, you can search on your site by just URL, example http://example.com/?s=hello and it will display the result matching the term hello. This is how WordPress works. The form is another thing and it’s only used for visual, its endpoint is still /?s=term.

    Though I like to check the issue you’re getting, it could be just related to permalinks.

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks!

    #1260836
    bsuccar
    Participant
    This reply has been marked as private.
    #1261222
    Jade
    Moderator
    This reply has been marked as private.
    #1261744
    bsuccar
    Participant
    This reply has been marked as private.
    #1262259
    Rad
    Moderator
    This reply has been marked as private.
    #1262276
    bsuccar
    Participant

    Thank you Rad, Jade and Paul,
    Works beautifully now…many thanks for your excellent help!
    Bilal

    #1262305
    Rad
    Moderator

    You’re so much welcome!

  • <script> jQuery(function($){ $("#no-reply-1259075 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>