Forum Replies Created

Viewing 1 replies (of 1 total)
  • I am facing same problem.

    @kimbo_king : Could you please share how you resolved it.

    I would like to add my blog posts to my html home page. Copy paste this code in HTML page is not working.

    <?php
    require(‘/the/path/to/your/wp-blog-header.php’);
    ?>

    <?php
    $posts = get_posts(‘numberposts=10&order=ASC&orderby=post_title’);
    foreach ($posts as $post) : setup_postdata( $post ); ?>
    <?php the_date(); echo “
    “; ?>
    <?php the_title(); ?>
    <?php the_excerpt(); ?>
    <?php
    endforeach;
    ?>

    Somebody please help.

Viewing 1 replies (of 1 total)