Skip Navigation

[Resolved] shortcode attribute overrule with the opposite

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

Problem:
Is it possible to override the comparison in a ShortCode attribute passed in a View ShortCode?

As example:
[wpv-view name="view-name" wpvposttag="xxxx"]
This will return all Posts with tag "xxx".
Can I override this when I insert above ShortCode to NOT return those posts?

Solution:
No.
Those settings are done when you create the View and can only be changed in the View itself

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

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
- - 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)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Steve 7 years, 10 months ago.

Assisted by: Beda.

Author
Posts
#412059

hej toolset.

today i am looking for a simple hint …

generally i am passing an attribute by shortcode to my view like this …
[wpv-view name="view-name" wpvposttag="xxxx"]
… where i can set up that any, all or none of my arguments should be displayed.
most of the time i use 'any' for that.

but is there a way when my view is set up with 'any' to ask for 'none' by overruling in my shortcode?

thanks in advance for your help!

best,
s

#412075
Bildschirmfoto 2016-06-30 um 20.05.37.png
Bildschirmfoto 2016-06-30 um 20.02.57.png

I understand you have a View, and pass the Posts Tags in a ShortCode attribute.
The only available options are present in the GUI:
IN
NOT IN
AND
(Speaking in terms of SQL Syntax)

When you then insert the View you have a few Override Settings.
See the ScreenShot for what i mean.
The Query Filter is not included there.

To return "none" you must pass that in the Query Filter.

#412081

ok, thanks for your quick help beda!
i thought there must be something like 'NOT' or 'ne' in the shortcode attribute as well.
best,
s

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.