• Hi,
    I have added a small code (in single.php) which directs readers on my blog to the latest post (should they be on some other post).

    However, I don’t want the same to be there on the recent post. Can’t find any ‘loop’ or ‘query’ or ‘if’ argument so that it can be taken care of. Basically it means, on the latest post, it remains either blank, or prob point to sth else, perhaps another post of the same category.

    You can see my blog here to see what I mean.

    I am using WP 2.02 version.

    In case I am duplicating a query, my apologies.

    Many thanks in advance, Deepak

Viewing 1 replies (of 1 total)
  • Thread Starter deepakjeswal

    (@deepakjeswal)

    Sorry, I had to remove the code since a strange thing was happening. All comments were showing only of the ‘recent post’

    Basically, this is what I had done:

    <p style='border:thin dotted blue;padding:3mm;'>
    Have you read Random Expression's latest post:-
    <?php $posts = get_posts('numberposts=1'); foreach($posts as $post) : ?>
    <a href= "<?php the_permalink(); ?>"><?php the_title(); ?></a>
    <?php endforeach; ?>
    </p>

    But I noticed that in all posts only the comments of the recent post were showing!

    Can someone help to use such a feature?

    Once again, many thanks … Deepak

Viewing 1 replies (of 1 total)

The topic ‘Recent Post Link Below Posts’ is closed to new replies.