Combine categories

This topic contains 7 replies, has 3 voices, and was last updated by  Kai Liu 5 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #467749

    Kai Liu
    Expired Member
    Post count: 368

    Is there a quick way to combine 2 categories in same CPT into one category?

    Thanks

    #467759

    Guust
    Moderator
    Post count: 29970

    The only way I can think of is export and import your listings and re-import them in the same category, and then delete the empty category.
    Thanks

    #467764

    Kai Liu
    Expired Member
    Post count: 368

    How about changing the category id in database? Eg, select all listing with Cat B id, change to Cat A id, It should just make Cat B link with Cat A. Then go and delete Cat B category from GD admim.

    WILL THIS WORK?

    #467765

    Guust
    Moderator
    Post count: 29970

    Yes, I think that should work too.
    Try it with one listing, and check in the backend for the results.

    #467880

    Kai Liu
    Expired Member
    Post count: 368

    Tried, won’t work that way.

    Changing the category ID in geodir_cpt_detail table has no effect on listings. Listing are still in its original category even in detail table, the cat ID has been changed.

    However, if need to change _posts table, that is hard, because this table only record post ID, unless join both table together.

    #467892

    Paolo
    Site Admin
    Post count: 31206
    This reply has been marked as private.
    #467894

    Paolo
    Site Admin
    Post count: 31206
    This reply has been marked as private.
    #467901

    Kai Liu
    Expired Member
    Post count: 368
    This reply has been marked as private.
Viewing 8 posts - 1 through 8 (of 8 total)

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

Open Support Ticket