Forums

How to put a "recent posts" widget on another site / non wordpress pages (2 posts)

  1. onders
    Member
    Posted 3 months ago #

    Hi there,

    We are using WordPress multisite 3.2.1 and have 3 unique blogs running on our site. The website itself is not a wordpress site, so the blogs just sit separately and at the moment we link from the main site to the blog with static links.

    We are trying to put in place a widget with the latest posts from one of our blogs - so we can have some posts on our homepage.

    We thought this would work:

    code:

    <?php
    // Include WordPress
    define('WP_USE_THEMES', false);
    require('/var/www/example.com/wordpress/wp-load.php');
    query_posts('showposts=1');
    ?>

    But it seems not to with multisite - a few forums / help areas suggest that multisite has limitations and this may not be possible.

    Would anyone be kind enough to point us in the right direction as to what we should or could do?

    Many thanks in advance

  2. Andrea_r
    team pirate
    Posted 3 months ago #

    Pull it from a global rss feed.

Reply

You must log in to post.

About this Topic