WordPress.org

Ready to get started?Download WordPress

Forums

Can I output posts onto a different site using PHP? (9 posts)

  1. zachxp
    Member
    Posted 8 years ago #

    I was wondering if it is possible to include some PHP code onto a website that will automatically pull the latest posts from a certain category. I have used a script called CuteNews which allows for this but it is not MySQL based and lacks WordPress's feature support. I want to be able to have my posts from say a "news" category output onto my website.

    Thanks for your support.

  2. tomhanna
    Member
    Posted 8 years ago #

    Yes, you can do it a couple of ways. Probably the easiest is to use the RSS feed and an RSS parser.

    http://www.2rss.com/software.php

  3. zachxp
    Member
    Posted 8 years ago #

    OK, I'll look into that, but you said there were a couple of ways. What are the other ways?

    Thanks

  4. Beel
    Member
    Posted 8 years ago #

    The best way is to search this forum for answers - surely you don't think you are the first to ask this one particular question?? ;-)

  5. tomhanna
    Member
    Posted 8 years ago #

    The other way might not work. You said "different site" so it's going to depend on the server configuration and if it's actually a different server.

    If it's on the same server, you can use The_Loop to output posts. It's probably as quick and easy as using RSS once you are used to it, but RSS has worked well for me and I find The_Loop intimidating. :)

  6. vkaryl
    Member
    Posted 8 years ago #

    You can also try CG-Feedread from http://www.chait.net/index.php?p=238 - part of David Chait's CG PowerPack.

  7. tomhanna
    Member
    Posted 8 years ago #

    Definitely. I use CG-Feedread as a plugin and it works great. I've never tried to use it other than as a WordPress plugin, but I know it has that capability.

  8. Beel
    Member
    Posted 8 years ago #

    Yep, I use it as a plugin and also as a "standalone" on other sites.

  9. vkaryl
    Member
    Posted 8 years ago #

    My very first experience with php "elsewhere" was using CG-Feedread on a not-wp site. Believe me, if I can get it to work, ANYONE can....

Topic Closed

This topic has been closed to new replies.

About this Topic