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 4, 2020 at 5:44 pm #533584
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.
March 5, 2020 at 12:14 am #533637Is 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
March 5, 2020 at 8:02 am #533690Hi 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.
March 5, 2020 at 10:55 am #533717Hi Martin,
Add following shortcode in search page template to show searched parameters with label (ex: Category: xxxx).
[gd_loop_actions]
Thanks,
KiranMarch 5, 2020 at 11:30 am #533720Hi 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
March 5, 2020 at 11:36 am #533722I’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)?
March 5, 2020 at 11:41 am #533723This reply has been marked as private.March 5, 2020 at 11:47 am #533725Yes, 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 🙂
March 5, 2020 at 12:05 pm #533730Hello,
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
March 5, 2020 at 12:21 pm #533732I 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.
March 5, 2020 at 12:25 pm #533733Can 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 SportsKiran
March 5, 2020 at 10:37 pm #533876I 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?
March 6, 2020 at 2:50 am #533912You 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.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket