the_posts_navigation is not working

This function uses get_the_posts_pagination() which uses the GLOBAL $wp_query to setup the paginate_links() function, so I believe that doesn’t work for get_posts. Try use the function paginate_links() by itself or the function posts_nav_link()

Category navigation template

WordPress Pagination You can use previous_posts_link and next_posts_link. <nav id=”post-pagination” class=”navigation” role=”navigation”> <div class=”nav-previous”> <?php next_posts_link( ‘← Older’, $the_query->max_num_pages ); ?> </div> <div class=”nav-next”> <?php previous_posts_link( ‘Newer →’ ); ?> </div> </nav> It’s not important but Next and Previous have the opposite classes (.nav-previous on next_posts_link() & .nav-next on previous_posts_link()) because: Because post queries are … Read more

Navigation template

I found the solution. I had to add this in functions.php : add_filter(‘navigation_markup_template’, ‘my_navigation_template’, 10, 2 ); function my_navigation_template( $template, $class ){ return ‘<footer> <nav id=”nav-below” class=”navigation” role=”navigation”>%3$s</nav> </footer>’; } Source : http://wp-kama.ru/function/_navigation_markup

Is it possible to seperate wordpress menu by different div?

Yes it is possible, please take a look at the code below it will give you the basic idea. You can change ul to div and add some logic to match your needs. $menu_name=”primary”; $menu = wp_get_nav_menu_object( $locations[ $menu_name ] ); $menu_items = wp_get_nav_menu_items($menu->term_id); $menu_list=”<ul id=”menu-” . $menu_name . ‘”>’; foreach ( (array) $menu_items as … Read more