custom post types - CPT not showing template

I have a CPT called extended_articles, which rewrites to extended-articles. My template file for this is called content-

I have a CPT called extended_articles, which rewrites to extended-articles. My template file for this is called content-single-extended_articles.php, and locally on my dev server this is working fine, and bringing in the template as needed.

But on the live version of the site, despite wp-admin being set up identically across both sites, it isn't bring in just the standard post template.

My post type is set up as such:

name: extended_articles
label: Extended Articles
singular_label: Extended Article
description: ""
public: true
publicly_queryable: true
show_ui: true
show_in_nav_menus: true
show_in_rest: false
rest_base: ""
rest_controller_class: ""
has_archive: false
has_archive_string: ""
exclude_from_search: false
capability_type: post
hierarchical: false
rewrite: true
rewrite_slug: ""
rewrite_withfront: true
query_var: true
query_var_slug: ""
menu_position: ""
show_in_menu: true
show_in_menu_string: ""
menu_icon: ""
custom_supports: ""

I have tried recreating the CPT and tried a completely different name in case there were caching issues or something but at this point I'm totally lost.

Can anyone suggest why this might be happening, or what can potentially be done to fix it?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744790563a4593889.html

相关推荐

  • custom post types - CPT not showing template

    I have a CPT called extended_articles, which rewrites to extended-articles. My template file for this is called content-

    9小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信