Disabling physical locations

This topic contains 3 replies, has 2 voices, and was last updated by  Alex Rollin 7 years, 3 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #412111

    Rick Ouellet
    Expired Member
    Post count: 2

    Further to post #406920 … my site has been extensively customized at a substantial $$$ and now I tried to update to the last plugin and lost the majority of the customized work that was done … I reverted to a backup that I had made before the update and all is good again … my dilemma sits with the fact that my site holds various CPT already and for example, the “Accommodation” listings are not all physical locations but other websites … is there a way to mix physical and none physical location into a category?

    #412118

    Alex Rollin
    Moderator
    Post count: 27815

    Hello Rick,

    Sorry to hear about your trouble; I don’t really know how that could have happened.

    About your question, whether some listings in a CPT can have location, while others don’t? There are a couple ways to approach the question.

    The short answer is that physical location is either off or on for a CPT and that the settings applies to all the listings using the CPT, no mixing.

    That said, if you want to hide listings from the map, you can assign them a category icon that is transparent.

    You could use packages to assign a package ID to certain listings with/without locations to use package id CSS to hide certain fields on the page. https://wpgeodirectory.com/docs/common-code-snippets/#package

    To help us understand, can you tell us more about what you are trying to achieve?

    #412189

    Rick Ouellet
    Expired Member
    Post count: 2

    Thanks Alex for your quick reply … I’ll try with the transparent CPT icon first as my skill level is rather limited to play with IDs and CSS.

    To follow up on your question, I’m trying to include listings that for example belong to the “automotive parts” category – one listing has a physical location while the next is an online auto part store …

    #412226

    Alex Rollin
    Moderator
    Post count: 27815

    Hi Rick,

    I see, I see. Well, I do recommend trying to use as few CPT as possible, and preferably 1, so visitors can use the simplest search possible.

    You could definitely have 2 ‘top level’ categories ‘store’ and ‘online’ or something like that, have those be the default categories you use. Then contact a GD Expert if you need help making this customization to add that category to all your listings:

    https://wpgeodirectory.com/add-custom-body-classes-to-wordpress/

    With that in place you could use category to discriminate between online shops.

    I would also recommend that you do some translation so you can give your form filling visitors some instructions about how to use the categories properly.

    https://wpgeodirectory.com/docs/translate-core/

    Keep in touch and let us know how it goes!

    https://geodirectoryexperts.com

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