Forums

Creating Static Front Page Error (2 posts)

  1. garionw
    Member
    Posted 5 years ago #

    Hello, I hope this hasn't been asked before, if it has please accept my apology's and point me in the right direction.

    I would like to have the last five blog posts displayed on my homepage (gwplus.net) I was using This Guide and when ever I open the page, I get this error:

    1. get_results("SELECT ID,post_title FROM $wpdb->posts WHERE post_status= \"publish\" ORDER BY 'ID' DESC LIMIT ".$how_many); foreach($news as $np){ print ("ID); print ("\">$np->post_title
    "); } ?>

    Could anyone please tell me where the problem is and how I can fix it

  2. Nicki Faulk
    Member
    Posted 5 years ago #

    I had trouble getting that to work for me, but have had great success from Denis de Bernardy's Static Front Page plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic