Skip Navigation

[Resolved] display a layout in my theme file

This support ticket is created 5 years, 11 months 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 7.11 hours from now. Thank you for your understanding.

This topic contains 1 reply, has 1 voice.

Last updated by burakA 5 years, 11 months ago.

Author
Posts
#1174896

Tell us what you are trying to do?
Im building a conditional profile page. I want to create 3 layouts in Toolset and display them in my template file. If condition 1 ist met: display layout 1 ...
My code looks like:
<?
if($permission==="own"){
echo 'DISPLAY LAYOUT "OWN"';
}else if($permission==="other"){
echo 'DISPLAY LAYOUT "OTHER"';
}else if($permission==="denied") {
echo 'DISPLAY LAYOUT "DENIED"';
} ?>
I need a shortcode or a function to integrate the layouts in my template

Is there any documentation that you are following?
I read this page but its not helpful: https://toolset.com/documentation/user-guides/layouts-theme-integration/

Is there a similar example that we can see?
no

What is the link to your site?
frisch.yes4shopping.com

#1174922

I created multiple pages with different templates and did wp_redirect() to solve the problem