mullai — 2010-09-16T09:50:41-04:00 — #1
I need help in publishing posts using wordpress in my domain. I have already set up wordpress blog running as http://www.mydomain.com/blog, and the blog directory in my domain root directory contains all the wordpress core files. The homepage index.html is in the root directory of my domain http://www.mydomain.com
Now I need myself and the users to login to my blog
(http://www.mydomain.com/blog) and publish posts, so that it should be updated directly in my homepage index.html (http://www.mydomain.com). This is similar to FTP publishing through blogger site (www.blogger.com)
Can anyone please guide me over here ? Thanks
ralphm — 2010-09-17T10:27:40-04:00 — #2
Don't worry, WP is great. Once you get over this, you'll enjoy it, I'm sure.
For PHP to run on a page, the page file needs to have a .php extension, instead of .html. (Well, there is a way around that, but I doubt you need it.)
So, if your home page is a .html page, duplicate it and call the duplicate index.php and upload it. Then delete index.html from the server so that only index.php is active. Then go to your domain (www.mydomain.com/) and see if that fixes things.
mullai — 2010-09-17T09:54:28-04:00 — #3
Hi Ralph / All
It still didn't work as in the below link
Please note that my homepage contains only XHTML code, and not PHP code. so is it because when I embed the required PHP code in the XHTML code, I am not able to see any published posts in my homepage ?. I am asking this because I do not know PHP, and if there is any other alternate solution available from wordpress, please anyone let me know.
Of course, it would be bother for me to re-create my site as an wordpress site, and I don't want to go that way.
I would also welcome, if anyone can please confirm that wordpress cannot able to provide solution to my answer, so that I can go for other tools and close this thread .
I have wasted enough time with blogger, and now with wordpress ! :mad:
ndlela — 2010-09-16T17:48:32-04:00 — #4
It is probably better to set up the whole site in wordpress so that you have the options to use blog entries (or sections of entries) on any page you want. I would agree with ralph.m's suggestion. That way you can designate the front page a static page (through the admin dashboard) or create a special loop that would designate what posts get sent to the front page (by category, author, etc). Let me know if this makes sense. What is the domain name and what posts do you want on the front page? All of them or specific posts?
mullai — 2010-09-16T20:34:48-04:00 — #5
Thanks for all of your reply !
I could like to share the below tutorial from wordpress.org forums . May be this could help us.
mittineague — 2010-09-16T16:23:06-04:00 — #6
Maybe you could show your blogs RSS feed in your home page? That could display the latest post (or excerpt of it).
mullai — 2010-09-16T21:15:53-04:00 — #7
I need to follow up with that tutorial posted in that link and then shall let know the results after sometime. Bye
ralphm — 2010-09-16T21:03:13-04:00 — #8
Hmm, looks like WP has moved on quite a bit since I last played with it. I take back my earlier comments. Has this link answered your questions?
ralphm — 2010-09-16T09:57:18-04:00 — #9
I haven't used WP in a while, but my understanding is that to do what you want, wordPress should be in your root directory, not in a sub directory. Otherwise, you can only see posts on mydomain.com/blog/index.php.
If you are at an early stage with this, reload the WP files in the root directory.
mullai — 2010-09-18T06:04:05-04:00 — #10
Hi Ralph / All,
It's working wonderfully now !. I am now able to see all the published posts in my site after changing the index.html to index.php as Ralph suggested. Thank you very much, Ralph ! and also to others who have taken their time to post replies to this thread
I think this thread can be closed now !
ndlela — 2010-09-17T18:09:28-04:00 — #11
I agree with ralph.m again, change the extension to php. Make sure that the path to the header file (or at least the header info) is correct so that when you include the loop on the front page to pull in the posts, it knows what functions to use to display your posts.