Custom search GDV2
This topic contains 27 replies, has 4 voices, and was last updated by Guust 6 years, 3 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
February 4, 2019 at 10:32 pm #467063
Your documentation is a little overwhelming in trying to research what I need to do.
Here are the parameters that I am working with:
1). custom post type: gd_business (gd_business is the only post type I have)
2). Current number of listings: 63,000 and increasing
3). My business listings cover 20 categories and across all 50 states in the US.My directory users need to be able to filter first by category then by state (region) or it could be by state (region) first then by category.
What is the cleanest way of setting this up?
February 4, 2019 at 11:28 pm #467068Make sure the Advanced Search addon is activated.
Add the Categories custom field to the search bar:
Businesses > Settings > Search tab > Add “Category” to the right > Show in main search bar? > YESMake sure the Location Manager addon is activated [I am sure it is already].
GD > Settings > Locations tab > Show Advanced > Enable location search autocompleter? > YesThanks
February 5, 2019 at 4:59 pm #467221Instead of the location search autocompleter what is there a possibility of creating a list of the states where the user can select the state (region) they are wanting to search?
February 5, 2019 at 11:09 pm #467323Sorry, but there is no such default option.
You can add a SELECT custom field, that contains all the states, and add that to the search bar.Thanks
February 6, 2019 at 5:28 pm #467442Guust I am looking through the documentation and I have not found any concise information on how to create a SELECT custom field with a list of all the states. When I look at the Option Values field out in Settings>Custom Fields I see some verbage about adding commas in between my entries which is absolutely not what I want to do. Can you direct me to better documentation about setting up these Custom Fields. I must be missing the documentation on how to incorporate a drop down list in the Search bar which would be a very basic feature for any directory site.
February 6, 2019 at 8:04 pm #467490Hi Bennie,
Thanks for your reply. You can populate the select custom field as shown in the attached screenshot. Let us know if it helps.
Thanks!
February 6, 2019 at 8:30 pm #467492Thanks, one last question for awhile: how can I remove the Search For and Near sections on the Search Bar Completely? I will be adding a custom field and do not want those two items on the Search Bar?
February 6, 2019 at 8:49 pm #467497You will have to do that with Custom CSS, examples are here:
https://wpgeodirectory.com/docs/common-styling-examples/#search
https://wpgeodirectory.com/docs/customizing-your-style/February 7, 2019 at 6:24 pm #467636All of my category icons/images need to be enlarged. I have tried to do this using the WP media settings and various other methods but nothing is working. You can see in the attachment that there is considerable room for the image to be enlarged next to each category. How do I do it?
February 7, 2019 at 9:07 pm #467699You will need to use Custom CSS to do that, too.
We are considering future improvements to the GD categories element and will keep this in mind for options for future versions.
February 7, 2019 at 10:45 pm #467723I don’t accept your answer. I did not have this issue with GDv1 and I am using the exact same theme as now. With GDv1 the images scaled appropriately……….what changed?
February 7, 2019 at 11:40 pm #467731GDV2 is a completely new plugin in many ways, and the elements like GD Categories have all new markup.
Here is an example that will get you started:
/* GD Categories Icon Image size */ .geodir-categories-container ul li a .gd-cptcat-icon img { height: 80%; margin-top: 15%; margin-bottom: 15%; }
February 11, 2019 at 6:43 pm #468258Back on Feb.5 I asked this question: “Instead of the location search autocompleter what is there a possibility of creating a list of the states where the user can select the state (region) they are wanting to search?”
and received the following response from Guust: “Sorry, but there is no such default option.
You can add a SELECT custom field, that contains all the states, and add that to the search bar.”The problem is this: The system needs to understand that State equals Region in order for the search to work. Is there some type of custom css that can make this work?
February 11, 2019 at 9:15 pm #468302Have you already tried out the gd_locations element?
https://wpgeodirectory.com/docs-v2/geodirectory/design-elements/#gd_locationsThe Location Switcher itself, how does that work for you?
https://wpgeodirectory.com/docs-v2/geodirectory/design-elements/#gd_location_switcherI am just asking if you have tried all the GD Features first.
You are right about the field, it would require some custom work to make that happen, unless you built it as Guust suggested.
February 11, 2019 at 9:30 pm #468309I built it just as Guust suggested but it does not work because the system does not understand that State equals Region. Your fields for adding listing uses Region not State. Region is meaningless in the United States…….everything is defined by city or state. Is there custom css which would tell the system that Region equals State?
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket