WordPress.org

Ready to get started?Download WordPress

Forums

Embeding WordPress in a simple PHP template site (3 posts)

  1. jtt89
    Member
    Posted 2 years ago #

    I have a simple site (header.php, footer.php and some content sites in between) and I want to include WordPress as one of them. I install it and it works as domainname.com/blog, but I am wondering if I can get it to work under regular header.php, just like with other pages (Home, Services, Resources, Blog, Contact). I am using something like this:

    < ?php
    $subtitle = "Media Services";
    include("header.php");
    ?>

    When I add the following code, it does not load anything,

    include("blog/wp-blog-header.php");

    but a test file like test.php (with echo "This is test etc..") works with the same pathname.

    Does anybody know what am I doing wrong. I basically want to have blog under the header here http://67.23.244.109/~belerose/blog.php instead of http://67.23.244.109/~belerose/blog

    Thank you.

  2. jtt89
    Member
    Posted 2 years ago #

    I've been trying to figure it out for a while and the best way to do this is just to make the WordPress page look like the rest of the website, rather than the other way around. I never used WordPress before, but I was looking at the admin are and there is quite a lot of code in css Editor and that probably depends on the theme also. I am looking at something like Blank / Naked themes for WordPress, so it is easier to make it look like the original website. It does not have to be difficult, it looks like, but I need to figure out the best way to do that etc (find some light version instead of entire WordPress installation or something like that, and still be able to expand later)

  3. esmi
    Forum Moderator
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.