Custom Post Type uses single-format.php but layout is not the same as regular posts
Hi Muffin Team,
I’m using BeTheme (v28.0.5) with a child theme, and I’ve registered a custom post type called format
using register_post_type()
with show_in_rest => true
.
To make sure the layout matches the standard blog posts, I’ve copied single.php
into my child theme as single-format.php
. I also copied includes/content-single.php
into templates/content-single-format.php
in the child theme.
The CPT is working (visible in dashboard, URLs are correct), but when I visit a format
post (e.g. /format/csi/
), the page displays no content, even though the post is published and has a title and body text.
I've confirmed:
the_content()
is insidecontent-single-format.php
- Permalinks are flushed
- No caching or security plugin is interfering
- Child theme is active
- The post itself has actual content
How can I make the format
CPT use exactly the same layout and structure (breadcrumb, hero image, title, meta, content area) as regular posts?
Thank you in advance for your help!
— Daniele
Comments
Hi,
What you ask for requires file customization, which, in reference to the Item Support Policy, is not allowed. http://themeforest.net/page/item_support_policy
So if you want to modify files and don't know how, you should contact your web developer. Item Policy says:
Item support does not include services to modify or extend the item beyond the original features, style, and functionality described on the item page. For customization services that will help you tailor the item to your specific requirements, we recommend contacting the author to see if they privately offer paid customization services or checking out the great service providers on Envato Studio.
Thanks
It's an absolutely minimal modification, I only need to create one Custom Page called 'format' that is identical to normal posts.
That's all I need. Then the theme is perfect.
Please Help me!!!!
Sorry, but it is out of the scope of support.
As I mentioned in my previous message, you should contact your web developer instead.
Best regards