WordPress.org

Ready to get started?Download WordPress

Forums

Display my posts on another site?? (4 posts)

  1. Murry
    Member
    Posted 9 years ago #

    Hi folks,
    Ive been hunting thro the topics but not coming up with ideas. How do I display posts from my current WP install on one site, on a second site.
    The second site does not have wp installed.
    I wish to show posts of a specific cat and limit the number displayed.
    Ive tried to do a staight php include but that dont work. Ive read about RSS but this is star wars to me. Can anyone suggest a method to try?
    Thanks

  2. Kafkaesqui

    Posted 9 years ago #

    Look at David Chait's CG-Feedread (part of his PowerPack):

    http://www.chait.net/index.php?p=238

    You should be able to use that on an rss feed from the category you want.

  3. davidchait
    Member
    Posted 9 years ago #

    Yes, FeedRead is a good approach. If the two sites are on the SAME MACHINE, it's even easier to follow. If not, it's still fairly easy (I just change what you install and where).

    Basically, grab my PowerPack. If the sites are on the same server/account (needs to be under the same account/privs for this trick), install the PowerPack into your WP site (you don't even need to activate the plugins..), then you can just do a include of cg-feedread.php and call the getSomeFeed function with your WP site's RSS feed url.

    If the sites aren't on the same server account, you still grab the powerpack, but in that case just upload the cg-plugins folder alone to your non-wp site's root (the whole folder, not just the contents, and not the plugins folder above it!), and again you can then direct-include the cg-feedread.php file and call getSomeFeed.

    Read the feedreadReadme file, as it discusses the actual function call and parameters. Post here if you have any Qs.

    -d

  4. Murry
    Member
    Posted 9 years ago #

    Thanks guys thats great.
    This is a perfect example of a question meets an answer.
    My sites are on the same server so should be apples. I'll go play :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.