• Ruben

    (@rubenvankempen)


    Hi there,

    What happened?
    – Plugin downloaded
    – Plugin installed
    – Plugin activated
    – Selected my post type, using Dashboard > Setting > WP gallery metabox
    – Created a new post, of my Custom Post Type
    – Gallery-field appears in Custom Post Type
    – Added a few pictures using the Gallery-field
    – Edited the template I use for my Custom Post Type using Elementor
    – Add Gallery-widget
    – Choose dynamic tag
    – What field do I choose? (screenshot https://prnt.sc/w015hy)
    – The WP gallery is not found..

    And, what do I have to do with the code mentioned on the plugin-page?
    get_post_meta(get_the_ID(), ‘vdw_gallery_id’);

Viewing 1 replies (of 1 total)
  • Plugin Author HK

    (@hk1993)

    Hello @rubenvankempen,

    You need to add the following code to your custom template file to get the gallery images.

    
    
     $result = get_post_meta($post_id, 'vdw_gallery_id', true);
          foreach ($result as $val) {
              $img = wp_get_attachment_image_src($val, 'full');
              echo "<img src='$img[0]' />";
          }
    
    • This reply was modified 3 years, 11 months ago by Yui.
    • This reply was modified 3 years, 11 months ago by Yui. Reason: please use CODE button for proper formatting
Viewing 1 replies (of 1 total)
  • The topic ‘Get started’ is closed to new replies.