WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Send recent post to a file to use in an php include (6 posts)

  1. morgond
    Member
    Posted 6 years ago #

    The non-profit organization that I'm developing for has a Textpattern driven website, and I've built two blogs as separate sections for that site. They both are separate WP installs, located in subfolders of the main site, such as:

    http://www.mainsite.com
    http://www.mainsite.com/blog1
    http://www.mainsite.com/blog2

    What I'm wanting to do is include the most recent post or two of these blogs on the front page of the main site (Textpattern). Including the wp-blog-headers.php file doesn't work, as it's causing the Textpattern system to break.

    Is there a way to write the most recent posts to a file, like a simple text or php file, that I can then import in place with a simple php include?

    Or does anyone have a better idea?

  2. moshu
    Member
    Posted 6 years ago #

    RSS feeds? Did you consider using the feeds from the two blogs?

  3. morgond
    Member
    Posted 6 years ago #

    I did, but can't find a way to do that in TXP.

  4. moshu
    Member
    Posted 6 years ago #

    You should probably ask in the TXP forum how they display feeds from other sources...

  5. morgond
    Member
    Posted 6 years ago #

    I'm doing that as well. :) Thanks.

  6. morgond
    Member
    Posted 6 years ago #

    Just to follow up, there is a Textpattern plugin called bit_rss that can use RSS feeds to bring in posts from other blogs. It's what I'm using to solve this issue.

Topic Closed

This topic has been closed to new replies.

About this Topic