209 posts
  • Belgium
  • Bought between 1 and 9 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 1-2 years
  • Referred between 10 and 49 users
  • Sold between 50 000 and 100 000 dollars
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

213 posts
  • Has been a member for 5-6 years
  • Bought between 50 and 99 items
  • Referred between 1 and 9 users
  • 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…

209 posts
  • Belgium
  • Bought between 1 and 9 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 1-2 years
  • Referred between 10 and 49 users
  • Sold between 50 000 and 100 000 dollars
Playnethemes says

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

213 posts
  • Has been a member for 5-6 years
  • Bought between 50 and 99 items
  • Referred between 1 and 9 users
  • 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

209 posts
  • Belgium
  • Bought between 1 and 9 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 1-2 years
  • Referred between 10 and 49 users
  • Sold between 50 000 and 100 000 dollars
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! ;)

by
by
by
by
by
by