WordPress.org

Forums

PHP Only? Integrate WP Blog into existing website (6 posts)

  1. ALWMC
    Member
    Posted 1 year ago #

    Hello!
    Ideally we would like to install / utilize WP blogging features by adding them to our existing web site.
    All tutorials, articles refer to integrating the code into PHP pages on one's existing web site.
    Our existing site is not built in PHP.
    Does this mean we cannot integrate WP blogging features?

    Many thanks!

  2. WPyogi
    Forum Moderator
    Posted 1 year ago #

    Yes, WordPress runs on PHP so that's required. Assuming that the server where your site is hosted meets the requirements, you could install WP in a sub-directory and link to it from your site.

    http://codex.wordpress.org/Installing_WordPress

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

  3. ALWMC
    Member
    Posted 1 year ago #

    Excellent - many thanks!
    Just to idiot-proof my understanding: does the code required in the header still need to be inserted in each page, or does the link send it to WP running (in a way) stand alone?

    Again - many thanks!

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    The code needs to be inserted into each page that you intend to use to display WordPress content.

  5. charlestonreiki
    Member
    Posted 1 year ago #

    Hi! I am having a challenge with this as well. I am new to WP, and found this documentation which is exactly what I need:
    http://codex.wordpress.org/Integrating_WordPress_with_Your_Website

    at least I think it is...

    I'm fairly proficient at html and css, not so much with php. I have WP installed in a subdirectory entitled /blog just as indicated in the documentation. It works fine to log into WP and use it that way.

    I then created a blank page on my site titled blog.php and popped the code given in this article into it, uploaded it and... it came up as a blank page with the following error messages:

    Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in D:\Hosting\2832415\html\reiki\blog.php on line 6

    Fatal error: require() [function.require]: Failed opening required './wp-blog-header.php' (include_path='.;C:\php5\pear') in D:\Hosting\2832415\html\reiki\blog.php on line 6

    I'm not sure what I'm doing wrong, though it's probably something simple. None of my design or css comes through at all, only the errors. I have the DW template html in the page, and the two pieces of php code referenced in the article. The first piece it said to insert at the start of the page, which I did. The second piece it did not indicate where in the page to add it, so I put it in the content area. I used the piece of code given for "last 3 posts" for that portion.

    Can anyone help, please? Thank you!

  6. charlestonreiki
    Member
    Posted 1 year ago #

    The other part of this is that I would like to have a list of the blog archives appear in the left column in my site. I *think* that part of the code in the section about "The Loop" will do this, but not sure I'm understanding it correctly. I wish that it went into a bit more detailed explanation.

    My site address, in case that helps, is http://www.charlestonreikihealing.com

    Thanks!

    Jenni

Topic Closed

This topic has been closed to new replies.

About this Topic