Video Pagination Tutorial

We have seen how to list content using the WordPress loop without necessarily worrying about pagination. There are different methods to create a pagination but the most interesting is the function paginate_links (). This function does not necessarily offer a ton of options in terms of customization and you will probably need to create a custom function to adapt to the structure of your template.

function montheme_pagination ()
    $ pages = paginate_links (('type' => 'array'));
    if ($ pages === null) {
    echo '';