I set and reversed the order of a list of post titles on my front page with:
<?php global $post; $args = array( 'category' => 6 ); $myposts = get_posts( $args ); $reverseposts = array_reverse( $myposts, true); foreach( $reverseposts as $post ) : setup_postdata($post); ?> <?php the_title(); ?> <?php endforeach; ?>
Now I'm not being able to find the proper "a href" line to link those titles to its posts called in another temp file. I hardcoded:
<a href="<?php bloginfo('template_url'); ?>/category6"><?php the_title(); ?></a>
but I guess there's a proper way to get "category6" dynamically.
Any help would be most appreciated. Thx in advance.