GeoDirectory V2 – Multi Locations, Single Category Best Practices

This topic contains 1 reply, has 2 voices, and was last updated by  Alex Rollin 6 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #466819

    locololo2
    Free User
    Post count: 37

    Hey everyone,

    I’m creating a new directory with only one type of business – Law Firms. They’ll all be in the same category, practicing one type of law.

    I’ve already adjusted the V2 “Places” CPT to be “Firms”.

    How can I configure GeoDirectory V2 to bypass the “Category” functionality?

    Ideally, I’d like my site to have the following architecture:

    Firm Archive:

    /firms/

    State Archive:

    /firms/{state}/

    City Archive:

    /firms/{state}/{city}/

    I do not want the “Category” in the architecture.

    Separate and less important question – how difficult is it to convert the State step of the architecture from the full name (California) to the two-letter shortcode (CA)?

    #466886

    Alex Rollin
    Moderator
    Post count: 27815

    Category is required, so, you could set category as a select field, and then just create one category to be applied to all listings.

    The options on the permalinks page are specific to the detail page, so you can create a URL structure like you mentioned /firm/state/city/post-name/

    https://wpgeodirectory.com/docs-v2/geodirectory/settings/permalinks/

    Category will still be included on archive pages. You can remove category from the display so that users do not end up on those pages.

    2. CA vs California

    This depends on what data is being returned by the Map API. If it returns California, then you will need to use the options in the Locations tab to maintain the regions.

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