Displaying a wordpress post on a separate site (2 posts)

  1. micahwedemeyer
    Posted 6 years ago #

    I've got 2 sites: a main site (call it MS) and a wordpress blog (call it WP). I'd like to display a blog post or teaser from WP on the front page of MS. Ideally, it would be inlined with an IFRame or something like that.

    I just want the HTML for the post/teaser, and none of the sidebars/headers/navigation/etc.

    Like I said, I'd prefer to use an IFrame, but I can get more exotic with that if necessary. MS is written in Ruby on Rails and I can do pretty much anything there (like pull down WP's RSS feed, extract the HTML, and display like that), but I'd prefer to avoid any complicated programming if I can.

  2. micahwedemeyer
    Posted 6 years ago #

    So after thinking for 30 minutes, I have something to try. I'll iframe the main WP page, then use CSS to hide all the WP headers, nav, and whatnot, leaving only the post. We'll see how well that works.

Topic Closed

This topic has been closed to new replies.

About this Topic