Forums

[resolved] Install wordpress in HTML (16 posts)

  1. fleuris
    Member
    Posted 3 years ago #

    I'm pretty new to all of this, so here's a basic question:

    How do I embed wordpress in an already created HMTL page? I don't want a generic template, I just want my posts to show up on my already created webpage.

    Thanks for any help!

  2. fleuris
    Member
    Posted 3 years ago #

    P.S. I'm using Midphase (anhosting) and have access to Fantastico- if that makes any difference.

  3. whooami
    Member
    Posted 3 years ago #

    thats not really a basic question, but here's your answer:

    1. you use feeds .. and embed those.

    2. You use PHP, create a proper loop, call the right files, etc..

    nether of the above solutions will work on a file that ends with .htm or .html

    You cant just paste PHP into a html file and have it work.

  4. fleuris
    Member
    Posted 3 years ago #

    Wow, OK I'm glad it's not a basic question, because I was having a really hard time figuring it out how to do it through info pages!

    Thanks for your reply.

  5. Anything-Tips
    Member
    Posted 3 years ago #

    Write the following line inside your .htaccess file on your server(if u don't have one create one on text file, upload to root directory and rename it to .htaccess):

    AddType application/x-httpd-php .html

    then copy and paste the code inside the wordpress index.php into ur already existed html file.

    Hope this helps

  6. OperaManiac
    Member
    Posted 3 years ago #

    but wordpress is now much more than just index.php file. the template directory has several files which are all required for proper functioning of the blog.

  7. whooami
    Member
    Posted 3 years ago #

    AddType application/x-httpd-php .html

    that solves the "cannot put PHP into an .html file' issue. Thats not the real issue here though, and isnt going to accomplish what the OP wants.

  8. Anything-Tips
    Member
    Posted 3 years ago #

    Won't index.php code use functions calls to excute all other related wordpress files if it was implemented this way inside his already made html file?

  9. Anything-Tips
    Member
    Posted 3 years ago #

    I understood his question, but i thought this will be a simple workaround. and no harm done if it didn't work, he might give it a try.
    [ofcourse after installing the wordpress files normal way first]

  10. fleuris
    Member
    Posted 3 years ago #

    Here's my problem, I want to put the blog on the index page. I'll give links to clarify:

    I want this -- http://www.fleuris.ca/blog/

    to be (RSS?) fed here -- http://fleuris.ca/ (in the faded grey box)

    I posted this question before, but I would really appreciate a step-by-step procedure if anyone has one.

  11. Samuel B
    moderator
    Posted 3 years ago #

  12. fleuris
    Member
    Posted 3 years ago #

    Which RSS feed should I choose? Does it mess up the rest of my HTML if I add it to my index page?

  13. fleuris
    Member
    Posted 3 years ago #

    My other worry about doing this is the fact that Wooami stated that

    nether of the above solutions will work on a file that ends with .htm or .html

    Any ideas?

  14. fleuris
    Member
    Posted 3 years ago #

    Please reply. I would really like to resolve this post.

  15. moshu
    Member
    Posted 3 years ago #

    Well, your whole approach as stated in the title of this topic (Install wordprsss in HTML) will never fly. WordPress is all PHP and nothing will work on a html file. (Although they gave you above some workaround even for that.)

    And no, you cannot just "add" the RSS feeds to the "rest of your HTML" either.

    You could also try to read this tutorial - but that works also only on .php files. If you can rename your existing file to .php, you may give it a try.

  16. fleuris
    Member
    Posted 3 years ago #

    Thank you. I'll try my best.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags