Skip Navigation

[Resolved] wpvrelatedto with multiple ids and views

This support ticket is created 5 years, 9 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Shane 5 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#1219281

Tell us what you are trying to do? Christian Cox had helped me with a wpvrelatedto view that takes (as a parameter) a single ID), now I'm wondering if there's a way to loop that shortcode, or expose it to the user or something so that they can either feed a different ID into it, or have a different ID displayed. We would prefer sequentially and automatically, but I think an exposed filter would be fine also.

Is there any documentation that you are following?
link to previous support ticket: https://toolset.com/forums/topic/relationships-not-showing-data-from-a-content-template/

Is there a similar example that we can see?
none that does what I want. the above one is close but needs to be extended.
What is the link to your site?
hidden link

#1220388

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Timothy,

Thank you for contacting our support forum.

So you want to change the filter and make it more open ? They can provide dynamic data to the view by using a url Parameter.

This can be done by using a special shortcode that can get the url parameter value and this can be passed into the view.

Please let me know.

Thanks,
Shane

#1220536

I think a URL parameter would work. I essentially need to loop the ID view twice and then pass that ID into both views so that each show a separate ID.

#1221015

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Timothy,

From what I understand you can just do this.

[wpv-view name='my-view' wpvrelatedto="[wpv-search-term param='my-param']"]

Then when you create your URL parameter e.g "someurl.com/?my-param=10". The ID 10 will be passed into the view.

Please let me know if this helps.
Thanks,
Shane