Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/02/2013, 15:33
laura_moreno14
Invitado
 
Mensajes: n/a
Puntos:
titulos con texto y numeracion delante

quiero hacer una lista con los titulos de los post y añadireles "tema x" delante.

Lo he intentado con css:
Código CSS:
Ver original
  1. h3::before { content: "Tema " counter(tema) ": "; counter-increment: tema;}

Y tambien con php:
Código PHP:
Ver original
  1. <?php global $query_string; ?>
  2. <?php query_posts( $query_string . '&order=ASC&posts_per_page=50&tag=herencia&post_status=publish, future' ); while ( have_posts() ) : the_post(); ?>
  3. <?php $c = 1 ?>
  4. <?php if ($post->post_status == 'future'): ?>
  5. <h3><?php the_title("tema $c"); ?></h3>
  6.        <?php else : ?>
  7. <h3><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title("tema $c"); ?></a></h3>
  8.  <?php $c++?>
  9. <?php endif ; ?>
  10. <?php endwhile; wp_reset_query();?>

El caso es que aparece todo bien menos que no aumenta la numeracion, aparece siempre 1. Me pasa de las dos formas y por eso creo que lo que esta mal es el loop. Pero no se cual es el problema, alguien sabe que puede estar ocurriendo?

muchas gracias espero que alguien pueda ayudarme