• Resolved kineri

    (@kineri)


    Greetings,

    I’m using the “wp_get_archives()” function, passing by parameters, the type (monthly) and the show_post_count (1).

    Along with it, i’m using the “query_posts()” functions, passing by parameter a category_name

    here’s a bit of the code:

    <?php query_posts('category_name=depoimentos'); ?>
    <ul class="sidebar-category-list">
    <?php wp_get_archives('type=monthly&show_post_count=1'); ?>
    </ul>

    My problem is: the function is not showing “depoimentos” category posts, it returns all my posts.

    Am I missing something?

    Sorry if it’s the wrong section of the forum, i’m a bit confused

    Thanks for the help

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘wp_get_archives trouble’ is closed to new replies.