Layout Settings on Custom Post Types

Posted in: Newspaper
Post count: 8

Hi,

Is there a way to get the Layout Settings working on CPT? I have a CPT called “Entities” on my website, but the Layout Settings do not display, I only see the Sidebar options. Do you have any solution for this? Any help would be very much appreciated.

Post count: 35449

Hi,

I don’t quite understand the problem you are referring to, some more details and screenshots, or a link to the website where I can see the problem would be very helpful.

Thank you for your understanding.

Post count: 2

I am sure he wants to enable this panel: https://jmp.sh/i7TJpp8
And I need it too !!!

Post count: 8

Hi,

Sorry if I didn’t make myself clear. The problem is I have this CPT called “Entities” and, when I access the Edit Post page to edit one of them, I only see the Sidebar Settings, whereas for normal Articles I see both Page Template Settings and Sidebar Settings. I would like to know if there’s a way to show the Page Template Settings also for CPT. Attached you can find two screenshots so you can see the difference. The first one is the Posts and the second one is the CPT

Posts

CPT

Post count: 8

Exactly!

Post count: 35449

Hi,

Please check the Screen Options from that post ( https://www.screencast.com/t/JgTbS0Qte9D ), you can have some plugins that interfere with the theme; also if the “Entities” is provide from some plugins ( example https://www.screencast.com/t/St9FoGK4rz ), those don’t make part of theme.

Thank you for your understanding.

Post count: 8

Hi,

The “Entities” custom post type is added by a plugin, but we are the plugin provider. Can you please tell me a solution to add a snippet of code to the child theme in order to display those settings for the custom post type?

Post count: 35449

Hi,

You need to edit a file from includes>wp_booster>wp-admin>content-admin>content-metabox>te_template_settings.php
https://www.screencast.com/t/QFv0k12JEp
But it’s possible to won’t work as you expect, that’s why was been hide.
Also you can read How to create a custom single template in Custom Post Type Support documentation : https://forum.tagdiv.com/custom-post-type-support/

Thanks.

Post count: 8

Hi, I followed your instruction and modified the code in order to show the layout settings on CPT (look at the code here https://pastebin.com/PGZKJz6z)

Using this snippet I’m able to display the layout settings panel on the Edit page but it doesn’t work. In other words, the template doesn’t get assigned to the post. Any help?

Post count: 35449

Hi,

Have you try to make an Individual post settings for custom post types:
Unfortunately our theme is limited when is come to CPT , maybe you can fine a plugin that manage your requirements.

Thank you for your understanding.

Post count: 8

Hi, maybe I didn’t explain myself well in the previous posts. What I need to do is switching the template files for my CPT the same way I do it with the normal posts. Is there a way to do that? If not, can you please point me to the file inside the theme structure where you assign the different templates using the layout settings panel? Thank you

Post count: 35449

Hi,

Check how to create a custom single template for your post type.
-> https://forum.tagdiv.com/custom-post-type-support/
Please try to test our plugin td_books
https://www.screencast.com/t/gCGukYBJ

Thank you for your understanding.

Viewing 12 posts - 1 through 12 (of 12 total)
The forum ‘Newspaper’ is closed to new topics and replies.