Changed a bunch post types with set_post_type, but single-{post_type}.php doesn’t work

[ad_1]

Hi.

I set a large number of posts of one custom post type to a new custom post type using the set\_post\_type function. I am trying to create a template for this custom post type. It works when I create a new custom post, but the converted posts still use the old template or may be reverting to single.php.

Any suggestions?

[ad_2]
1 Comment
  1. After changes to post type frequently you need to go to Settings -> Permalinks to reset them.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer