Sauter la navigation

[Résolu] Problem with shortcode view and attribute

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:
The user view was not working after a user update.

Solution:
The user is passing a custom field through the view shortcode argument and also using a filter inside the view for that custom field. Once we remove the filter the view works.

This support ticket is created Il y a 4 années et 8 mois. 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9: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: Africa/Casablanca (GMT+01:00)

Marqué : ,

Ce sujet contient 5 réponses, a 2 voix.

Dernière mise à jour par christopheV-2 Il y a 4 années et 8 mois.

Assisté par: Jamal.

Auteur
Publications
#1606873

Hello,

On some pages this type of shortcode [wpv-view name = "cv-rugby" typecvrugby = "joueur"] works and on others not.
I checked in the views I have the same thing. I don't understand why it doesn't work on some pages.

Thank you

#1606913

Hello and thank you for contacting the Toolset support.

To better assist you with this issue, I'll better log in to your website and check the differences between the two views. Maybe I'll spot something that you may have missed. Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **

Please let me know two views, one that's working.

#1607017

Thank you for the credentials, I confirm they are working for me.

I visited the page "Essai" and I can see some content on it. Check this screenshot lien caché

But I am not sure, what is working and what is not working. Can you give details on how to check and test this?
Please explain in a way like:
- I go to ...
- I expect to have ...
- Instead, I get ...

#1608233

Hello,

it would be necessary on this print screen that there are only the "joueurs".
actually, there are all CVS (entraineur, arbitre...)

I would like only "joueur"
I use this shortcode : [wpv-view name = "cv-rugby" typecvrugby = "joueur"]

Thank you

#1608293

The view filter code has another filter on the same custom field that you are passing with the shortcode attribute. Check this screenshot lien caché

Once we remove this filter the view works as expected.

I hope this helps. Let me know your feedback.

#1608511

It's perfect !
Thank you.