Support » Fixing WordPress » wp_get_archives mixes posts and pages

  • Hi,

    I want to have the last posts in my sidebar, and I have the following:

    <ul class="entradasblog">
    <?php wp_get_archives('type=postbypost&limit=10&format=custom'); ?>

    I think it’s ok, but something is wrong because in the list there are pages and posts (order by the date of course). I don’t know how this is possible, but it’s.

    Anybody knows what could be happening?

    Thanks a lot

    PD: I know I can use plugins, but before I change I’d want to know what it’s wrong here

  • The topic ‘wp_get_archives mixes posts and pages’ is closed to new replies.