Skip Navigation

[Resolved] Layout is not right displayed

This support ticket is created 6 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 3.00 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 6 years ago.

Assisted by: Luo Yang.

Author
Posts
#1149316

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.

#1149688

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.

#1151188

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

#1151191

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