WordPress.org

Ready to get started?Download WordPress

Forums

Display posts only on another website? (2 posts)

  1. BrandonPence
    Member
    Posted 7 years ago #

    I'm not sure how to describe this:

    Can someone walk me through the process to display posts only, and which line of code pulls the posts so I can put them on another website? I'm using WordPress with the K2 theme.

    I don't want the header, search bar, blogroll, nothing; just the posts themselves. But I also don't want the user to have to go to my wordpress site; I want to know what code to put on my website to pull the posts off my wordpress site, and display them on my root website.

    My website is configured like this:
    http://www.domain.com (Domain I want the posts to show up on, as "news" tidbits)
    http://www.domain.com/news/ (Where the wordpress software is installed)

    So I want to remove the post section off of the news folder and import them into my main domain, and use wordpress as souped up news management software.

    Is there an easy way to do this?

    I know using the Nucleus software, it was a few lines of php code. I've looked around on the wordpress code but haven't been able to locate a section that will do it.

    Please help, and sorry if this is confusing.

  2. maerk
    Member
    Posted 7 years ago #

    RSS feeds are the way to go. I think PHP has some support for reading RSS feeds, google that and you should be able to come up with something.

Topic Closed

This topic has been closed to new replies.

About this Topic