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
  • Author
    Posts
  • #467063

    Bennie Forister
    Expired Member
    Post count: 50

    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?

    #467068

    Guust
    Moderator
    Post count: 29970

    Make 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? > YES

    Make sure the Location Manager addon is activated [I am sure it is already].
    GD > Settings > Locations tab > Show Advanced > Enable location search autocompleter? > Yes

    Thanks

    #467221

    Bennie Forister
    Expired Member
    Post count: 50

    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?

    #467323

    Guust
    Moderator
    Post count: 29970

    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.

    Thanks

    #467442

    Bennie Forister
    Expired Member
    Post count: 50

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

    #467490

    Kor
    Moderator
    Post count: 16516

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

    #467492

    Bennie Forister
    Expired Member
    Post count: 50

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

    #467497

    Alex Rollin
    Moderator
    Post count: 27815
    #467636

    Bennie Forister
    Expired Member
    Post count: 50

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

    #467699

    Alex Rollin
    Moderator
    Post count: 27815

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

    #467723

    Bennie Forister
    Expired Member
    Post count: 50

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

    #467731

    Alex Rollin
    Moderator
    Post count: 27815

    GDV2 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%;
    }
    
    #468258

    Bennie Forister
    Expired Member
    Post count: 50

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

    #468302

    Alex Rollin
    Moderator
    Post count: 27815

    Have you already tried out the gd_locations element?
    https://wpgeodirectory.com/docs-v2/geodirectory/design-elements/#gd_locations

    The Location Switcher itself, how does that work for you?
    https://wpgeodirectory.com/docs-v2/geodirectory/design-elements/#gd_location_switcher

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

    #468309

    Bennie Forister
    Expired Member
    Post count: 50

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

Viewing 15 posts - 1 through 15 (of 28 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