WordPress.org

Ready to get started?Download WordPress

Forums

wp_get_archives mixes posts and pages (1 post)

  1. fesja
    Member
    Posted 7 years ago #

    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'); ?>
    </ul>

    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

Topic Closed

This topic has been closed to new replies.

About this Topic