SitePoint Sponsor

User Tag List

Results 1 to 11 of 11
  1. #1
    SitePoint Member
    Join Date
    Sep 2010
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to update published posts on my home page ?

    Hi,

    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

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,614
    Mentioned
    413 Post(s)
    Tagged
    7 Thread(s)
    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.

  3. #3
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    16,481
    Mentioned
    164 Post(s)
    Tagged
    1 Thread(s)
    Maybe you could show your blogs RSS feed in your home page? That could display the latest post (or excerpt of it).

  4. #4
    SitePoint Member
    Join Date
    Apr 2010
    Location
    Boston, MA
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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?

  5. #5
    SitePoint Member
    Join Date
    Sep 2010
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for all of your reply !

    I could like to share the below tutorial from wordpress.org forums . May be this could help us.

    See
    Integrating_Wordpress_with_Your_Website

  6. #6
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,614
    Mentioned
    413 Post(s)
    Tagged
    7 Thread(s)
    Quote Originally Posted by mullai View Post
    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?

  7. #7
    SitePoint Member
    Join Date
    Sep 2010
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Ralph,

    I need to follow up with that tutorial posted in that link and then shall let know the results after sometime. Bye

  8. #8
    SitePoint Member
    Join Date
    Sep 2010
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry

    Hi Ralph / All

    It still didn't work as in the below link

    Integrating_Wordpress_with_Your_Website

    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 !

  9. #9
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,614
    Mentioned
    413 Post(s)
    Tagged
    7 Thread(s)
    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.

  10. #10
    SitePoint Member
    Join Date
    Apr 2010
    Location
    Boston, MA
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  11. #11
    SitePoint Member
    Join Date
    Sep 2010
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile

    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 !


    Thanks again,
    Mullai


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •