Support » Fixing WordPress » Embed blog into custom site with pages

  • hello, I’m trying to embed posts from blog into static site.
    I managed to do that following tutorials but I have trouble adding pages. that is for it to display limited number of posts per page and then display “Pages” where you can see next post entry.

    ideally those would be number and not default next/previos pagings. but i have trouble making either of them work.

    my PHP include looks like this

    /* Short and sweet */
    define('WP_USE_THEMES', false);
    $posts = get_posts('order=DESC&'order=ASC&orderby=post_title&posts_per_page=2');
    foreach ($posts as $post) : start_wp(); ?>
    <?php the_date(); echo "<br />"; ?>
    <?php the_title(); ?>
    <?php the_content(); ?>

    and I have tried inserting codes described here

    my guess is most like I can’t find command that will actually display the Pagination that is number or next/previos post, or it may be i’m not “fragmenting” posts into pages correctly.

    please help ;/

  • The topic ‘Embed blog into custom site with pages’ is closed to new replies.