Skip Navigation

[Gelöst] ventana flotante en una vista aparece siempre el primer resultado

This support ticket is created vor 5 Jahren, 4 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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 1 Antwort, hat 2 Stimmen.

Zuletzt aktualisiert von Waqar vor 5 Jahren, 4 Monaten.

Assistiert von: Waqar.

Author
Artikel
#1284151
Captura de pantalla 2019-07-04 18.16.39.png
Captura de pantalla 2019-07-04 18.16.13.png

Hola Nigel tengo Post Type con unos videos formativo, enlazados al youtube en una de las vistas aparece el listado de todos los videos
el code del loop és:

<div class="rc_pantalla">
  <div class="rc_pantalla_video"><a href="#registre-servei">[types field='titol-video' title='%%TITLE%%' alt='%%ALT%%' size='custom' width='400' height='246' resize='proportional'][/types]</a></div>
<div class="rc_pantalla_info">
  <div class="rc_pantalla_titol">[wpv-post-title]</div>
  <div class="rc_pantalla_descripcio">[wpv-post-body view_template="None"]</div>
  
  <div class="rc_pantalla_play"><a class="button" href="#registre-servei">Play</a></div>
</div>
</div>
<div id="registre-servei" class="visionar">
<div>
<a class="close" title="Close" href="#close">X</a>

  <div class="rc_video_formatiu">[types field='direccio-video'][/types]</div>
 
  <div class="rc_video_titol">[wpv-post-title]</div>
</div>
</div>

Resulta que cuando se selecciona uno de los video, aparece una ventana flotante con dicho vídeo, pero siempre aparece el mismo video.
como podría hacer para que dependiendo del enlace que seleccione aparezca un video o otro.
el enlace es:

<div>
<a class="close" title="Close" href="#close">X</a>
  <div class="rc_video_formatiu">[types field='direccio-video'][/types]</div>
  <div class="rc_video_titol">[wpv-post-title]</div>
</div>

Saludos.
Rafa Corts

#1284635

Hi Rafa,

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

Nigel is on vacations and will be back on Monday, so I'll be helping you with this ticket.

From the code, it is not clear exactly which plugin or script are you using for showing the videos in the popup/modal window, but the same ID of the wrapping container for all videos could be the issue:


<div id="registre-servei" class="visionar">

You can make this ID unique for each result in the view, by introducing the post ID shortcode ( [wpv-post-id] ), like this:


<div id="registre-servei-[wpv-post-id]" class="visionar">

I hope this helps and please let me know how it goes.

In case the issue still persists, you're welcome to share the link to the page, where this view can be seen.

regards,
Waqar