Skip Navigation

[Resolved] Toolset view inside Elementor Template not showing correctly in live site

This support ticket is created 2 years, 11 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.

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 8 replies, has 3 voices.

Last updated by camilaL 2 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#2299649
WPEditor Toolset view - working.png
Live site - not working.png
Elementor preview - working.png

I am trying to:
Display a Toolset view inside Elementor Archive page.

Link to a page where the issue can be seen:
hidden link
hidden link

I expected to see:
List of post types as defined in Toolset view, and as I can see in the Elementor preview (thumbnail, title, etc.)
(images of preview and live attached)

Instead, I got:
Post content.

#2300065

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

I took a look at your site, and I think I can follow what you have done, but I'm not sure I understand why.

Can you clarify what you are aiming to do?

You are using Elementor to create an archive template to display posts made with Elementor but are not using the output of the archive of posts and instead have inserted a View to display the posts (currently one post) on the archive page.

If you are using Elementor for nearly everything, why use a View in this context?

I checked on my own Elementor test site, and found that the View output was replaced by the post content when inserted on an archive, so it doesn't look like this is possible, and I'm wondering if you can achieve what you want just designing the archive in Elementor.

If not, can you not use Elementor to design the archive, and design it in Toolset (at Toolset > WordPress Archives)?

#2300161
Screenshot 2022-02-22 at 17.50.43.png

Hi Nigel,

I use Elementor for almost everything indeed.
So I create in Elementor :
- archive templates
- single custom post templates
- post pages
- static pages

Inside the archive I want a specific display of the posts. For example in Itineraire bis I have custom fields that I want to be shown in each "post card" inside the Archive.
To my knowledge I cannot use Elementor to show custom fields and do some personalisations in the posts list of an Archive page.
That is why I use toolset view.

This technique has worked for example in this page hidden link (image attached), in the bottom I inserted two Toolset views to display the latest posts "95%..." and "podcast" because I wanted to shoe some fields as titles in the cards. But this is a static page.

Why wouldn't the same work for an archive page?

Thank you for your assistance,
Cam

#2300657

Minesh
Supporter

Languages: English (English )

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

I've created the following content template and added the archive view you created to it:
- hidden link

Then, I've added the Text module to your archive elementor template and added the above content template as given under:
=> hidden link

[wpv-post-body view_template="archive-view-container"]

I can see now the view is displayed successfully.

#2301019

Ok I understand what you have done.

The view i s displayed but not as configured. My view is a 3 column view and it is displayed as a single column...

Also, could you tell me where you retrieved the view name ([wpv-view name="archive-itineraire-bis"]) to insert inside the content template. So I can use the same technique if it works.

Thank you

#2301051

Minesh
Supporter

Languages: English (English )

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

As Nigel shared with his previous reply based on his testing while using Elementor archive, you should not mix both Toolset Blocks (views) and Elementor to design your archive as it may get conflict and offer you undesirable results.

Here is official Doc about how you can use Elementor with Toolset:
- https://toolset.com/course-lesson/using-toolset-with-elementor-page-builder/

To get view's shortcode you can click on "Fields and Views" button available at top of the post content editor or content template editor.

In your case, see this content template:
- hidden link

Click on "Fields and Views" button at top of the Editor and search for your view name and add it.
- Screenshot: hidden link

#2301057

Thank you for your prompt response Minesh.
And why is the page only showing the archive in one column instead of 3 columns as configured in the view?

#2301073

Minesh
Supporter

Languages: English (English )

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

As shared, as we are not having tight integration with Elementor, such issues will happen.

However, to fix the grid issue, I've added the following line of CSS code to your View's custom CSS section:
=> hidden link

.js-wpv-loop-wrapper > .tb-grid {
    grid-template-columns: minmax(0, 0.3333fr) minmax(0, 0.3333fr) minmax(0, 0.3333fr);
    grid-auto-flow: row;
}

Screenshot: hidden link

I can see now it does displays the grid with columns.

#2304959

My issue is resolved now. Thank you!