Hi, I have created a view in the parent terminology archive, a list of the child terminologies with their descriptions and products.
I have created two types of taxonomy fields:
A repeating field of photos
A repeating field for videos.
I would like to display a slider with the videos or photos related to the child terminology along with the rest of the listing data.
How can I do this? What query should I put in the slider view to show me what I want?
Hello. Thank you for contacting the Toolset support.
It seems you will have to use nested view and you are already using it but I will have to review your current structure first.
Can you please share problem URL where you want to display the content on frontend as well as admin access details and tell me with what view you want to display what content or what is your expected output.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Hi Minesh, I know I can display the field directly with the shortcode you provided. It will show me the images separated by commas.
[types termmeta='galleria-category' title='%%TITLE%%' alt='%%ALT%%' size='full' separator=', '][/types]
What I want is to create a slider with those pictures, that's why I tried to do it with the View slider type option. I get all the images in the first item of the slider, how can I create a slider with the images of the custom field of each taxonomy?
I'm bit confuse about how you want to display the term field "Galleria di foto"?
Do you want to have one slider for all the terms and all the images coming from the custom term field "Galleria di foto" or you want to have one slider per your one child term?
I would like to be able to do it only with Toolset views, without adding new js. That's why I created a new view to show a slider (for example the photo slider).
How should I create the slider view, what query should I put to make the slider work with the custom photo field?
Here is a schema to better understand what I mean:
Archive of taxonomy with parent terminology. This archive will show a list of the custom fields of the child terminologies of the parent terminology.
Example:
Parent terminology archive:
Child terminology 1:
-Title
-Description
-Products with this child thermonology
-Image slider of this child thermonology
-Video slider of this child thermonology
Child terminology 2:
-Title
-Description
-Products with this child thermonology
-Image slider of this child thermonology
-Video slider of this child thermonology
Child terminology 3:
-Title
-Description
-Products with this child thermonology
-Image slider of this child thermonology
-Video slider of this child thermonology
You can build slider using view using the post type not using the custom repeating field.
For instance, you have a book post type having a single image filed then you can build the image slider for that image field available with book post type.
To build a slider using the repeating field you will have to use the flexslider or any other slider library.
If you are agree to use flexslider or any other slider option available with the Module manager I can help you further to integrate it. Please let me know your choice.
Hello Minesh,
I need to do the construction with repeatable fields for both photo and video so I will have to do it with slider.
The website is created with Avada, could it be done with Avada's slider block or with its sliders?
If it can't be done with Avada and Toolset, how can I do it with flexslider?
I need to solve this as soon as possible.
Thanks for your help.
I've added the "File Manager" plugin and using that I've added the "flexslider" resource files to your child theme as you can see with the following link:
=> enlace oculto
Then I've edit the funcitons.php file of your child theme and added the following code:
I've edit your patent view and added the shortcode argument to your view that displays slider photo and video:
=> enlace oculto
[wpv-view name="Slider video and photo" terms="[wpv-taxonomy-id]"]
To your "Slider video and photo" view I've added the following query filter and changed the source of this view as taxonomy "Categorie di prodotti" from the "Content Selection" section.:
=> enlace oculto
Taxonomy term filter
Taxonomy term ID is set by the shortcode attribute "terms"
And I've format the "Loop Editor" section as given under:
Hi Minesh, I just have a few details left.
When they have not added any video it loads the iframe (you can see it in the third slider). Also if there is no video or photo it shows the slider page (you can see it in the last slider).
I have tried to add conditionals in the Toolset view but I think by having such fields and functions, what it does is not load anything.
How could this be solved?