Forum Replies Created

Viewing 1 replies (of 1 total)
  • I assume they want to have the blog spit out into the body of a pre-existing webpage as if it were a static page.

    Here is how I did it on mine…

    — [Insert this into the < head > < /head > of your webpage]–
    <?php
    /* Don’t remove this line. */
    require(‘./wordpress/wp-blog-header.php’);
    ?>

    — [Insert this into the < body > < /body > of your webpage]–

    <?php while ( have_posts() ) : the_post(); ?>
    <h3><?php the_date(); ?> – <?php the_title(); ?></h3>
    <span><?php the_content(); ?>
    < a>” title=”Me”><?php the_author() ?>< /a> @ <?php the_time() ?>
    </span>
    <?php endwhile; ?>

    — The html is pertinent to my sight and the formatting is how I needed it so just make some minor changes to suit your needs/format. Also in the header bit your path to wordpress might be different… mine is “wordpress” right under the root HTML directory.

Viewing 1 replies (of 1 total)