1. I have created a custom field geodir_affiliation that says Baptist or whatever. I have included it in the search by your very clever method (no pain, lots of gain!).
On Advanced Search, let’s say I search for Baptist.
My URL looks like this:
https://thechristianbusinessdirectory.online/?geodir_search=1&stype=gd_place&sgd_placecategory%5B%5D=&s=+&snear=&sgeodir_affiliation=Baptist&sgeo_lat=&sgeo_lon=
I ONLY want to show the church field on the Search page if they do this Advanced Search on geodir_affiliation. In general, not of interest to searchers…they didn’t CHOOSE to search based on that criteria. (Using this scenario as example, but COULD be any custom field in the Advanced Search.)
I can parse out the URL in order to do this, but thought you might have someplace in your code where you already did the parsing. Could you let me know where I want to check this out?
2. Similar question here…I want to find out if someone chose ONLY the Category, say, Accountants and put BLANK in the “Search For” search field. In that case, I’d like to conditionally insert the GD > CPT Categories widget (or shortcode, really) at the top of the page so they can see any SubCategories that are involved.
Mainly interested if they pick Churches and put NO PARTICULAR Church in the “Search For” searcher field.
Then, I want to have Categories and SubCategories at top of Search Page results.
But first…I need to know if they did or did NOT pick Categories — without a “Search For” term.
Again, figured you folks had already done something similar to this…and wanted to use your already-vetted function for my nefarious purposes.
You have put an INCREDIBLE amount of thought — and insight — into your GeoDirectory plugin. Kudos!