Skip Navigation

[Resolved] Views on single post template with Elementor

This support ticket is created 4 years, 6 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.80 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by XtofKe 4 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#1639011

Hi,
I have created a custom post type and created a template to show single items using Elementor Pro.
To include repeating fields and a map I have created 2 seperate views to include these in Elementor. Other data is pulled using dynamic tags in Elementor
Everything is displayed correctly when all fields are filled in. However, when the first view (repeating fields) returns no data, the 2nd one (map) is also empty.
Both views use a query filter "Select items in any relationship as related items of..." The post where this View is shown
Am I missing to link the view-map to the custom post?

(Site is currently still on a local machine)

#1640149

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for getting in touch. Could you send me a couple screenshot of the following.

1. The repeatable fields on the backend on the post itself.
2. The query filter of the view.
3. How the view was inserted into the template.

Once you have provided this we can take it from there, however I may need a copy the site but I will let you know based on what I can find in the screenshots.

Thanks,
Shane

#1641043

Hi Shane,

In the meantime I've made the site available online so I can give you access if needed.

This is an example of a working page: hidden link
This is an example of a page where the map is not showing even though data is available: hidden link and data for the repeating fields is not filled in (Openingsuren = Opening hours)

#1641723

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

yes please provide me with admin access to the site as i'm not able to check on your view from just the frontend.

The private fields have been enabled for your next response.

Thanks,
Shane

#1642107

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

The issue here is that for this post
hidden link

There are no relationships for the view to pick up. If you look on the backend hidden link

You will see that this post has no repeatable fields added to it nor is it connected in any relationship.

This is why your views are displaying the No Results Found.

If you were to create a relationship and add some repeatable fields then your view should display the relevant data.

Given that it works perfectly fine on this page here.
hidden link

Also for the Map I've adjusted it so that it gets the Address from the current post being viewed. You will need to go ahead and set back the elementor section to be full width.

Thanks,
Shane

#1642261

Thank you Shane, this is exactly what I needed to achieve.
I'll need to find some time to have a closer look at the shortcode options 🙂