-2
votes
0answers
13 views

Pagination for custom post type on page template [duplicate]

Hello I am trying to add pagination to a page template which I am using to display a custom post type. I have looked around for a few hours but I haven't come across clear set of instructions to ...
0
votes
0answers
29 views

next_post_link() not working properly

I am using next_post_link() and previous_post_link() in single-custom.php to browse through post-type "custom". <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div ...
0
votes
0answers
26 views

Adjusting Pagination

I am currently try to fix some issues in the pagination on one of my client's sites. The code that was in place is: if (!function_exists('prime_pagination')) { function prime_pagination($args = ...
-1
votes
1answer
85 views

Page navigation not working correctly on index but only on categories

i have a problem with the page navigation, on the homepage of my website page navigation not working, when i click on page number 2 or 3 it says "Not found". But in the categories page is working ...
0
votes
2answers
35 views

How to display numbered pages in a category

How in category.php to output a numbered list of links to pages like: 1 2 3 4 5 when the number of posts in the category exceeds the number of posts to display?
-1
votes
1answer
297 views

posts_nav_link() not working on index.php

I have a problem with the posts_nav_link() function on index.php. It works but it's not displaying the older posts. When someone clicks on the "next page" link the same posts from the fist page are ...
2
votes
3answers
3k views

Pagination with custom SQL query

I have my own SQL string to select Custom Post Type posts with specific WHERE clause. I've used the offset and limit to return appropriate posts depending on a page being displayed. That's working ...
1
vote
3answers
3k views

How to add CSS Class to previous_post_link or get previous/next post link URL

How can I add a CSS Class to the previous_post_link output or just get the URL and create the HTML markup myself
1
vote
1answer
1k views

Paging doesn't work?

I have my own custom post type, and 15 items there. This code shows all the items: <?php $loop = new WP_Query( array( 'post_type' => 'my_post_type', 'posts_per_page' => 15 ) ); while ( ...
0
votes
1answer
737 views

Script to Automatically Advance to the Next Page of a Paginated Post

I have a custom post type that is just a paginated post and acts as a slideshow. How can I make it so that the reader can choose an option to have the slideshow advance automatically to the next page ...