Breaking up content into smaller-sized pages to be viewed individually

learn more… | top users | synonyms (1)

0
votes
0answers
10 views

How to check if comments are paginated?

I'm trying to determine if there's more than one page of comments in single.php. In archive.php I can do something like this to check if there's more than one page of posts: if ( $wp_query->...
3
votes
1answer
1k views

Display all posts from all categories with pagination

Alright, this might be a tricky one to explain but I'll do my best. At the front page I want to display all the posts from all the categories. However I want them to be divided. Take this for an ...
1
vote
2answers
36 views

Show next / previous text (button) all the time

As you see this pagination. there is no "pre" button or text. because there is no previous posts. ( http://prntscr.com/bmuui2 ) However I want to show the buttons (previous / next ) even if there is ...
2
votes
3answers
4k views

Strange paginate_links behavior. First page link is always whatever page I'm on, all other links are correct

I'm using the following code to generate some pagination: $wp_query = new WP_Query(); $wp_query->query('posts_per_page=5'.'&paged='.$paged); $big = 999999999; echo '<div class="pagination"...
0
votes
0answers
19 views

How to get full content for custom feeds in content with pagination

I Have content with pagination in wordpress page. but when i make custom feeds, just content in page one can display in my feeds. how i can get all content when i use feeds in page with pagination? ...
0
votes
1answer
494 views

How to reverse pagination for archive pages?

I would like to reverse the pagination order for the category archives and am wondering if anyone can offer any help. Basically what I am looking for is pagination to start with the oldest post first,...
0
votes
1answer
2k views

Custom post type archive page pagination

I have set up an archive page for my custom post type reference, where I use a query to get all posts of type reference. This works, but when I try to paginate the result, it doesn't work. Right now, ...
2
votes
2answers
4k views

get_query_var('paged') always returns empty

Putting this up after having hit a brick wall for possible solutions. Have a site with quite a few custom post types and associated custom taxonomies. To help make things easy, I'm using a unified ...
0
votes
1answer
500 views

Paginate_links only working on first page

I'm having an issue with pagination. On my site I'm using the plugin "Daisycon affiliate marketing plugin". I would like display the products that are stored in a custom database table (created by the ...
0
votes
1answer
503 views

WordPress get pagination on wpdb get_results

How do I gee the numbered pagination of custom wpdb result? below code will show one latest post from each authors in the site. I want to show 20 posts per page with a numbered pagination. $postids ...
0
votes
0answers
19 views

Pagination Duplicate content issue (.htaccess help)

I want to get rid of /page1.html from all the pages, as xyz.com/cat1/page1.html and xyz.com/cat1/ will lead to same result. I have tried this in my .htaccess: RewriteEngine On RewriteRule (.*)/...
0
votes
2answers
2k views

Pagination doesn't work

I created myfile.php with the following content: global $paged; if ( get_query_var( 'paged' ) ) { $paged = get_query_var( 'paged' ); } else if ( get_query_var( 'page' ) ) { $paged = ...
1
vote
1answer
572 views

Too many posts cause slow load when paginating

I have about 10k posts and I made a page that lists all posts but it is paginated every 54posts. It gives 131 queries in 6.730 seconds which is pretty slow to load. Is there a way to make it load ...
0
votes
1answer
27 views

Show next and previous page number

Anyone who knows how to show the previous and next page number? I've been searching a tutorial for this but I can't seem to find one. Basically, I want my pagination to be like this: for example, ...
0
votes
0answers
24 views

Wordpress Pagination archive/category [duplicate]

I have a problem with creating a simple pagination for the categories with WP_Query. I've got it to work for the archive, but if I try the same on the category template, then I get redirected to the ...
0
votes
2answers
3k views

Pagination with get_posts seems to work but links not showing

I've a custom page template where I want to query 2 posts from a post type and 1 post from another post type. I have it set up like this: $paged = get_query_var('paged') ? get_query_var('paged') : 1; ...
-1
votes
1answer
589 views

query_posts with offset breaks pagination

I have this code in my front-page.php template: <?php if (get_query_var('paged')) { $paged = get_query_var('paged'); } elseif (get_query_var('page')) { $paged = get_query_var('page'); } ...
1
vote
3answers
842 views

Pagination: /tags/tag_name/?paged=2 gives a 404 error

I need to paginate an archive page. Pagination works perfectly fine for everything except tag/category archives. Basically if I use /tags/tag_name/?paged=2 it gives me a 404 error. But if I use /tags/...
-1
votes
0answers
21 views

Pagination creating an extra page with no posts [duplicate]

I have a wp_query with the following $args: $time = current_time( 'timestamp' ); // Get current unix timestamp $cpt_posts_per_page = ( is_front_page() ) ? 4 : 8; $paged = (get_query_var('paged')) ? ...
0
votes
0answers
16 views

pagination in admin side

I have 8 data in table. Problem is on first page showing 5 data but on second page 2 data from first page and 3 data that is not include in first page. Its repating data on second page. Here is ...
2
votes
2answers
844 views

Pagination problem after WP_Query with tag filtering

I have a problem with a custom WP_Query. I want a page with all posts with a specific tag. This is the code I'm using: <?php //save old query $temp = $wp_query; //clear $wp_query; $wp_query= ...
0
votes
3answers
2k views

Pagination not working on Custom Page Template

I searched a lot on this but I can't figure out why my code is not working. I published a page with slug "blog" that uses a custom built template "page-blog.php" that I build from editing the ...
1
vote
1answer
1k views

404 - Category pagination for custom post type

--Edit I've managed to narrow it down that the paged variable is not working properly here, (get_query_var('paged')) ? get_query_var('paged') : 1; is always returning 0 although maybe it is due to ...
1
vote
5answers
1k views

Pagination for blog posts reloading same page [closed]

Symptoms Visiting /blog/ loads the first 10 posts, as expected. Visiting /blog/page/2/ (and onward) loads the new URL but with the same 10 posts. Nothing changes but the URL. Setup Details Custom ...
1
vote
1answer
45 views

How to implement WP_List_Table? WP_List_Table giving array instead of a value in listing table

I am trying to implement WP_List_Table for my plugin. I have gone through this tutorial and using its sample plugin. I have installed this plugin and just changed table name and done slightly ...
0
votes
1answer
26 views

How can I properly control the numbers and dots that appear in pagination?

I have custom pagination that allows me to modify the mark-up for the code WP outputs: in functions.php function wp_custom_pagination($args = [], $class = 'pagination') { if ($GLOBALS['...
2
votes
2answers
563 views

Pagination on Custom Post Type: 404 Error

I've been getting a 404 error on a CPT archive page, and am not sure why. I can go to the page set for the custom post type archive, but the next page /mycustomposttype/page/2 gets a 404 error. I ...
1
vote
0answers
45 views

Custom Pagination in Shortcode with WP_Query

Trying to add custom pagination within a visual composer shortcode. The get_next_posts_link() and get_previous_posts_link() functions are working fine, but when I try to add the pagination function, ...
0
votes
2answers
4k views

Pagination with custom post type not working

For some reason I can'g get pagination using previous_posts_link and next_posts_link working. Here is the code I have... <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>...
0
votes
0answers
13 views

how to solve pagination error in category.php file [duplicate]

Now i have four category in my site. i can get all the pages of one category which is tour category and if i click other three i can see first page but if i click to second page it gives page not ...
-2
votes
1answer
502 views

Unable to display paging navigation with a custom post type loop

I have used a starter pack for my WordPress theme development, but I can't display the navigation on a custom post type loop. The framework starter is : http://underscores.me/ There is my PHP Code ...
0
votes
1answer
675 views

All blog posts are not showing up

This post may already exists but I just missed it in how I searched for it. Here goes. I have recently changed my blog back to the Genesis Framework. I am using the Nameless child theme. These are my ...
0
votes
1answer
425 views

get_next_posts_link() stops displaying at page 4

Please start by taking a look at this quick video: http://www.screenr.com/8vSH The problem: get_next_posts_link() disappears on page 4. That is, the "go to older posts" link disappears once I am in &...
0
votes
1answer
605 views

/tag/tag_name/page/2 gives a 404 error

I created my own template for list of entries for certain tag (tag.php), It will shows up 10 entries, and with Previous & Next link. <?php $paged = get_query_var('paged') ? get_query_var('...
0
votes
1answer
40 views

Can't use pagination with custom taxonomy

I have a problem with custom taxonomies & post types URLs. My post type slug is videos, it has an archive and it works fine: https://uwebdesign.ru/videos/. The pagination on the bottom of the ...
0
votes
2answers
901 views

Pagination for Pages and Posts

I want to use Pagination throughout a new theme but am having trouble getting it to work correctly. I am using some code within my functions.php file and then calling that function. It works on the '...
0
votes
1answer
990 views

Pagination for multiple queries merging into one Loop

I have an events site where I want to display upcoming events that can be booked in ascending date order, and events that are closed for registration in descending order. I'm using get_posts for each ...
1
vote
2answers
1k views

List posts based on first letter of posts

I want add a pagination How can I do this on both loop.php and search.php. I want show alphabetic index to search only posts with starting letter = [E] for example. Right now, if I search with E it ...
0
votes
1answer
36 views

Infinite scroll for text in post with url page change

I've been looking for a solution to my problem for quite some time. I would divide the text of an article, in parts by adding the "paging" infinite scroll and so far I have seen that it is possible ...
1
vote
1answer
426 views

Pagination in pages (not posts) with the twentythirteen theme?

I wrote a very long page with a lot of content and would like to add a pagination to make it more readable. I added in the texteditor several <!–-nextpage–-> but it doesn't create any pagination,...
2
votes
0answers
33 views

Number of pages - multiple (custom) post types

My archive query contains a custom posts_per_page, order, orderby, post_type and paged (via wp-pageNavi). array ( 'order' => 'DESC', 'orderby' => 'title', 'paged' => 1, '...
0
votes
1answer
45 views

Change Page title when Pagingation the posts

I just changed the title tag in the header.php like this <title><?php if ( $paged < 2 ) { } else { echo (' Page '); echo ($paged);} ?></title> Just want to change the title ...
1
vote
0answers
27 views

Numbered pagination not working on Custom Post types [closed]

I need help about pagination. I am retrieving posts from a custom type based on the post title, and I want to show numbered pagination, when the result contains more than 10 posts. What I have done ...
1
vote
2answers
166 views

Pull Random Attachments With Pagination

I want to make a archive page that pulls in all uploaded images to the site. I am using the current script. Its paginating somewhat but not showing all the images. Showing around 90 out of 140. ...
3
votes
2answers
61 views

Add custom search results to main WP search [duplicate]

I know, this question was asked before several times, but I didn't find the answer suitable for my task. I asked the same question on StackOverflow already, but, I guess, this community is more ...
0
votes
1answer
31 views

Pagination Error on Admin (You do not have sufficient permissions)

Hi everybody and tks in advance for your help! I have a plugin and I was trying to do some pagination for a custom query. Everything seems to work fine, but when I click on page 2 (or whatever not ...
0
votes
1answer
53 views

Pagination in html table is not working

I have a custom page template and I found a a PHP snippet that create a pagination in html table. But the code is not working properly. UPDATE: I change the code. But still the code is not working ...
0
votes
1answer
26 views

How to limit page pagination… again

I'm digging out on old question as no solution came out. How to limit page pagination I'm looking for a way to limit pages on homepage and categories (archive.php). I have around 200k posts spread ...
0
votes
1answer
108 views

How to remove /page/2/ from home page?

First of all: I don't understand the meaning or the action that http://myurl/page/2 does? I checked the Net tab in Firebug and saw that my page takes more than 3 seconds to load /page/2... but I don'...
2
votes
2answers
826 views

Pagination/infinite scroll with WP_Query and multiple loops

I need that the main page of my site have 3 columns: - The first having the 5 most viewed posts; - The second with the next 5 most viewed posts; - The third with the most recent posts. I don't want ...