Skip Navigation

[Resolved] My template isn't displaying

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
- 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/Karachi (GMT+05:00)

This topic contains 6 replies, has 2 voices.

Last updated by cedricT-2 1 year, 4 months ago.

Assisted by: Waqar.

Author
Posts
#2693217

Hi,
I made two templates for displaying a grid of my custom posts.
I use wordpress and the theme Enfold.
The goal is to display real estate ads.
The first template is working very well and you can see it on this url : hidden link
I'm displaying it with a shortcode : [wpv-post-body view_template="ID of my template"]
I'm trying to achieve the same thing on this url for my second custom post : hidden link,
but nothing appears.
I don't understand because I did the exact same thing as the first custom post.
If you need credentials or any further informations, ask me.
Thanks

#2693241

Hi,

Thank you for contacting us and I'd be happy to assist.

To troubleshoot this, I'll need to see how these templates and pages are set up in the admin area.

Can you please share temporary admin login details, in reply to this message?

Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.

regards,
Waqar

#2693553

I tried to log in, but it is showing the incorrect username/password message.

Can you please test the username and password again?
(I've set your next reply as private)

#2693857

Thank you for sharing the access details.

Both the template and the views seem to be configured correctly and during my initial investigation, I couldn't narrow down why it is not working on the second page.

Do I have your permission to download the clone/snapshot of your website? This will help in troubleshooting this on a different server, without affecting the actual website.

#2693859

Hi Waqar,
Of course you can donwload a clone to do tests. You have my permission.
Let me know if you need more information.

#2694443

Thank you for the permission.

During troubleshooting on your website's clone, I was able to narrow down the issue that the shortcodes for the content templates were using the template IDs and not the name or the slugs:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-body

The 'view_template' attribute supports either the name or the slug, but not the ID. I've updated the shortcodes on these two pages to use the template names and they both are working now.

Note: For the content template where the shortcode was working, it was due to the fact that the slug was the same as the 'ID'.

I hope this helps and I apologize for missing out on this detail about the shortcode attribute earlier.

#2694457

Hi Waqar,
Thanks, I managed to do what I want !