Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter jbbrwcky

    (@jbbrwcky)

    No-one? I thought I had read somewhere that it’s possible?

    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 https://www.website.com if wordpress is installed in https://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.

    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.

    Thread Starter jbbrwcky

    (@jbbrwcky)

    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.