Link to home
Start Free TrialLog in
Avatar of Adam
AdamFlag for Canada

asked on

Wordpress Import = Invisible Categories...??!!

Hello,

I recently exported my blog posts from my Wordpress site (running the latest version and using the default Wordpress importer/exporter) and imported it on a new site I've set up locally. Everything seems fine however, when I try to edit a post or add a post, all of my categories appear to be invisible in my category list. The categories definitely still exist as I can see them on the Categories page (and in my database for that matter) but not on an add/edit post page.

Additionally, even though my posts appear to have still kept their categories from my old site (I can still see the appropriate categories checked off), nothing is showing up on the front end of my site.

User generated image
Really have no idea where to begin troubleshooting this. I've tried creating new sites, importing/exporting a bunch of times, etc. Any help would be extremely helpful! Thanks.
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Did you try disabling permalinks?
Avatar of Adam

ASKER

Thanks for the response Jason. Permalinks were disabled when I first imported my posts and I enabled custom permalinks afterward and didn't notice a difference.

What would that do out of curiosity? I can give it a try again but my site will definitely need permalinks enabled.
What would that do out of curiosity?

It was kind of a last gasp attempt to reset the categories.  My suspicion is that the import got effed up somehow but I was hoping that turning permalinks off, then back on would somehow jolt the system into recognizing your categories. It doesn't actually effect that system but it does invoke a couple of functions that might have done something.

Obviously not.

What happens if you edit a category and change the label and slug?
Avatar of Adam

ASKER

Thanks Jason. I just tried disabling permalinks and re-enabling again but no luck.

Changing the category name or slug doesn't seem to do anything either. I can see the change in the category page (Posts > Categories):

User generated image
But when I go back to either add or edit a post, I still see this:

User generated image
Its very odd. And again, I've tried the import/export a handful of times and have used a few plugins to do the job...same result.
, I've tried the import/export a handful of times and have used a few plugins to do the job...same result.

I'm stumped.  Try a direct database transfer following these instructions:

https://www.experts-exchange.com/Web_Development/Blogs/WordPress/A_10258-How-To-Move-A-WordPress-Site.html
Avatar of Adam

ASKER

Thanks Jason. Yeah, not really sure how to move further either. I was trying to avoid doing a direct database transfer as I've already gone ahead and made a bunch of changes to my transferred site that I'll have to redo if I took this approach.

Not sure if this helps narrow things down but I recently created a custom post type that included categories as a taxonomy. After adding a bunch of categories, the exact same issue occurred—none are appearing in the category list within a post. Sigh...

I guess I'll keep digging online. Unfortunately, haven't had any luck finding anyone with the same problem.
It might be a conflict with the CPT.  Try re-declaring it with something other than categories (maybe CPT-categories to differentiate).
Avatar of Adam

ASKER

Hey Jason. Sorry for the delayed response. The CPT category actually has its own name so there shouldn't be a conflict there. The samples I showed above were for regular blog posts using the default Category setup in Wordpress.

I actually went ahead and decided to try creating a new site from scratch and re-imported my posts again. I came to the conclusion that something in my theme must be causing this. When I use one of Wordpress's default themes, the categories show up. When I activate mine, they disappear.

Not really sure if there is anything else really you can do to help. I'm going to start with my functions.php file and start commenting out functions to see what happens. Hopefully I'll get to the bottom of this!

Thanks again for your help.
SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Out of curiosity, which theme is it?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Adam

ASKER

I managed to solve my problem but appreciated Jason's help so I'm awarding him the points.