Skip Navigation

[Resolved] query filter custom number field and current user id not work

This support ticket is created 5 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.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 5 replies, has 2 voices.

Last updated by Beda 5 years, 6 months ago.

Assisted by: Beda.

Author
Posts
#1384745
Снимок экрана 2019-11-16 в 09.14.04.png
Снимок экрана 2019-11-16 в 08.52.12.png
Снимок экрана 2019-11-16 в 08.51.40.png
Снимок экрана 2019-11-16 в 08.51.22.png

why not work with short code ?

#1384849

Screenshot nr.4 cannot work as you cannot use ShortCodes in that value.
Screenshot nr.3 works because you have set a clear ID (1) in the query.
Screenshot n32 should be correct, IF that is a query by "ShortCode attribute".

Then, Screenshot nr.1 also should work, IF you fix the typo with the missing ] in it
It should say something like [wpv-view name="view-name" teacher="[wpv-user field='ID']" ]

If that doesn't work I need to see this in English so I can fix it - we have supporters that are able to read Cyrillic languages but they aren't working in Toolset, I'd have to ask them over from WPML and that could only happen next week the earliest.

Thanks!

#1384991

I found the problem, how can I solve it?
problem with the nested shortcode

[wpv-view name="webinars-testing" teacher="[wpv-user field='ID']"]

in elementor
hidden link

in layouts
hidden link

#1384993

I use
types Version 3.3.7
view Version 2.9.4

#1384997
#1386645

Both videos are the exact same, and they do not use Elementor but Toolset Layouts Content Layouts, which should not be used if you use Elementor on the same post.

Do you mean that the same shortcode that works in Layouts does not work in an Elementor Text Widget?
Just as it says in the other ticket (and just as you do in Layouts) you have to use a text widget.
"Solution: Use a text editor element for best results with nested shortcodes."

Can you confirm it works in a Text Editor Widget of Elementor (and not using Layouts)?
Here is the DOC to that integration, and it does not instruct to use Layouts with Elementor: https://toolset.com/documentation/user-guides/using-toolset-with-elementor-page-builder/

If that does not solve the issue please let me know.