How to break the wp_link_pages in two lines

You could potentially use the before, after, and separator arguments passed to wp_link_pages() to wrap each item in a span, then target the spans via CSS. Here’s your current code: wp_link_pages( ‘before=LQ &pagelink=Chapter %’ ); Converting to an array, because it’s easier to follow/manipulate: wp_link_pages( array( ‘before’ => ‘LQ ‘, ‘pagelink’ => ‘Chapter %’ ) … Read more

Paging with category page

category.php is the main category archive template file, which is auto-magically loaded by WordPress for category archives. In that case, use the pre_get_posts hook to alter the main query for this page and you shouldn’t have trouble with the pagination. function pregp_wpse_100602($qry) { if (is_category() && is_main_query()) { // no idea what conditions you want, … Read more

Highlight the first page pagination_links

Are you looking for something like this? You need to add style for the class .current also current page number wrapper in span you can also use this to style. <span class=”page-numbers current”>1</span> <a class=”page-numbers” href=”#page2″>2</a> <a class=”next page-numbers” href=”#page2″>Next »</a> When you go to page 2 structure become <a class=”prev page-numbers” href=””>« Previous</a> <a … Read more

Add css class to Pagination?

You can do what you are trying to do – add a CSS class selector to an HTML div tag, but you are mixing HTML and PHP code incorrectly. In order to do this correctly, you need to use the PHP opening/closing tags accordingly, such as: ?> <div class=”col-lg-12″> <?php echo paginate_links( array( ‘total’ => … Read more