WordPress.org

Ready to get started?Download WordPress

Forums

WP on an existing HTML page (9 posts)

  1. ACA
    Member
    Posted 8 years ago #

    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

  2. moshu
    Member
    Posted 8 years ago #

    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.

  3. Beel
    Member
    Posted 8 years ago #

    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.

  4. ACA
    Member
    Posted 8 years ago #

    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

  5. Beel
    Member
    Posted 8 years ago #

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

  6. Ozzapoo
    Member
    Posted 8 years ago #

    woops, sorry for posting this by accident!

  7. ACA
    Member
    Posted 8 years ago #

    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!

  8. davidchait
    Member
    Posted 8 years ago #

    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

  9. ACA
    Member
    Posted 8 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic