Skip Navigation

[Resolved] Create galerie with thumbnail with multi image field

This support ticket is created 6 years, 11 months ago. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 12 replies, has 2 voices.

Last updated by Christian Cox 6 years, 11 months ago.

Assisted by: Christian Cox.

Author
Posts
#579019

Hello i would like to create a thumbnails galerie like the picture of the flexslider module based of a multi image field "galerie-photo'. I have installed the module and change the name of the field with mine but the galerie doesnt display . How can i fix that plz ? I have to use the galerie in a content template for single custom post type

#579132

I have installed the module and change the name of the field with mine but the galerie doesnt display . How can i fix that plz ?
Hi, can you share the code you have used to implement the gallery?

#579180

"Flex slider - main slider - single slide" View template

  • <img src="[types field="galerie-photo" url="true" width="770" height="510"][/types]" alt="[wpv-post-title]">
  • "Flex slider nav - thumbnails - single thumbnail" View template

  • <img src="[types field="galerie-photo" url="true" width="120" height="80"][/types]" alt="[wpv-post-title]">
  • and in the template content of my custom post type
    [wpv-view name="Flex slider - main slider"]
    [wpv-view name="Flex slider nav - thumbnails"]

    #579208

    Thanks. The Flexslider module is built to search through a custom post type called "Slides", and is designed to show the image from a custom field assigned in each Slide post. It looks like you have created a new custom field, 'galerie-photo'. Is the galerie-photo custom field assigned to the Slide post type, or some other post type? Can you share a screenshot of one of the Slide posts in wp-admin, where I can see the galerie-photo field defined?

    You mentioned a content template for a custom post type here:
    I have to use the galerie in a content template for single custom post type
    Is the custom field assigned to this custom post type, or to the Slides post type?

    [wpv-view name="Flex slider - main slider"]
    [wpv-view name="Flex slider nav - thumbnails"]
    

    Where can I see these Views on your site?

    #579210

    Galerie-photo is assigned to my custom post type Annonces, I want display galerie to the template "Propriété". Is possible to make this ticket private, i give you access to my admin for you can see easier

    #579212

    Private reply fields are enabled here.

    #579557

    Okay I have made a few changes.
    1. I selected "Annonces" as the post type for both Flex Slider Views.
    2. I added a post ID filter to each View, set to respond to a shortcode attribute called "ids".
    3. I added the Views to the Content Template Propriété using the ids shortcode, and supplied the current Propriété ID using wpv-post-id. See here: /wp-admin/admin.php?page=ct-editor&ct_id=18558&action=edit
    4. I modified the Loop Output of each View to loop over the galerie-photo field and output a slide for each galerie-photo image.

    Please take a look and see if the images are displaying as you would expect.

    #579593

    Yes that's works perfectly. I have a last question. By default to upload pictures , i have to upload them one by one. is there a way to upload many pictures in one time ?

    #579638

    You can do a bulk upload if you use the Media Library in WordPress, it will let you drag and drop several images at a time into the Library to be imported. However, this is separate from the post editing process. When you edit a post, you can select from the images you have previously uploaded. Unfortunately there is not a good way to upload multiple images into a repeating image field from the post editor.

    #579705

    There isn't a way to update the field image to allow multiple upload in one time and display the result als you have done ? Because i have sometimes 20 pictures by gallery and upload picture one by one is very slow. Or is there an other way to upload multiple image in one time and display them in thumbnails gallery ?

    i have some knowledge in PHP so if you can tel me wich file, i have to update to allow multiple upload for image field, i can check

    #579709

    There isn't a way to update the field image to allow multiple upload in one time and display the result als you have done ?
    No, unfortunately this isn't a supported feature right now. The only way to upload multiple images at once is to use the Media Library, as I mentioned before, then select the images one by one in the post editor.

    i have some knowledge in PHP so if you can tel me wich file, i have to update to allow multiple upload for image field, i can check
    It is not as simple as just changing the upload field to accept multiple files, that won't work. It is more complex because those files need to be distributed into repeating instances of a custom field and stored in the post meta table correctly. I cannot recommend changing core plugin files to extend functionality like this. I can submit a feature request to our development team for their consideration, though. I can't guarantee they will choose to implement the feature, but I can propose your request and see if they have considered this feature yet. Let me know if you would like me to proceed with that feature request.

    #579712

    Yes you can but in the case they choose to not implement the feature yet. If i choose to use the Media Library, as you mentioned before how can i do to display the pictures as thumbnails gallery ?

    #579714

    To use the Media Library, you will go to Media Library > Add New, and upload all the images you want to use first. Then, you will go to Annonces > All items and click an item to edit it. You will see the custom field for galerie-photo here. You will click "Select Image" next to the input field, and the Media Library will appear. You will then select one image from the Media Library and insert it. Then the Media Library will disappear, and the image will appear in the custom field. If you want to add more images, you will click "Add New" and repeat the process. It's still handled one by one, but the image upload has already taken place, so you just select images that already exist in the Library.

    This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.