Tagged: x
-
AuthorPosts
-
November 16, 2016 at 2:22 am #1259075
bsuccarParticipantHello,
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,
BilalNovember 16, 2016 at 5:33 am #1259218
Paul RModeratorHi 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.
November 17, 2016 at 3:17 am #1260729
bsuccarParticipantHi 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/”
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,
BilalNovember 17, 2016 at 4:52 am #1260819
RadModeratorHi 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 credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks!
November 17, 2016 at 5:10 am #1260836
bsuccarParticipantThis reply has been marked as private.November 17, 2016 at 10:36 am #1261222
JadeModeratorThis reply has been marked as private.November 17, 2016 at 6:10 pm #1261744
bsuccarParticipantThis reply has been marked as private.November 18, 2016 at 2:25 am #1262259
RadModeratorThis reply has been marked as private.November 18, 2016 at 2:58 am #1262276
bsuccarParticipantThank you Rad, Jade and Paul,
Works beautifully now…many thanks for your excellent help!
BilalNovember 18, 2016 at 3:48 am #1262305
RadModeratorYou’re so much welcome!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1259075 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
