Getting irregular results from my search

This topic contains 42 replies, has 3 voices, and was last updated by  Alex Rollin 4 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #533242

    Kiran
    Moderator
    Post count: 7069

    Hi Martin,

    I have fixed issue of Divi builder for search page.

    Please check and let us know.

    Regards,
    Kiran

    #533287

    Martin Roche
    Expired Member
    Post count: 29
    This reply has been marked as private.
    #533289

    Kiran
    Moderator
    Post count: 7069

    Please try after clearing your browser cache.

    Kiran

    #533292

    Martin Roche
    Expired Member
    Post count: 29
    This reply has been marked as private.
    #533293

    Martin Roche
    Expired Member
    Post count: 29
    This reply has been marked as private.
    #533302

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    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?

    #533311

    Martin Roche
    Expired Member
    Post count: 29
    This reply has been marked as private.
    #533332

    Alex Rollin
    Moderator
    Post count: 27815

    /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.

    #533333

    Martin Roche
    Expired Member
    Post count: 29

    Thanks 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.

    #533343

    Martin Roche
    Expired Member
    Post count: 29

    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%%”

    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

    #533447

    Kiran
    Moderator
    Post count: 7069

    Hi 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,
    Kiran

    #533495

    Martin Roche
    Expired Member
    Post count: 29

    Thanks 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?

    #533498

    Kiran
    Moderator
    Post count: 7069

    You can hide title via css.

    Example:

    
    
    .geodir-page.search article.page > .entry-title {
    	display: none;
    }

    Kiran

    #533570

    Martin Roche
    Expired Member
    Post count: 29

    Ah 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!

    #533576

    Martin Roche
    Expired Member
    Post count: 29

    Sorry 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.

Viewing 15 posts - 16 through 30 (of 43 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount