• Hi all,

    I’m making a basic theme at the moment and I’ve added the following to sidebar.php (it’s an include of my own creation, not one used by WordPress as such).

    <p>
    <h1><?php _e(‘Recent Posts’); ?></h1>
    <?php wp_get_recent_posts(); ?>
    </p>

    However, that returns nothing but the title (and yes, there are posts on the site!).

    Any ideas? Am I using the tag correctly?

    Thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Why would wp_get_recent_posts() return nothing?’ is closed to new replies.