Skip Navigation

[Resolved] Views returns no rows in Elementor

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

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. 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)

This topic contains 27 replies, has 3 voices.

Last updated by Shane 6 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#1108296

After re-reading Bread's response it's clear that there is a misunderstanding.

The "no rows" refers to the result of the view - not a view created with the name "no rows".

Shane,

If you recall - I asked for help about creating a view that would show limited rows of a post on the homepage vs showing all the rows on another page. I managed to find a solution - this worked for a while and then suddenly stopped working. This could have been a mixture of an update or ( more likely a change I made ) ...

So to recap ...

1) I have a CPT called Agenda Minutes
2) In there, there are 2 posts - one called Park designed in Elementor and one called Berry designed in native w/press editor
3) The view does show in the Park posts view
4) The same view does not show on the homepage - why? All it shows is "no rows" ...

I'll do more research - but I am looking for a timely answer.

#1108547

Shane
Supporter

Languages: English (English )

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

Hi Steve,

SO that we are on the same page, you are referring to the view here hidden link

Correct?

Thanks,
Shane

#1108550

You have it Shane!

Which translates to -:

"No items found" on home page below tabs. Once we have this working, I'll move it back to within the tabs.

It matters little to me whether "Park" / "Berry" is written in native WordPress editor or Elementor ... I think you will see both versions under the CPT "Agenda Minutes".

#1109635

Shane
Supporter

Languages: English (English )

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

Hi Steve,

I see the issue.

Its because this homepage doesn't have any repeatable field groups. This displays fine
hidden link

But the homepage doesn't have a RFG.

Thanks,
Shane

#1109652

Shane,

I am not sure I understand ...

The homepage has a view of the RPGs which is not returning rows - why?

#1109654

Shane
Supporter

Languages: English (English )

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

Hi Steve,

Not from what I can see here
hidden link

There isn't any RFG here.

Thanks,
Shane

#1109661
view callout.jpg

Shane,

F.Y.I. Thanks for the swift reply - much appreciated.

Do you see a view above bottom image?

#1109670

Shane
Supporter

Languages: English (English )

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

Screen Shot 2018-09-17 at 2.48.39 PM.png

Hi Steve,

Yes I see it and the reason why no results are found is because the view is not able to find any RFG's on the page where it is placed.

This same view is also on this page hidden link

But because this page has a RFG then it will display. See Screenshot

Please let me know if this clears things up for you.

Thanks,
Shane

#1109691

Shane,

If I wanted a view to show RPGs on the home page - how can I do this?

Ideally, I want to show all rows on the post page - and then the view to show limited rows on the homepage.

I thought that ToolSet could do this via RPGs + views.

#1109693

Shane
Supporter

Languages: English (English )

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

Screen Shot 2018-09-17 at 3.16.38 PM.png

Hi Steve,

To get this to work on the homepage you will need to change the filter to get the id from a shortcode attribute. Then you will need to pass the ID of a post that has a RFG on it. See Screenshot.

Thanks,
Shane

#1109704

Great,

How would I accomplish this?

#1109708

Shane
Supporter

Languages: English (English )

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

Screen Shot 2018-09-17 at 3.16.38 PM.png

Hi Steve,

Take a look at this screenshot.

I've expanded the relationship filter for your Agenda Minutes view. The forth option, you will need to check that.

Then when calling the view you call it like this.
[wpv-view name='my-view' wpvrelatedto='1234']

Where my-view is the slug of your view and 1234 is the ID of the post. Finally to ensure that this doesn't break on your Agenda posts you just need to call the view with the auto ID, like this.

[wpv-view name='my-view' wpvrelatedto='[wpv-post-id]']

Please let me know if this helps.
Thanks,
Shane

#1110842

Shane,

This makes complete sense - let me try this out and I will update.

#1111576

Shane
Supporter

Languages: English (English )

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

Hi Steve,

Awesome, looking forward to hearing from you soon.

Thanks,
Shane