Pagination?
-
How do I add pagination inside one div block. I did many changes so I can’t explain everything.
My posts are horizontal not vertical in category archive.All I need is to force pagination in new row, so I have to soround this fuction by one div class:
function mh_pagination() { global $wp_query; $big = 9999; echo paginate_links(array( 'base' => str_replace($big, '%#%', esc_url(get_pagenum_link($big))), 'format' => '?paged=%#%', 'current' => max(1, get_query_var('paged')), 'prev_next' => true, 'prev_text' => __('?', 'mh'), 'next_text' => __('?', 'mh'), 'total' => $wp_query->max_num_pages )); } }
How to soround “paginate_links” by
<div class=""paginate_links">Here is pagination content</div>
Now it is inside section class and messing up my content, I tried with many css things neither work, only this is solution.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Pagination?’ is closed to new replies.