WordPress.org

Support

Support » How-To and Troubleshooting » incorporating posts/pages into an html website

incorporating posts/pages into an html website

Viewing 7 replies - 1 through 7 (of 7 total)
  • No-one? I thought I had read somewhere that it’s possible?

    kentfallman
    Member

    @kentfallman

    You cant include stuff into .html pages, it have to be .php

    You can can make a static wordpress page and show them and/or make your own function to pull the data from the database into your page.php

    Even if you give your files the .php extension, the wordpress tags wont works on your http://www.website.com if wordpress is installed in http://www.website/blog.

    Because the wordpress functions will be stored in /blog/wp-include… So there is no way to use these functions on a section of your site where wordpress is not installed.

    I’m far from being a php/mySQL guru, but I fear there is no easy way to call these function anywhere else than /blog…

    S.

    kentfallman
    Member

    @kentfallman

    you can really easy show wordpress stuff on any other php page!

    Actually… if your blog is at example.com/simonj/ folder
    and you want to use any of the WP functions in a file at the root folder – all you have to do is this:
    add to the top of the file from the root (e.g. example.com/index.php) this:

    <?php
    require('./simonj/wp-blog-header.php');
    ?>

    You can use any WP functions, template tags etc.

    kewl kewl! 🙂

    So I take that back… 🙂 There is a really easy way to do so!

    S.

    Thanks moshu, and thanks gents (and gals if any). Much appreciated 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘incorporating posts/pages into an html website’ is closed to new replies.