Skip Navigation

[Resolved] Display attribute value in a View

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

Problem:
Attributes are added to the shortcode that inserts a View. How can these attributes be displayed within the View?

Solution:
You need the wpv-attribute shortcode (https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-attribute), as described in the documentation below:

Relevant Documentation:
https://toolset.com/documentation/user-guides/passing-arguments-to-views/#accessing-the-arguments

This support ticket is created 6 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 6 years, 7 months ago.

Assisted by: Nigel.

Author
Posts
#919637

I have a view that pulls in views of a specific category, which is defined by a shortcode - how do I display this parameter in the view so that I can have it as the title for each view that is displayed?

i.e. [wpv-view cat="sport"] [wpv-view cat="news"] shows the title 'Sport' and 'News' within its respective list?

Kindest regards,

Pete

#919716

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)