Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Modify display for Custom Post Type (CPT)

Home / Forums / Virtue Theme / Modify display for Custom Post Type (CPT)

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
April 22, 2019 at 4:57 pm

Hi Team,

I have a Custom Post Type “post_type=epkb_post_type_1” set up by a plugin. It pulls in the single.php template for displaying posts.

For this post-type only, I would like to enable comments and disable the bottom carousel. Please can you show me how this can be done using the hooks available in the template? I want to avoid changing the configuration in Dashboard > Theme Options > Blog Options > Blog Post Bottom Carousel Default, for the entire site.

Even better would be to force the bottom carousel to show only these post-types. Is that possible? If necessary, I am using a child-theme so modification of the template (“templates/content-single.php” -> “templates/content-single-epkb_post_type_1.php”) is a possibility.

Very many thanks
Phil.

  • The forum ‘Virtue Theme’ is closed to new topics and replies.