Skip Navigation

[Resolved] Defining author for filter

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

Problem:

Use a shortcode to define the authors nested within the views shortcode.

Solution:

You can add custom shortcode name here:

Toolset->Settings and click on the Front-end Content tab. Look for the section called Third-party shortcode arguments:

Relevant Documentation:

https://toolset.com/documentation/user-guides/shortcodes-within-shortcodes/#third-party-shortcode-arguments

This support ticket is created 6 years, 1 month 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: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 6 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#1174811

I am trying to: use a shortcode to define the authors nested within the views shortcode

Link to a page where the issue can be seen: runjumpthrow.com staging website: hidden link

I expected to see: the view filtering for the members of the group, as defined using the custom shortcode nested within the view

Instead, I got: the shortcode prints the names fine in the test above and if I copy the text produced into my view, it works fine. But when I nest the shortcode (I am using a plugin to allow me to do so) it shows my the CPT written by ALL users of the website rather than the group members.

#1175062

Hi,

I assume you are using custom shortcodes from other 3rd party plugins to pass author's information to View:
https://toolset.com/documentation/user-guides/filtering-views-query-by-author/#post-author-is-set-by-a-views-shortcode-attribute

If it is, add your custom shortcode name here:
Toolset->Settings and click on the Front-end Content tab. Look for the section called Third-party shortcode arguments:

See our document:
https://toolset.com/documentation/user-guides/shortcodes-within-shortcodes/#third-party-shortcode-arguments

#1175123

My issue is resolved now. Thank you!

#1175535

You are welcome