• this is my code:

    <?php
    $cat = get_query_var(‘cat’);
    $args = array(
    ‘child_of’ => $cat,
    ‘orderby’ => ‘name’,
    ‘order’ => ‘ASC’,
    ‘number’ => ’10’,
    );
    $categories = get_categories($args);
    foreach($categories as $category) {
    echo ……….
    }
    ?>

    <?php wp_pagenavi(); ?>

    i want show only 10 categories per page, i used <?php wp_pagenavi(); ?> ,but it is not working. please help me.

  • The topic ‘how can i pagenav for get_categories’ is closed to new replies.