Recent Posts links not working
-
Hi Codex,
I am trying to generate a simple list of most recent articles with the following code placed in a div in a custom template page but the permalinks only function in Internet Explorer and not in any standards-compliant browsers. Outside of IE I get a properly formatted list but the links don’t work. Does anyone know why this is?
<?php query_posts('showposts=10'); ?> <?php while (have_posts()) : the_post(); ?> <li><a href="<?php $permalink = get_permalink($post->ID); ?>"><?php the_title(); ?></a></li> <?php endwhile;?>
Thanks in advance for your help! -c-
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Recent Posts links not working’ is closed to new replies.