Category for 2 CPTs

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

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

Open Support Ticket
  • Author
    Posts
  • #464372

    Kai Liu
    Expired Member
    Post count: 368

    Is it possible to display same category in 2 CPTs?

    I have tried to have 2 category_id in csv, however, records goes into the category under declared post_type only, even I specified the category_id which is in other CPT, it won’t show. Any method to make it happen?

    #464373

    Kai Liu
    Expired Member
    Post count: 368
    This reply has been marked as private.
    #464377

    Alex Rollin
    Moderator
    Post count: 27815

    No, categories are not shared between CPTs.

    #464385

    Kai Liu
    Expired Member
    Post count: 368

    Ok. That means i need to load twice. Right?

    #464431

    Alex Rollin
    Moderator
    Post count: 27815

    No, just once for each category. 😉

    #464493

    Kai Liu
    Expired Member
    Post count: 368

    Yes, i mean one load per CPT.

    Good to allow cross CPT to reduce data redundancy tho.

    #464624

    Alex Rollin
    Moderator
    Post count: 27815

    It is not redundant because they are different categories, even if the Title is the same.

    #464628

    Kai Liu
    Expired Member
    Post count: 368

    What i mean is, in fact, they are duplicated records, apart from category, everything else the same. If records can take multiple cpt, in db, it is just one row of record instrmead of multiple.

    That raises me another question. If during add listing, user choose multiple categories, will this new listing be duplicated into number of rows depending on number of categories user selected?

    #464674

    Alex Rollin
    Moderator
    Post count: 27815

    No

Viewing 9 posts - 1 through 9 (of 9 total)

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

Open Support Ticket