WordPress.org

Support

Support » Themes and Templates » WP on an existing HTML page

WP on an existing HTML page

  • Im new, and have intermediate html skills + plus a little php, and no sql to speak of except that I have worked with MS Access extensively.

    Heres my question:
    How can I get my wp blog to be one component of my webpage, rather than the whole thing? so instead of going to http://www.mysite.com/wpblog, you could go to http://www.mysite.com and the blog would appear, along with my other website content?

    Thanks,
    ACA

Viewing 8 replies - 1 through 8 (of 8 total)
  • In html – maybe with some feed reader that works on html pages.
    If you make your index a .php file > index.php
    you can try this guide:
    http://www.transycan.net/blogtest/2005/07/05/integrate/
    Also take a look at the Codex; The_Loop and related pages.

    All you need do is include the wp-blog-header in your file and any portion of WP you want. There are a lot of threads in this forum discussing how people made it work uniquely for them but you will have to dig for them.

    Thank you moshu and Beel. I will look into that.

    Beel, what keywords would be appropriate for searching out the info in the forums?

    Thanks again,
    ACA

    elephino, I searched on “WP outside include” and came up with this…
    http://wordpress.org/support/topic/20996#post-119433

    woops, sorry for posting this by accident!

    Beel,That link is very close to what I am looking to do. Thanks for it. Is there a way to just include the entire blog on the main part of the index.php?

    Check my About.com site for reference:
    http://backandneck.about.com/

    This relationship of blog to rest of content is what I’m interested in. Any further suggestions?

    Right now the blog is Moveable Type, but they are switching to Word Press and so am I!

    Since I’m lurking, and others might find this useful, I’ll point out some other things.

    First, pulling in WP directly means loading a lot of code. It pulls in the entire WP engine, plugins, etc., which you might not want. Then again, you might want it (as it could give you spam blocking, referral tracking, etc. So, guess this has its pluses and minuses.

    Second, without a caching engine behind the scenes, WP is dynamically regenerating the content. 2.0 has some optimizations for some of this, but otherwise where it’s a custom query I’m not sure how it might be cached.

    Third, last I looked at the WP query code, it was always retrieving EVERY field of the post(s) in question. That means even if you just want to show the excerpt, it still retrieves the ENTIRE post body from SQL as well. This is huge overhead (that I’ve eliminated through hacking the core code on my site, but I’d like to see this optimization done for real… ;)).

    Lastly, an approach I/we sometimes lean towards is using something like CG-FeedRead (or other aggregator) to pull your own RSS feed from WP, insert it into your home-page, but then because CG-FeedRead caches to disk and only re-updates every N hours (AND as WP-Cache can be installed, which would also cache the feed on WP’s end), your page would load VERY fast, but still be reasonably up-to-date (i.e., set the re-grab interval to 60 minutes, and you’ll always be up-to-date within an hour at most).

    -d

    Sounds complicated to put together. Are there documentation/tutorials?

    Is your chait.net site an example of using the CG-FeedRead inserted into home page?

    Thanks, ACA

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘WP on an existing HTML page’ is closed to new replies.