Codeinwp / Codeinwp/neve

Single post layout cover not working for CPT

Open
#4,372 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug customer report
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
  1. Create a CPT using Custom Post Type UI and check it on frontend https://vertis.d.pr/i/2PaKtt
  2. Go to Customize > Layout > Single Post > Header Layout and change it to Cover
  3. Check the CPT again -> the title is not visible anymore https://vertis.d.pr/i/ikjtME
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.