Support » Installing WordPress » Inserting blog posts on another page

  • Okay, I’ve looked through the WIKI and I didn’t see the answer to this.

    I would like to be able to insert the current blog post into the front page of my site. I don’t want to replace the front page since it has a lot of other information on it. I want to use the current wordpress post as an update feature, with comments allowed.

    The site uses frames, a TOC and a header frame, and the content frame is where everything is. Right now it’s SHTML since it has to pull from several different files where I do updates to various aspects of the front page without changing the content of the front page. If you want to see it, it’s at

    The boxes on the left and right sides are pulled in by the SHTML script, as is the “Rant” section below. I want to replace the “letters from the editor” section with the current blog post.

    If I have to I can set it up so the main blog page (at ) is only populated with ONE post, comment out the header and the navigation box, but I really don’t want to be that extreme yet.

    Is there someo other way to do this? I’m racking my brains and the best I can come up with is to feed it through RSS to the FrontPage, but that’s not really a good option.

    Is there something else I can do?

Viewing 1 replies (of 1 total)
  • Hmmm. Well, the easiest way IS to pull it in via RSS, as it ‘disconnects’ the two pages. Your homepage doesn’t need to pull in sql, wordpress, etc. I’ve had a number of people do this with CG-FeedRead in the past. You lose some minimal formatting, though with HTML encoded content you get most of it.

    Another method would be to pull in WP ‘a little’ in order to run a custom post query that just grabs the most recent post. I’ve done the other direction, pulling in just the theme part of WP to style a non-WP page, but haven’t tried to pull in just a custom “the loop” into a not-really-wp page…

    The trickiest would be to actually write custom MySQL code… but I wouldn’t want to go that route as you lose formatting, etc. Trying to include WP into another page is likely easier. If nobody has actually done this before, I’d be happy to give it a try — you need to turn off themes, set up a custom query, and including wp-config at the minimum (you might need wp-blog-header, unsure…).


Viewing 1 replies (of 1 total)
  • The topic ‘Inserting blog posts on another page’ is closed to new replies.