Skip Navigation

[Resolved] Different Layout Templates for Custom Post Type

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.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 6 years ago.

Assisted by: Christian Cox.

Author
Posts
#1189691
Capture-3.PNG
Capture2.PNG
Capture-1.PNG

Hello,
I would like to ask you for advice about setting up different templates to be used on same post type.

(Example)
The situation is:
1. Products (Post Type) - 2 different categories in the Product Category assigned ( one is for English and the other is for French )
2. Layout Template built - The default one has labels in English and second one was duplicated but using labels in French

I tried manually to assign the French Layout Template to be used on each french post only.
But the Layout affects globally all of the Posts in the CPT including the English ones.

I checked the Option in the Layout of "Change how this template is used" and tried to find an option for filtering Post Type by categories assigned ( something similar to the Views filtering function ) but I haven't found one.
And not sure how to isolate the English and French products by using 2 different ayout Templates with their proper language template assigned.

I attach snapshots for better understanding of the issue.
I really hope that you can help me there.
Thank you, appreciate it.

Best Regards!

#1189730

Closing per our discussion in chat. Thanks!