• Resolved chrisboggs

    (@chrisboggs)


    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)
  • Try

    <?php query_posts('posts_per_page=10'); ?>
    <?php if( have_posts() ) : while (have_posts()) : the_post(); ?>
    <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
    <?php endwhile;endif;?>
    <?php wp_reset_query();?.

    Thread Starter chrisboggs

    (@chrisboggs)

    Hi Esmi,

    Sorry. Your code is better and I will use it but I found out what the problem was by accident:

    The containing div element I was generating my Recent Posts list in was being occluded from the cursor by another element on the page because of my css and the theme’s css cascade conflicting. I positioned all elements relatively and list links became available to the mouse. Stupid me.

    Thanks Esmi! -c-

    Hi in my site legionmaster.com I put up I-phone apps, but throug my wordpress. This link

    [Link removed]

    this application will install the game Angry Birds onto your iphone

    So thre doesnt seem to e much of a problem with the angry birds app but all other 19 apps al come up with 404 not foud issue. Can you plese help make sense of thi for me and solve my problem thx.

    @chrisboggs: No problem. Glad you got it sorted.

    @steveman: Your problem has nothing to do with this topic. Please post a new topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Recent Posts links not working’ is closed to new replies.