Support » Themes and Templates » [P2 TIP 001] add auto todo items

  • here is a tip for the P2 theme: auto add a list of todo items when the tag is “todo” (the inline tag thing plugin is then also handy):

        'tag__in' => array(5),
    	'showposts' => 50
    $my_query = new WP_Query($args);
    if( $my_query->have_posts() ) {
        while ($my_query->have_posts()) : $my_query->the_post(); ?>
          <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
    } else {
    	echo "no todo";
  • The topic ‘[P2 TIP 001] add auto todo items’ is closed to new replies.