Viewing 6 replies - 1 through 6 (of 6 total)
  • <?php get_recent_posts(); ?>

    Thread Starter Anonymous

    Where would I put that code? In the index.php file, correct?
    I want the “recent posts” to appear above my categories…so how would I place the code to do this?
    Here is the code from the php file for the menu:
    <div id=”menu”>

      <li id=”categories”><?php _e(‘Categories:’); ?>
      <?php wp_list_cats(); ?>

    <?php get_links_list(); ?>

    Where would I place <?php get_recent_posts(); ?>
    Thanks

    alright, but does anyone know how i get those recent posts on a non-wp page? (i’ve searched the support forums and can’t find it or it doesn’t seem to work)

    atease – follow the guide I wrote for static pages and the code will work.
    http://www.tamba2.org.uk/wordpress

    thanks! that surely helped

    I have been trying to figure out how to add options (specifically, how to get recent posts offset by 20 – the number already displayed on my index page) to the get_recent_posts() function in the latest CVS download versions… I tried using the syntax from the get_recent_posts plugin, but it did not work. The plugin did not work either, perhaps because it conflicts with the wp_get_recent_posts in xmlrpc.php? Thank anyone who can help….

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Adding “Recent Posts” menu?’ is closed to new replies.