Connect two types of CPT together

This topic contains 18 replies, has 4 voices, and was last updated by  Alex Rollin 6 years, 4 months ago.

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

Open Support Ticket

Tagged: ,

  • Author
    Posts
  • #436108

    Dawn
    Expired Member
    Post count: 96

    Hi,

    Is it possible to connect two types of CPT together? e.g. company / supplier and jobs completed?

    e.g. tiler and tiling jobs completed? And it is also possible to connect these both to a geographical location?

    I saw the linking thing with CPT but wasn’t sure that was what it referred to.

    #436111

    Alex Rollin
    Moderator
    Post count: 27815

    It is possible to link one CPT to another CPT, yes.

    Here’s a doc about it: https://wpgeodirectory.com/docs/linking-custom-post-types/

    #436112

    Dawn
    Expired Member
    Post count: 96

    Thanks Alex.

    And can they be linked to a geographical location?

    #436113

    Dawn
    Expired Member
    Post count: 96

    Also can they both link to a category?

    #436116

    Alex Rollin
    Moderator
    Post count: 27815

    GeoDirectory automatically collects listings together based on the address.

    If your site uses the locaiton in the URL then there will be location pages for every country/region/city.

    Category s a required field for every listing, so, all listings are also collected together, too.

    These types of pages are called “Listing” pages and you can add widgets to the the GD Listing or GD Home page widget areas to show Location Description, Category Description, and of course listing widgets like GD Popular Post View.

    #436117

    Dawn
    Expired Member
    Post count: 96
    This reply has been marked as private.
    #436119

    Dawn
    Expired Member
    Post count: 96

    Is this because I have not added something I wonder?

    #436123

    Paolo
    Site Admin
    Post count: 31206

    The map is not loading at all for me, so there must be an error somewhere.

    Please provide admin credentials.

    Let us know,

    Thanks

    #436127

    Dawn
    Expired Member
    Post count: 96
    This reply has been marked as private.
    #436144

    Dawn
    Expired Member
    Post count: 96

    Hi,

    Should I be able to see a listing in a town with all the companies in that town?

    I’m concerned something is wrong.

    #436145

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    some of your GD plugins are not yet up to date.

    Please install WP Easy Updates to update your addons.

    https://wpgeodirectory.com/docs/installing-addons/#updates

    Currently you are not using the location in the URL. Visit the settings at GD permalinks to set the full location in the URL or at least the region and city if the directory is focused on only the UK (one country).

    We recommend that you set the full location in the URL and add the category, too.

    Once plugins are updated we can take another look.

    #436154

    Dawn
    Expired Member
    Post count: 96

    Hi,

    I want to not have the location in the service name though as these are profile pages and don’t need the location (or shouldn’t need the location). none of the sites in this niche use the location in the URLs of their members e.g.

    What happens if the member moves to another location? It’s really not good if the listings solely rely on the user location because then it’s actually not a proper profile page at all.

    Is this the case?

    #436162

    Dawn
    Expired Member
    Post count: 96

    Hi Alex,

    It works on this site:

    https://www.toptradespeople.co.uk/i/location/essex-1/

    The locations are there and so are the services in the locations.

    Is it possible to get something like https://www.toptradespeople.co.uk/i/services/plumbers/essex which then outputs a list of the plumbers in Essex

    The profile pages would be like the ones listed in the page:

    https://www.toptradespeople.co.uk/i/location/essex-1/

    #436169

    Guust
    Moderator
    Post count: 29970

    You can just un-tick
    GD > Permalinks > Add location slug in listing urls

    That will remove the location for detail pages.

    #436196

    Dawn
    Expired Member
    Post count: 96
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 19 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