Forums

insert into web page (4 posts)

  1. vivphoto
    Member
    Posted 5 years ago #

    Hi, I wonder if anyone can help me, I am new to this and would like if possible to have the wordpress articles and page integrated into a webpage on the site I am working on, so in effect you would have a web page from the site with the blog on it, if that makes any sense.

  2. ollee
    Member
    Posted 4 years ago #

    yeah, I'd really like to know if it's possible to do this also. Pasting:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php the_time('F jS, Y') ?>" rel="bookmark"><h2><?php the_title(); ?></h2>
    <?php the_content(__('(more...)')); ?>
    <!-- E N D O F P O S T I M A G E -->
    <div class="divider"> </div>
    <!-- E N D O F P O S T I M A G E -->
    <?php endwhile; else: ?>
    <?php endif; ?>

    into the page itself doesn't seem to do anything. Anyone got any ideas?

  3. whooami
    Member
    Posted 4 years ago #

    ollee, that doesnt work because youre missing 1/2 the equation.

    you forgot this:

    require('path-to-your-blog/wp-blog-header.php');

  4. ollee
    Member
    Posted 4 years ago #

    ah! thanks whooami.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags