Support » Networking WordPress » Same Categories ID's across all multi sites

  • Resolved diragusa

    (@diragusa)


    I have many multi sites on my wordpress install. I tried importing my categories thru the exported xml file but it resulted in mislabeled cat id’s everywhere, and missing categories. Now the missing categories I get, BUT why are my ids all mislabeled. I dont want to know why, I just would like to have the same ID labels.
    are there any fixes.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    They don’t carry over like that. Category (and tag) IDs are specific to the site, because the ID value is generated automatically when you create a new cat/tag. It’s a database value you really don’t want to screw around with.

    What’s the reason you need them to have the same IDs? Maybe we can find a different solution.

    diragusa

    (@diragusa)

    because i dont want to use different themes for each multisite. i want to have the same look and feel and have the same categories. Im using the site host different areas in my county. and they all have the same categories.
    I may have seemed to found the answer.
    but if you have any insight let me know

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    I’d do it with category NAME and not category ID, personally.

    diragusa

    (@diragusa)

    how do you implement that?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    Depends on what you’re doing. 🙂 Is this for a menu, a template…?

    diragusa

    (@diragusa)

    😉 oh ya? for a template. my theme has calls different categories on pages but each multisite has the same theme with same category calls.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    Check out http://codex.wordpress.org/Template_Hierarchy

    You can name the files tag-<slug>.php and that will get called.

    diragusa

    (@diragusa)

    wonderful thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Same Categories ID's across all multi sites’ is closed to new replies.