G
G
Grisha Nikolsky2015-12-16 13:45:34
WordPress
Grisha Nikolsky, 2015-12-16 13:45:34

Should pagination be displayed?

Hello. There is the following PHP code:

<?php
        $args = array(
            'show_all' => True,
            'end_size'     => 1,     // количество страниц на концах
            'mid_size'     => 1     // количество страниц вокруг текущей
        );

        the_posts_pagination($args);
        ?>

Should such a code produce something similar with a large number of entries and a limitation in the admin panel (3 posts / page)?
I get nothing at all.
I did it earlier with the help of a plugin, but then they suddenly wrote that there is such a new function. I decided to try.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WP Panda, 2015-12-16
@VoxelGod

Yes, it should be displayed, why it doesn’t work for you is not clear.
If you specify 'show_all' => true then end_size' and 'mid_size' do not need to be specified

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question