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
  • #533584

    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.

    #533637

    Alex Rollin
    Moderator
    Post count: 27815

    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.

    Can you provide an example of what you mean? If you send people back to the search page, you could send them to the URL that returns all results.

    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!

    The only other option is to add this to the search drawer.

    How do I get the category buttons to appear above main loop after a search? (see attached)

    That would require a customization. They are output after the search bar.

    I want this to appear as “Online Booking System is : xxxxx”

    That would require your own customization.

    I can place custom widgets under there if that is how it’s done.

    Correct

    #533690

    Martin Roche
    Expired Member
    Post count: 29

    Hi Alex,

    Thank you for your responses. I’m happy to do customization, delve into the php code or child functions if necessary, but I’d like some idea of how to do this please! There should be a fairly easy way to have these displayed (as previous attachment – reattached for reference) as it is straightforward to show the information in the loop of archive-items. I just need to be able to show a line of that information buttons under the search and above the items: eg. post_category (“Online Booking System”) – travel_and_expense (Travel & Expense) – ndc_content (NDC Content).

    I’ve found a few support threads from these people – https://getdirections.asia – and they have this in place, so I just need the same please.

    #533717

    Kiran
    Moderator
    Post count: 7069

    Hi Martin,

    Add following shortcode in search page template to show searched parameters with label (ex: Category: xxxx).

    [gd_loop_actions]

    Thanks,
    Kiran

    #533720

    Martin Roche
    Expired Member
    Post count: 29

    Hi Kiran,

    I had added this but nothing is showing up. I’m really confused now. I’m now getting the sort by tab but not what I’m after

    #533722

    Martin Roche
    Expired Member
    Post count: 29

    I’ve sorted this now. Thank you.

    OK. ONE more thing… I’ve currently got my Specialists as Tags. How do I get this to appear in the Advanced Search bar as a list (check)?

    #533723

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #533725

    Martin Roche
    Expired Member
    Post count: 29

    Yes, thanks. Fixed it in the meantime. I’d used CSS to hide the sorting box and found that I’d hidden the container too.

    Next I need to add my Specialists into searchbar instead of Tag cloud at side 🙂

    #533730

    Kiran
    Moderator
    Post count: 7069

    Hello,

    Tags list is not allowed in search bar, because keyword entered to filter results also matches in post tags field. Listings are also filtered by tag pages like /tags/xxx/.

    Kiran

    #533732

    Martin Roche
    Expired Member
    Post count: 29

    I am happy to make the Specialist list a CPT rather than tags. Would make thiings tidier.

    Can I use GeoDirectory Custom Post Types ? – I’ve installed it already.

    #533733

    Kiran
    Moderator
    Post count: 7069

    Can I use GeoDirectory Custom Post Types?

    You can separate listings within custom post type.

    Example:
    gd_event custom post type for Events
    gd_sport custom post type for Sports

    Kiran

    #533876

    Martin Roche
    Expired Member
    Post count: 29

    I won’t need to do that. It’s not kind of listing.

    The CPT would be Specialist in

    Like I did for Online Booking Systems, then all of the sub-categories under that?

    #533912

    Alex Rollin
    Moderator
    Post count: 27815

    You can add more categories but there can be only one set of categories for each listings.

    You can add a select field, and then add that to the search bar.

Viewing 13 posts - 31 through 43 (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