Question:

Webmasters assemble!!! How do I get my blog entries onto my homepage w/o iframes?

by  |  earlier

0 LIKES UnLike

I have a blog hosted on my website http://www.kevinmstich.com/kevin/wpblog/ (I use wordpress.org). What I would like to do is basically have a visible feed on my homepage so that people can see and read from the homepage what the latest blog posts are.

I'm not looking to link people to my blog, I want the actual entries and content to show up.

Kind of like this: http://www.kyleriabko.com/

I don't want all the posts to come up, just one (or two or three it doesn't matter).

HELP ME PLEASE!!!

Thanks!

 Tags:

   Report

2 ANSWERS


  1. Since you are using Wordpress you have the ability to control your database.  Basically just write a little custom code on the page where you want the entry to show up to connect to your datasource, then get the title and body of the entry.

    Then to crop off the entry (like that other example does) do:

    <?php

    // Get the data from your database.  I am going to assume it's named $the_stringfromdb.

    echo substr($the_stringfromdb,0,500);

    ?>

    That will show all characters from 0 to 500.  After that it will not

    show any other ones.

    Best of luck,

    Chad


  2. Use feedburner and get your feed that way...much easier

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.