Forums

How can I integrate Multisite posts on an outside website? (8 posts)

  1. geezerd
    Member
    Posted 1 year ago #

    Hi, all.
    I have a multisite set up, with 4 blogs.

    I need to display the latest post from one of those blogs on another website. I tried this: http://www.corvidworks.com/articles/wordpress-content-on-other-pages but it doesn't work, it just redirects to the "root" blog of the multisite install.

    Anyone know how I can get this to work on a multisite install?

    Thanks.

  2. Andrea_r
    team pirate
    Posted 1 year ago #

    Can you pull the rss feed?

  3. geezerd
    Member
    Posted 1 year ago #

    Yes, but I need to display the whole post

  4. I think you're going to have to sort out how to plunk switch_to_blog() in there to switch to the right blog.

  5. geezerd
    Member
    Posted 1 year ago #

    Hmm.. I don't think that works outside of a WP install (?).
    I need to put it on a regular html site (or php, whatever).

  6. geezerd
    Member
    Posted 1 year ago #

    Anyone?

  7. The standard rules for this apply, just with switch to blog: http://codex.wordpress.org/Integrating_WordPress_with_Your_Website

  8. tdmarsol
    Member
    Posted 1 year ago #

    You could create a PHP solution from the site that needs to pull the content.

    It look like this plugin could create an XML version of each post:
    http://wordpress.org/extend/plugins/post-xml-for-simpleviewer/

    The PHP script could go get the XML-generated content from above, assemble the pieces, wrap it in some css tags, and display it on the remote site.

    If you wanted to be fancy, you could also use AJAX to either run the PHP script, or go get the material directly if they are on the same domain.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.