216 posts
  • 2 Years of Membership
  • Affiliate Level 3
  • Author Level 8
  • Collector Level 1
+5 more
Playnethemes
says

I tried activating the thumbnail control on my theme with flexslider support. However when doing this there are placeholders for the thumbs but the img src=”undefined” .

http://flex.madebymufffin.com/examples/thumbnail-controlnav.html

I guess you have to asign the dzta thumb aswell, but how would you go about to do this? :) Does anyone know what the fix for this is? I’ve seen a couple of themes using the thumb control feature so i guess it should be possible.. Thanks!

Kind regards

223 posts
  • Affiliate Level 1
  • Collector Level 3
  • 6 Years of Membership
  • Exclusive Author
agusmu
says

Have you followed the HTML format on that demo page?

It is not easy to know your issue if you do not post your demo URL here…

216 posts
  • 2 Years of Membership
  • Affiliate Level 3
  • Author Level 8
  • Collector Level 1
+5 more
Playnethemes
says

Problem is how would you dynamicly add markup for the thumbnails in WordPress? :)

223 posts
  • Affiliate Level 1
  • Collector Level 3
  • 6 Years of Membership
  • Exclusive Author
agusmu
says

Problem is how would you dynamicly add markup for the thumbnails in WordPress? :)

I still do not understand what is your issue actually.

<!-- Place somewhere in the <body> of your page -->
<div class="flexslider">
  <ul class="slides">
    <li data-thumb="slide1-thumb.jpg">
      <img src="slide1.jpg" />
    </li>
    <li data-thumb="slide2-thumb.jpg">
      <img src="slide2.jpg" />
    </li>
    <li data-thumb="slide3-thumb.jpg">
      <img src="slide3.jpg" />
    </li>
    <li data-thumb="slide4-thumb.jpg">
      <img src="slide4.jpg" />
    </li>
  </ul>
</div>

You only need to call your function to replace the image URLs above, for both slide$-thumb.jpg and slide$.jpg

216 posts
  • 2 Years of Membership
  • Affiliate Level 3
  • Author Level 8
  • Collector Level 1
+5 more
Playnethemes
says

Hmm i see now how I should incorporate it into the code I have in my php file! :) I’ll let you know if i get it to work!

EDIT:

Turns out I just had to add:

<?php echo ( wp_get_attachment_url( $single_gallery_attachment->ID, 'thumbnail' )); ?>

as data-thumb= to my script! :)

Thanks for your help agusmu! ;)

1 post
carolefly
says

Hello Playnethemes, I met the same problem as you did, trying to implement dynamic management of my images / thumbnails. A study of my page gives me >> img src =” undefined ” . Could you please be more precise in your explanation? I dont understand where to embed: <(ID, ‘thumbnail’); wp_get_attachment_url php echo ($ single_gallery_attachment-)? Thanks a lot

by
by
by
by
by
by