Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Reply To: [Waiting for user feedback] Passing argument with [wpv-view} shortcode

$
0
0
Yes, I know that link. Unfortunately it does not cover what I asked about. That link discusses how to use the filtering on the top section of the views panel. What I want to do is lower down on the views page, be able to get the variable within the html section.

I thought I was very specific, but I'll try again by making up a silly example:

1 – On a static PAGE, we'll use this command:

[wpv-view name="VIEW-Days-Of-The-Week" day="Monday"]

2a – Set up a VIEW, let's call it "VIEW-Days-Of-The-Week"

2b – Filter is set to read whatever, maybe posts (Not relevant here). I know you can use "Value set by View shortcode attribute" which would read in the variable "day" and the result would be "monday" – but that is also not what I'm trying to do at this time.

2c – Lower down in the Views panel, in the HTML section I might want to automatically display whats in the variable "day" such as:

[Put Here the code to display variable]

The above 'code' would put text/link with the word "Monday" The big question is, what is the code? I was think it was:

[wpv-post field name="day"]

But that is not working – so what will work?

(Before you say it, I know I could instead make the link back in the static page, that's not the point. This is just an example of any kind of usage of calling up a variable for the sake of this explanation).

Thanks in advance!


Viewing all articles
Browse latest Browse all 20145

Trending Articles