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
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
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)
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.
Hi Waqar,
Of course you can donwload a clone to do tests. You have my permission.
Let me know if you need more information.
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.
Hi Waqar,
Thanks, I managed to do what I want !