Skip Navigation

[Resolved] how to display a URL parameter – in page and view content template

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

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 7 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#559763

Tell us what you are trying to do?
I want to see what is actually available in the page and view content template
(I know the variables are coming into the page in the $_request because I am using PHP everywhere to display it)

Is there any documentation that you are following?
https://toolset.com/documentation/user-guides/passing-arguments-to-views/

Is there a similar example that we can see?
view param artist_owner in page : [wpv-attribute name="artists_owner"]
( this is also a wp-types custom field)

What is the link to your site?
hidden link

thanks!

#559823

Dear Chris,

Please try the Views shortcode [wpv-search-term], for example:
[wpv-search-term param='artists_owner']

see our document:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-search-term
This shortcode displays the search term when visiting the search results page, mainly if it is controlled using a WordPress Archive created in Views.

#560174

thanks
That works great in pages ( [wpv-search-term param='artists_owner'] but that short code does not seem to render in the view (its shortcake used by the page) or view's content template.
Is there a way to do that too ?

#560181

It should work in the View's loop and view's content template.
The problem you mentioned above is abnormal:
but that short code does not seem to render in the view (its shortcake used by the page) or view's content template.

Please describe detail steps to duplicate same problem, I need to test and debug it in my localhost, thanks