• Hi

    I have this code in a post.php (Single Post template):

    <?php if (have_posts()) : ?>
    <?php query_posts('posts_per_page=1'); while (have_posts()) : the_post(); ?>

    Every time I create a post and put the link to
    web browser It show always the last post not the
    one is related to the link name.

    Any idea why is that ??

Viewing 1 replies (of 1 total)
  • Thread Starter MyView Studio

    (@myview)

    I have result

    <?php if ( have_posts(posts_per_page=1) ) : while ( have_posts() ) : the_post(); ?>

    Thx for help.

Viewing 1 replies (of 1 total)
  • The topic ‘Post and related link’ is closed to new replies.