Skip Navigation

[Resolved] Problem with shortcode view and attribute

This thread is resolved. Here is a description of the problem and solution.

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 4 years, 7 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 – 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)

This topic contains 5 replies, has 2 voices.

Last updated by christopheV-2 4 years, 7 months ago.

Assisted by: Jamal.

Author
Posts
#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 hidden link

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 hidden link

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.