WordPress.org

Forums

integrating blog into my site (3 posts)

  1. couzin2000
    Member
    Posted 7 years ago #

    OK... so I've installed and configured WP 1.5.2, and everything works just fine. I'm familiar with the options and how to post, BUT...
    The contents of this blog (the posts) must be displayed within another page.
    What I need is this: I need the blog to display only the last 6 or 7 posts, not display the archive. I don't need posts to have their own permalink, even though it's already selected in the options of WP. I need only the blog posts, no comments (I'll be using another software for Forum purposes later). I won't need a footer, a header, all that stuff doesn't need to be there -- it's already in my site.

    I've looked at the test blog I wrote (on the actual web page) and all I need is the contents of the blog, that's all.

    Essentially, I need to know what page I'm going to use in my php require function in order to see it inside a DIV tage in my page. Once that is done, what are the CSS tags I'll be using.

    In case you need it, the blog I'm using is here: http://eyeinside.com/blog

    Thanks in advance for your help!

  2. moshu
    Member
    Posted 7 years ago #

    You may want to take a look at my guide here:
    http://www.transycan.net/blogtest/2005/07/05/integrate/
    (especially Scenario #1)

  3. couzin2000
    Member
    Posted 7 years ago #

    Hi again,
    after reading Moshu's tutorial, and researching a lot of similar tutorials on the web (by WP Support and Google), I still have yet to find the info I'm looking for.

    My site displays always the same page (welcome.php), with a div tag containing a menu and a div tag containing a PHP switch function that uses requires in different cases. For example, clicking on the 'news' link will reload the page as "welcome.php?i=news", which passes this variable to my switch statement and loads (through a require function) the 'news.php' page inside the div tag.

    The problem here, is that I've tried different ways to 'require' the posts from the blog, but somehow my "welcome.php" page needs to be made 'aware' of all the WP functions... so before my Doctype declaration in "welcome.php", I inserted a require for ".../blog/wp-blog-header.php", which I read was supposed to work. But... it didn't.

    So I'm desperate here. Should I be changing some variable somewhere, should I do this another way completely (by way of XML, maybe?)? Is there something I'm forgetting?

    Is this because there's already a require function, and I can't (in the 'cascade' of requires) use several?

    Someone give me a clue here.
    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic