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?
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
Hi, I have sent the details, you should have received them
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.
Yes, it works on my side too!
Thank you Waqar