Ver Mensaje Individual
  #11 (permalink)  
Antiguo 09/11/2011, 10:52
lobos1981
 
Fecha de Ingreso: abril-2011
Ubicación: Colombia
Mensajes: 59
Antigüedad: 13 años, 1 mes
Puntos: 19
Respuesta: Asignar ID a Thumbnails

Este es orbit.php: tal cual..como está.

Código PHP:
Ver original
  1. <div id="featured">
  2. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  3. <?php
  4. if ( has_post_thumbnail() ) {
  5. the_post_thumbnail(); // Esta es la parte q falta...
  6. }
  7. ?>
  8.  
  9. <!-- Captions for Orbit -->
  10. <span class="orbit-caption" id="<?php the_ID(); ?>" style="color:#F00;">
  11.  
  12. <a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
  13. <?php include (TEMPLATEPATH . '/inc/meta.php' ); ?>
  14. <?php the_excerpt(); ?>
  15.  
  16. </span>
  17.  
  18. <?php endwhile;?>
  19. <?php else :?>
  20. <?php endif;?>
  21.  
  22. <script type="text/javascript">
  23. $(window).load(function() {
  24. $('#featured').orbit({
  25. bullets: true,
  26. captions: true,
  27. captionAnimation: 'fade',
  28. captionAnimationSpeed: 800,
  29. });
  30. });
  31. </script>
  32. </div>

-------------------
¿Dónde debo colocar...

Código PHP:
Ver original
  1. data-caption="#<?php the_ID() ?>"

mejor dicho para q la imagen resultante se vea así... con ese atributo data-caption y anteponerle el signo numeral..

Código HTML:
Ver original
  1. <img src="" data-caption="[COLOR="Red"]#[/COLOR]AQUÍ ID del Post">

Última edición por Nekko; 10/11/2011 a las 07:16