WordPress.org

Ready to get started?Download WordPress

Forums

Blog on predesigned site (3 posts)

  1. CherawHCWM
    Member
    Posted 9 years ago #

    I have created a small site for friends of mine who are adopting a child in China. All I need to do is blog what they send me when they have updates over the next two week period. Is there a way to set up Word Press to publish to one page that already exists?

  2. j0llyr0ger
    Member
    Posted 9 years ago #

    This sounds pretty easy, but I'm not sure what you mean by " publish to one page that already exists"

    Could you explain a little more, please?

  3. msb2ncsu
    Member
    Posted 9 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.