[wp-trac] [WordPress Trac] #59422: Custom Post Type name with hyphen does not with custom single post template
WordPress Trac
noreply at wordpress.org
Mon Sep 25 01:41:47 UTC 2023
#59422: Custom Post Type name with hyphen does not with custom single post template
--------------------------+------------------------------
Reporter: htung | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 6.3.1
Severity: normal | Resolution: worksforme
Keywords: | Focuses: template
--------------------------+------------------------------
Changes (by htung):
* status: new => closed
* resolution: => worksforme
Comment:
@faisal03 Thanks for testing it for me, actually I found the issue was due
to missing below parameter. Once I declared it, the single-annual-
report.php is working.
{{{
'rewrite' => array('slug' => 'annual-report' ),
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59422#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list