mini-loop on static html
-
I am trying to add the 10 most recent posts from my blog to the homepage of my website (a static html).
When I follow these instructions this is the output I get:
# 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
“); } ?>I’ve tried various tweaks, all fail… Can anyone help me out, so I can update the codex page (tagged as needed edit)… quite a few having this same problem
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘mini-loop on static html’ is closed to new replies.