最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

'Invalid post type' error when importing from one site to another

programmeradmin0浏览0评论

Our existing corporate site was developed by a 3rd party vendor. I am in the process of creating a new version of our site, in a new WP instance. I need to export the 'News' articles, from the current site, to the new DEV site. My issue is I cannot find, on the current site, where the 'News' custom post type was created/configured. When I click on 'News', in the current site, the post type URL displays as: post_type=recent-news. And, when importing into the new DEV site, I receive this error: 'Invalid post type recent-news'.

  1. Does the import custom post type plugin need to be the same as the export custom post type plugin?

I'm using CPT UI on the DEV site, and the only custom post type plugin I can find on the current site is Toolset. but, in the Toolset settings, the only post types that display are OOTB post types of: Media, Pages, and Posts. there is no reference to either 'News' or 'recent-news'.

  1. I've tried creating a new custom post type, on DEV, using CPT UI, but I cannot figure out how to specify the post type as 'recent-news', in order to match what is being imported. CPT UI always converts a dash '-' to an underscore '_'?

Am I missing something, or did the 3rd party developer hard code a 'News'/'recent-news' post type somewhere else?

I'm not a true 'developer', I'm more of a front-end guy, so I'm racking my brain trying to figure this out.

发布评论

评论列表(0)

  1. 暂无评论