Making a Killer wp_link_pages

Your pagination links are wrapped in with this tag <p class=”pagelinks”> so giving them all the same spacing is easy using CSS like so: .pagelinks a { margin: 0 5px !important; } /* override other defined margins */ maybe you want them all centered on the page too: .pagelinks { display:block; text-align:center; } making the … Read more

foreach pagination

Here is the code I used to solve my problem: <?php $url = $_SERVER[“REQUEST_URI”]; $segments = explode(“https://wordpress.stackexchange.com/”, $url); $page = is_numeric($segments[count($segments)-2]) ? $segments[count($segments)-2] : 1; $next = $page + 1; $prev = $page – 1; $issues_per_page = 11; $lastpage = ceil(wp_count_terms( ‘mag’) / $issues_per_page) ; ?> <?php wp_count_terms( ‘mag’ ); ?> <table> <tr> <?php $col … Read more

Archive page – problem with pagination

Thanks Pat J I’have got solution now: <?php $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; ?> <?php $offset = ($paged – 1) * 4;?> <?php $kat = get_field(‘kategory’);?> <?php $query = new WP_Query(array(‘offset’ => $offset,’post_type’ => ‘modelki’, ‘taxonomy’ => $kat, ‘posts_per_page’ => ‘4’)); ?>