Avatar of Adam
Adam
Flag 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.

Categories invisible!!!
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.
WordPressPHPWeb Development

Avatar of undefined
Last Comment
Adam

8/22/2022 - Mon
Jason C. Levine

Did you try disabling permalinks?
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.
Jason C. Levine

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?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
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):

Posts > Category List
But when I go back to either add or edit a post, I still see this:

Post Categories
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.
Jason C. Levine

, 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
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.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Jason C. Levine

It might be a conflict with the CPT.  Try re-declaring it with something other than categories (maybe CPT-categories to differentiate).
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
Jason C. Levine

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Jason C. Levine

Out of curiosity, which theme is it?
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Adam

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