Skip Navigation

[Resolved] issue with a view " No items found"

This support ticket is created 4 years, 10 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
- 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 9 replies, has 2 voices.

Last updated by Deniz 4 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#1547193
2020-03-11-16-14-aiwhrmpx.preview.infomaniak.website.jpg

Hi,

I have a view who display some acf fields who are on the current page.. It's works well only on one page.
On another pages it's doesn't work, I think they can't find the current page.
In the filter I have this message "Cela filtrera les publications des types suivants car elles ne sont associées à aucun autre type de publication : Créateurs"

Thanks
Fabien

#1547517

Shane
Supporter

Languages: English (English )

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

Hi Fabien,

Thank you for getting in touch.

Its a bit difficult to understand what your filter is doing.

Would you mind allowing me to have admin access to the site ?

I will need a link to the page where the view works and one where it doesn't in order to understand the situation fully.

Thanks,
Shane

#1548363

Shane
Supporter

Languages: English (English )

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

Hi Fabien,

Not sure what this view is suppose to be displaying but you've added relationship filter for the Creatuers CPT but there is no relationship relating it to itself.

Your relationship is createur [0 .. 1] << Carnets de voyage [*] so your view should be set to display Carnets de voyage not createur

Thanks,
Shane

#1548439

Hi,

not sure to understand, but Carnets de voyage is another view used in the bottom of the page under "MON CARNET DE VOYAGE" you can see here hidden link

thanks

#1548455

Shane
Supporter

Languages: English (English )

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

Hello,

Correct but the view in question is the view that is displaying just " Créateurs"

You've added a relationship filter to it, but the CPT can't be related to itself through a Types relationship. This is why you are getting the no results found.

In this view what is it that you are trying to display ?

Please let me know.
Thanks,
Shane

#1548491
Annotation 2020-03-12 163221.jpg
Annotation 2020-03-12 163611.jpg

Hi,

the view must display acf field of the current page.
You can see in screenshot

Thanks

#1548797

Shane
Supporter

Languages: English (English )

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

Hello,

Then in this case what you should add is a view that is filtering for the current post ID rather than a relationship filter.

I've added the post ID filter to get the id from a shortcode parameter.

So re-add your view to the page in the format.


[wpv-view name='fc-createur-page-perso' ids='[wpv-post-id]']

Please let me know if this helps.
Thanks,
Shane

#1549889

Hi,

thanks but it's doesn't display the good person:
hidden link
We attend to have Francine, but it's display Michel.

Thanks

#1550159

Shane
Supporter

Languages: English (English )

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

Hello,

Replace your HTML block with a text editor block and add the following.


[wpv-view name="fc-createur-page-perso" ids="[wpv-post-id]"]

I've tested this and it works fine.

Thanks,
Shane

#1556303

My issue is resolved now. Thank you!