Skip Navigation

[Resuelto] Images Gallery in layout

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:

Gallery using repeatable fields.

Solution:

I've highlighted a similar step on how to achieve this using repeatable image fields.

Could you try the instructions below and let me know if it helps.
https://toolset.com/forums/topic/generate-slide-on-my-slider/

This support ticket is created hace 6 años, 4 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 10 respuestas, tiene 2 mensajes.

Última actualización por Shane hace 6 años, 3 meses.

Asistido por: Shane.

Autor
Mensajes
#952210

Hi,

I need your help to create a gallery in my layout. I searched the solution in the forum and topics but it'e realy hard.

The situation is this:
- I created a custom field as Image where users will update many images using a CRED post
- I've a layout which display all the information ollected by the CRED in a simple post

Now I need to display the images collecting with the custom field as a slider

Can you help me to solving this issue? I tried with many code, but without succefull.

- which is the best solution for this issue?
- How this solution works, what I've to do and which step I've to follow (step-by-step?

Thank you!

#952384

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Domenico,

Thank you for contacting our support forum.

I've highlighted a similar step on how to achieve this using repeatable image fields.

Could you try the instructions below and let me know if it helps.
https://toolset.com/forums/topic/generate-slide-on-my-slider/

Thanks,
Shane

#952403

Hi Shane, thank you.
I try your suggestion installing the plugin.

I created a view as follow:

Search and Pagination

 
[wpv-filter-start hide="false"]
[wpv-filter-controls][/wpv-filter-controls]
<ul class="pagination">
	<li class="page-item">[wpv-pager-prev-page force="true"][wpml-string context="wpv-views"]Previous[/wpml-string][/wpv-pager-prev-page]</li>
	<li class="page-item">[wpv-pager-next-page force="true"][wpml-string context="wpv-views"]Next[/wpml-string][/wpv-pager-next-page]</li>
</ul>
[wpv-filter-end]

Loop Editor

[wpv-layout-start]
	[wpv-items-found]
	<!-- wpv-loop-start -->
	<wpv-loop>
		[wpv-post-body view_template="Accommodation Gallery - diapositiva"]
	</wpv-loop>
	<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-no-items-found]
		<strong>[wpml-string context="wpv-views"]Nessun immagine inserita[/wpml-string]</strong>
	[/wpv-no-items-found]
[wpv-layout-end]

Content template

<div class="flexslider">
  <ul class="slides">
   [wpv-for-each field="wpcf-accommodation-gallery"]
  <li>[types field="accommodation-gallery" size="medium" align="none" resize="pad" padding_color="#FFF"][/types]</li>
  [/wpv-for-each]
  </ul>
</div>

and the JS of the Content template

jQuery(window).load(function() {
   jQuery('.flexslider').flexslider();
 });

And adding the view in the layout, but it doen't show me the images. It give me "no result found"

What's wrong?

Thank you

#952421

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Domenico,

Would you mind providing me with access so that I can see exactly how this has been setup ?

The private fields have been enabled for your next response.

Thanks,
Shane

#952422

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Private Fields.

#953808

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Domenico,

Could you let me know which Layouts this is on ?

I added the view to a test page and it works fine so it should work in a Layout.
enlace oculto

Thanks,
Shane

#953854

Hi Shane,

Thank you.
It works in the test post, but not in the layout.
The layout is "Accommodation layout"

In the test page I also see that the quality of image is very low. There is some setting applicated for this?

#953860

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Domenico,

I changed it so that you're using a content template in the layout instead of a View.

Also you can use the code for flexslider here
enlace oculto

To customize the look and feel of the slider as well.

Thanks,
Shane

#1069436

Thank you Shane!

#1090201

I Shane,

I don't know whay but I'm not able to see the slider in the layout output.

Some days ago after your edit it worked, but now it isn't works.

Can you help me?

#1090273

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Domenico,

Could you open a new ticket for this issue and assign it directly to me ?

Thanks,
Shane