I am trying to use a Toolset View to filter by IDs generated by another view, comma-separated.
I have a 2 looped views
UK Areas (Parent) > UK Locations (Child)
This outputs a nice clean set of IDs of the posts I would like to use (UK locations) - based on where the view is inserted.
e.g:
28243,28242,28293,28147,28241,28146,28076,28240,28292,28075,28145,28239,28238,28263,28291,28237,28074,28073,28072,28236,28290,28071,28070,28235,28144,28234,28233,28232,28231,28143,28230,28069,28142,28262,28261,28260,28289,28056,28229,28210
(both views have this ticked: Disable the wrapping DIV around the View )
In the new view, I would like to use the view above to set the ids of the post to be displayed using the query filter seen in fig1-query filter
This works, obviously 🙂
e.g:
[wpv-view name='uk-granchild-view-l2-areas-counties-2' ids="28243,28242,28293,28147,28241,28146,28076,28240,28292,28075,28145,28239,28238,28263,28291,28237,28074,28073,28072,28236,28290,28071,28070,28235,28144,28234,28233,28232,28231,28143,28230,28069,28142,28262,28261,28260,28289,28056,28229,28210"]
And outputs like this: fig2-working-output
This doesnt work:
[wpv-view name='uk-granchild-view-l2-areas-counties-2' ids="[wpv-view name='uk-granchild-view-l1-regions-ids']"]
And it looks like this, fig3-failed-output
youll notice the > "] closing bracket that is present.
I also tested with just wpv-post item, to see if it was the view with the issue... and it doest something a little differnet - see image, fig4-post-id
There is still the closing bracket that appears and it outputs the view with all ids, and doesnt apply the filter.
View i inserted below:
[wpv-view name='uk-granchild-view-l2-areas-counties-2' ids="[wpv-post-id item='28385']"]
Any help would be awesome.
Thanks