Timeline for Featured images loop for Orbit Slider
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 7, 2012 at 5:41 | vote | accept | Mattvic | ||
Aug 6, 2012 at 16:23 | comment | added | Amit Kosti |
NOTE - we don't need to pass $post->ID if using in loop
|
|
Aug 6, 2012 at 16:21 | comment | added | Amit Kosti | I updated my answer, let me know if not worked. | |
Aug 6, 2012 at 16:20 | history | edited | Amit Kosti | CC BY-SA 3.0 |
added 1273 characters in body
|
Aug 6, 2012 at 16:03 | comment | added | Amit Kosti | that is just example, Dont use it as it is. | |
Aug 6, 2012 at 15:58 | comment | added | Mattvic |
That sounds like a great approach. I replaced my featured images loop with your code but unfortunately nothing showed up. This is what I used after starting the query: <div id="featured"> <img src="<?php wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>" alt="the-alt-tag" data-caption="#htmlCaption-<?php $slider_query->current_post; ?>" /> and the output: <div id="featured"> <img src="" alt="the-alt-tag" data-caption="#htmlCaption-" /> </div>
|
|
Aug 6, 2012 at 15:46 | history | answered | Amit Kosti | CC BY-SA 3.0 |