Forums

Copying over taxonomy structure from one CPT to another (2 posts)

  1. hraban
    Member
    Posted 10 months ago #

    Hello,
    I have a CPT called adverts and it has 2 taxonomies - category and location. The problem is that there are about 100 entries in location taxonomy and I need to copy the same structure to another CPT - businesses. Doing everything manually will take forever. Are there any solutions for that?

    P.S. Taxonomy structure includes parent and children hierarchy

  2. hraban
    Member
    Posted 10 months ago #

    I got the response on StackExchange

    When you register the taxonomies you can specify multiple post types:

    function register_my_taxonomies() {
    register_taxonomy(
                      'location',
                      array('post','page', 'adverts', 'businesses'),

Reply

You must log in to post.

About this Topic