CPT is for service's do not have a physical address- but need City field

This topic contains 4 replies, has 3 voices, and was last updated by  Guust 5 years, 9 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #478763

    Karloz Castro
    Expired Member
    Post count: 22

    Hi,

    I am making my site a multi-city directory, one CPT is for service’s do not have a physical address, I am wondering if I can disable the address function but can they still have a city.

    Any advice on how to make this possible. Thank you

    Geodirectory V2 (Version 2.0.0.55)
    Supreme DirectoryVersion: 2.0.0.7

    #478783

    Guust
    Moderator
    Post count: 29970

    If you disable addresses, then there is nothing adress related you can add. Street addresses are required, but they can be anything like “My business city”.
    So you can drag the marker to somewhere in the city, then add “My business city” in the street address field and save.

    Thanks

    #479090

    Karloz Castro
    Expired Member
    Post count: 22

    ok, understood, Thank you very much!

    Could you tell me how to remove the map from the Archive page and Search page of that particular CPT?

    if I can not disable that CPT in particular, there is a way to disable the maps completely.

    Thanks

    #479136

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    GD doesn’t have features built into shortcodes to hide them on specific pages, but you can do that with widgets, but you will need another plugin like widget logic if you want to hide only on specific pages and post types.
    https://wpgeodirectory.com/docs/useful-plugins/#logic

    See this page for more information about personalizing GD
    https://wpgeodirectory.com/docs-v2/geodirectory/personalize/

    Let us know if you have more questions

    #479154

    Guust
    Moderator
    Post count: 29970

    Depending on the theme you are using, you can hide the maps with CSS too, and you can also use a different GD Archive template for each CPT: GD > Settings > Post Types > Edit a CPT > Show Advanced > Template Page Settings > Archive page

    Thanks

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