Hello,
I am trying to: create a custom post type layoutv with toolset layout plugin
I expected to see:
the layout template i created with toolset layout plugin for a custom post type with custom fields
Instead, I got:
the template incluvise existing theme formats such as breadcumb menu, page title container. i do not want show that on my custom made template for my custom post type, but I would like to show it on other pages.
Hi,
The layout works only in the content area by default, the "existing theme formats" you mentioned above( such as breadcumb menu, page title), it should be defined by your theme files.
I suggest you create another theme file for single post of your custom post type:
https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
Remove those "existing theme formats", for example,
1) Your custom post type is using slug "my-cpt"
2) You can copy theme file "single.php", save it as "single-my-cpt.php"
3) Edit file "single-my-cpt.php", find and remove those "existing theme formats", and test again.
Hi,
I created a new single post type. However, This is the code of the single template, but I do not find the page title and breadcumb menu... maybe you can help me further?
<?php
/**
*
* The template for displaying all single posts
*
*/
get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php
//get global post values
$rt_post_values = rt_get_single_post_values( $post );
get_template_part( '/post-contents/single-content', get_post_format() );
?>
<?php endwhile; else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
<?php if( $rt_post_values["show_author_info"] ):?>
<?php get_template_part("author","bio"); ?>
<?php endif;?>
<?php if( comments_open() && ! is_attachment() ):?>
<div class='entry commententry'>
<?php comments_template(); ?>
</div>
<?php endif;?>
<?php get_footer(); ?>
Kind regards
You will need to manually debug the PHP codes in this theme file line by line, if you need assistance for it, please provide a copy of your website, also point out the problem page URL and theme file path, I need to test and debug it in my localhost.
https://toolset.com/faq/provide-supporters-copy-site/
Thanks