Navigation überspringen

[Gelöst] Using a Shortcode Question

This support ticket is created vor 2 Jahren, 8 Monaten. 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/Karachi (GMT+05:00)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Pete vor 2 Jahren, 8 Monaten.

Assistiert von: Waqar.

Author
Artikel
#2380291
aa 2.png
aa 1.png

Hi there,

For this kind of page, which we use extensively:
versteckter Link

We're used to using shortcodes to display Views however can't work out how to achieve using this code for example:
[wpv-form-view name="holidays-sub-feat-pages" wpvarea="spain" wpv-bedroom="6,7,8" target_id="self"]

wpv-bedroom="6,7,8"

How can we specify a collection of bedrooms: 6 7 & 8 for example?

Images attached of what our settings are.

Any thoughts would be great. Thank you.

#2381099

Hi,

Thank you for contacting us and I'd be happy to assist.

It is important to remember that you can either set the query filter for taxonomy or a custom field, to link with a "URL parameter" or a "shortcode attribute", but not both, at the same time.

For example, in your screenshot, the query filter for the bedrooms is set to use the "URL parameter" ( screenshot: versteckter Link ). This is needed, because, there is a front-end search filtering field for the bedrooms to control this ( screenshot: versteckter Link ). With these settings, you can't control it through the shortcode attribute wpv-bedroom="6,7,8".

To control it through shortcode attribute wpv-bedroom="6,7,8", you'll have to change the "Set by one URL parameter" source in the bedrooms query filter to "Set by one View shortcode attribute", but, then the front-end search field for the bedrooms won't work.

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#2381101

My issue is resolved now. Thank you!