Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Importing two other WP sites into a third, merging categories

Discussion in 'Misc WordPress Requests' started by Pioneer Web Design, Nov 22, 2017.

  1. Pioneer Web Design

    Guest

    Reply To: Importing two other WP sites into a third, merging categories, by Pioneer Web Design

    Assuming you are using the WP Export Import tools:

    When you import content, and an id already exists, a new id will be created. When you import posts with categories, the categories will get new id’s in the same way. Id’s must be unique. If the ‘slug’ of the Category already exists, that category slug on import will be appended with -2 (then sequentially for many).

    You can see this yourself on any site. Just create a category with a name and then repeat with same name and you will see the second has a unique id but will have slug name-2.

    Once imported, you can find the -2 category slugs and merge them to the first one.

    Same with other items like pages and posts, etc. Slugs must be unique.

    Any custom functions or templates that rely on specific id’s or slugs may need to be updated. Example: a custom page template that uses the id that was changed on import.

    Reply To: Importing two other WP sites into a third, merging categories
     
    #1

Share This Page

Web Hosting