Skip Navigation

[Resolved] Legacy Slider View as a shortcode inside a custom field

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)

Author
Posts
#2658521
Captura de pantalla 2023-10-30 a las 18.03.40.png

I have added a slider legacy view shortcode inside a custom field.
I'd like to show the slider inside a page, using a single field.

The fields appear in editing mode, but nothing is displayed on the front end. This is the page where the slider should appear: hidden link
and this is the view shortcode:
[wpv-view name="slider-aplicaciones-preparadores-de-medios" relatedto="[wpv-post-id]"]

AM I doing something wrong?

#2658689

Hi,

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

To troubleshoot this, I'll need to see how this custom fields and the content template are set up in the admin area.

Can you please share temporary admin login details, in reply to this message?

Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.

regards,
Waqar

#2658795

Hi, I have sent the details, you should have received them

#2659115

Thank you for sharing the access details.

Looking into the setup, I'll recommend to store only the target view's name (e.g. 00Slider aplicaciones PREPARADORES DE MEDIOS ) or slug ( e.g. slider-aplicaciones-preparadores-de-medios ) as the custom field value and not the complete view's shortcode.

Next, you can use the 'Fields and Text' block to generate the view's shortcode dynamically, by calling the view's name/slug from that custom field value, like this:


[wpv-view name="[types field='shortcode-sliderview-app-pm'][/types]" relatedto="[wpv-post-id]"]

This approach works in my test website.

#2660985

Yes, it works on my side too!
Thank you Waqar