[Fermé] View does not display correctly when using content template
This support ticket is created Il y a 3 années et 11 mois. 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I have created a post view and it is working fine in various places where I have inserted it, e.g. see the "Buying Spanish Property" section on this page: hidden link
My view uses a content template for the loop.
I have inserted the same view on my 404 page, see: hidden link
I have tried this a couple of ways, both with the same unsuccessful outcome. One way is to render the view from my 404.php template. The other is to use a content template (to which the view is inserted) and then render the view_template from my 404.php template.
You see it does not respect my format - no featured image or title. Instead it shows the excerpt.
I have seen this problem a number of times whilst building sites. I have been able to work around it by switching the loop content template for the actual html/shortcodes.
Thank you for contacting us and I'd be happy to assist.
During my initial tests, I couldn't reproduce this issue on a test website. I created a post view, with the heading block and the image block for the featured image in the loop.