Skip Navigation

[Resolved] Display Content Template loop within Elementor

This support ticket is created 4 years, 5 months 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.

Our next available supporter will start replying to tickets in about 0.83 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 5 replies, has 2 voices.

Last updated by jamesW-26 4 years, 5 months ago.

Assisted by: Minesh.

Author
Posts
#1675883

Tell us what you are trying to do?
I have created a custom post type called Employees. I have then created some employees posts. I created a Content Template in Toolset > Content Templates. I now want to display that look in an Elementor page. I have tried using the Toolset Views widget but it says I have to create a Vew first.

Is there any documentation that you are following?
I would if there was any.

Is there a similar example that we can see?
No.

What is the link to your site?
hidden link
It's under construction at the moment, so you'll need to login first.

#1676419

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

What you should do is, you should add a shortcode module using Elementor and within that shortcode module you should add the shortcode: [wpv-post-body]

For example:

[wpv-post-body view_template="your-content-template-slug"]

Where:
- replace your-content-template-slug with your original content template slug

More info:
=> https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-body

#1677367

Hi Minesh,

Thanks for that. Unfortunately it doesn't work. I'm expecting to get a list of Employees, but all it shows is the name of the page. Should it be set up as a WordPress Archive instead of a Content Template?

#1677497

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Would you mind to share problem URL and access details and tell me what exactly you want to display at what section?

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1677763

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please check now: hidden link

To display the list of emplyees, you need to add the block view. I've added the block view to your content template as you can see here:
=> hidden link

And then moved the content you added within the block view loop. I can see now it displays the list of emplyees. You can add/remove information now as per your requirement to above content template within the block view loop.

#1678543

Thanks Minesh. Didn't realise I needed to add a View, but makes sense.

Cheers