I tried to find answers in the documentation but wasn't successful. Basically, I'm trying to understand how I can use child content templates and format them:
I'm working on my master template for Businesses.
I've created a content template for the custom type "Services". This content template has three columns.
When I create a view in my master content template and I select "Services" for the source and grid for the display, I don't see my three columns anymore.
So what are the best practices to preserve child content template layout please?
Thanks,
Hi, it depends on what you want to achieve. It souds like you have two custom post types - Businesses and Services. You have created a Content Template and applied it to the Businesses post type, so all Business posts have the same template. You have also created a Content Template and applied it to the Services post type, so all individual Services posts have the same template. In the Businesses template, you have created a View to display related Services. It sounds like you are expecting the template applied to individual Services posts to also be applied to the View of related Services in the Business post template, but it is not displaying as you expected.
However, Views are designed to function independently of the template applied to individual posts displayed in that View. The template you apply to the individual Services post type is not "inherited", so to speak, when you create a View of Services and display it elsewhere on the site. If you'd like to reuse the same Content Template you have applied to individual Service posts, you can insert a Content Template Block in the loop of the View of Services and select the Content Template you have applied to individual Service posts. You may need to choose an Unformatted loop type in the View configurations for the best results here. I'd need to take a closer look at the setup to give a more accurate suggestion.
Let me know if you need additional information about that, and I can take a closer look if you provide login credentials in the private reply fields here.
Hi Christian,
Many thanks for your reply. I'm considering a different strategy now so will follow-up if I need some help.
Cheers,
Of course, I'll stand by for your update.