Single post layout cover not working for CPT
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 306
- Forks
- 88
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 12
Description
Description
The Cover option that we have in Customize > Layout > Single Post > Header Layout is also applying for any CPTs created, but is not working well in that case ( the title and meta are not visible )
Step-by-step reproduction instructions
- Create a CPT using Custom Post Type UI and check it on frontend https://vertis.d.pr/i/2PaKtt
- Go to Customize > Layout > Single Post > Header Layout and change it to Cover
- Check the CPT again -> the title is not visible anymore https://vertis.d.pr/i/ikjtME
- In the video you can see the difference between how the Cover option is working for Posts vs CPT https://vertis.d.pr/v/yrpnu1
Screenshots, screen recording, code snippet or Help Scout ticket
It was previously reported here https://github.com/Codeinwp/neve/issues/4062 but there is another ticket
https://wordpress.org/support/topic/featured-image-cover-in-custom-post-types/
Environment info
No response
Is the issue you are reporting a regression
No
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with a Custom Post Type UI CPT, then compare the frontend output for a regular post and the CPT after selecting Customize > Layout > Single Post > Header Layout > Cover. Trace the Cover layout entry point and identify the change needed so the CPT title and meta remain visible; done means both display correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100