• Hello,
    I want to include loop in outside webpage, I use this code:

    <?php
      // Include WordPress
      define('WP_USE_THEMES', false);
      require('/blog/wp-blog-header.php');
      query_posts('showposts=3');
    ?>
        <?php while (have_posts()): the_post(); ?>
        <h2>
          <?php the_title(); ?>
        </h2>
        <div><img style="margin:0;" src="img/pubblicato.png" align="absmiddle" />
          <?php the_time('l, j F Y') ?>
          - <img style="margin:0;" src="img/categoria.png" align="absmiddle" /><span class="categoria">
          <?php the_category(', ') ?>
          </span></div>
        <div style="border-bottom:1px dotted #ccc;">
          <?php the_content(); ?>
        </div>
        <?php endwhile; ?>

    But i want insernt in the bottom, nav page (es. old post..new post) It is possible?

The topic ‘Nav page in outside loop’ is closed to new replies.