Getting irregular results from my search
This topic contains 42 replies, has 3 voices, and was last updated by Alex Rollin 4 years, 8 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: Search Results
-
AuthorPosts
-
March 3, 2020 at 8:32 am #533242
Hi Martin,
I have fixed issue of Divi builder for search page.
Please check and let us know.
Regards,
KiranMarch 3, 2020 at 2:05 pm #533287This reply has been marked as private.March 3, 2020 at 2:17 pm #533289Please try after clearing your browser cache.
Kiran
March 3, 2020 at 2:32 pm #533292This reply has been marked as private.March 3, 2020 at 2:43 pm #533293This reply has been marked as private.March 3, 2020 at 3:18 pm #533302Hello,
search results are sorted by relevance. Sorting like A-Z applies on the CPT Archive pages.
/directory/ is the CPT slug, and the main CPT Archive.
Is there something else you wanted us to look into?
March 3, 2020 at 3:30 pm #533311This reply has been marked as private.March 3, 2020 at 7:07 pm #533332/directory/ is the Custom Post Type archive, using the GD Archive template.
It is not possible to sort search results A-Z, they are sorted by relevance. If you want to sort results on the archive page you can use sorting options as described here: https://wpgeodirectory.com/docs-v2/places/sorting/
For the Tags Archive page you have selected the “Directory sidebar” – is that not working as expected? That is using this page, which I saw you editing on your site just now: /wp-admin/post.php?post=3054&action=edit
Divi has made some changes and so we have made some updates to GD on your site. Right now we have added some fixes on your site to make Divi work on the search page template. We have also added a fix to allow the theme builder to select the GD Search results.
March 3, 2020 at 7:16 pm #533333Thanks Alex,
Yep, the Directory sidebar only works on the search result page – https://focustravel.uk/partner-directory-search/?geodir_search=1&stype=gd_place&spost_category%5B%5D=17&stravel_and_expense%5B%5D=&sndc_content%5B%5D=&s=+&snear=&sgeo_lat=&sgeo_lon=
The other pages, eg Tags page it just shows the default sidebar.
I am also trying to get every search result to show some kind of meta info when it returns from the main search, instead of just showing the boxed images. If I chose eg Atriis booking form and Yes for the other two fields then I want this information to come up above the loop of results. I’ve tried so many ways but have failed. Even looking through documentation you have.
March 3, 2020 at 8:40 pm #533343I’ve added the php code to my childs functions as instructed, but I can’t see any results in my list of widgets to take me to the next step of adding to a widget and then into the sidebar eg: “Booking system is %%category%%”
You can view it Not working underneath the Tags list in the sidebar here – https://focustravel.uk/partner-directory-search/?geodir_search=1&stype=gd_place&spost_category%5B%5D=&stravel_and_expense%5B%5D=&sndc_content%5B%5D=&s=+&snear=&sgeo_lat=&sgeo_lon=
This is the only page I can view the Directory Sidebar on, by the way. Which leads me back to the first issue I had above.
Please help. I’ve spend weeks trying to sort this all
March 4, 2020 at 8:31 am #533447Hi Martin,
Could you now look at why the Search results page – partner-directory-search displays my Custom sidebar but the Tags result page doesn’t? They both have same setup in the edit pages.
FIXED
Those sidebars are dynamically generated via Simple Page Sidebars plugins. I have added Simple Page Sidebars plugin compatibility to work Simple Page Sidebars on GeoDirectory pages.why the search results are not in alphabetical order to the title. They are on the main search page https://focustravel.uk/partner-directory/ but as soon as they display on /directory and any search page thereafter they are not.
On search page best match posts are listed on top of the results. Archive page & search page has different sorting orders.
I’ve added the php code to my childs functions as instructed, but I can’t see any results in my list of widgets to take me to the next step of adding to a widget and then into the sidebar eg: “Booking system is %%category%%”
I have checked code you added in child theme functions.php
– There was a bug in code, there was illegal single quote used in code. I have corrected it.
– Code you used is to filter location titles like %%city%%, %%region%%, %%country%% etc.
– You have used Booking system is %%category%% for category description widget which shown on archive pages where results are filtered by category. Ex: /directory/category/online-booking-system/
– If category have description empty then widget will not be shows on page.Let us know.
Thanks,
KiranMarch 4, 2020 at 12:31 pm #533495Thanks Kiran,
I will go through bits now. I think I follow what you mean with everything. I will let you know.
I am just rebuilding some of the pages back into Divi because the standard pages with sidebars don’t work that well on mobile (saving old versions just in case).
I have a few bits I need to finish off project and put this behind me…
On the search results page, it has the header “Search results for:” and on the tags page it says “Tag: “. I don’t want the headers to show. How can I easily remove? Do I just CSS them?
March 4, 2020 at 12:44 pm #533498You can hide title via css.
Example:
.geodir-page.search article.page > .entry-title { display: none; }
Kiran
March 4, 2020 at 4:46 pm #533570Ah thanks Kiran,
I thought it was going to be just a display:none; anyway.
Just a few more questions. Bear with me 🙂
1. Is there a way to reset the search? I’ve added a button that returns people to main page but the searchbar still stays the same throughout.
2. Also, instead of my dropdown searches for “Expense & Travel” and “NDC Content” being dropdowns, they need to appear as checkboxes or radio buttons “Expense & Travel X” and “NDC Content X”. Ticking the Checkbox means Yes (value 1) and unchecked is No (value 0), just like the backend. As it currently works you shouldn’t be able to select the heading, just Yes or No!
March 4, 2020 at 5:02 pm #533576Sorry to overcross messages, but I wanted to add a 3rd question…
How do I get the category buttons to appear above main loop after a search? (see attached)
I want this to appear as “Online Booking System is : xxxxx”
I think I’m close with the widgets but a little lost. Now Divi is working again I can place custom widgets under there if that is how it’s done.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket