Install wordpress in HTML
-
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!
-
P.S. I’m using Midphase (anhosting) and have access to Fantastico- if that makes any difference.
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.
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.
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
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.
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.
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?
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]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.
Which RSS feed should I choose? Does it mess up the rest of my HTML if I add it to my index page?
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?
Please reply. I would really like to resolve this post.
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.
Thank you. I’ll try my best.
The topic ‘Install wordpress in HTML’ is closed to new replies.