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

learn more… | top users | synonyms (1)

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
3answers
43 views

When paginating a Page with the <!--nextpage--> tag, how can the 2nd and subsequent page styles be customised?

I want to apply different styles for a second page in single.php or posts. How can I do this? I have the following code in single.php to split the page in two parts: <!--nextpage--> If there ...
1
vote
0answers
23 views

How to load next and previous posts by Ajax

I'm trying to load next/prev posts by ajax, but somehow it gets broken - first "next" posts click is working fine - posts are loaded. But navigation get broken - no "prev" link loaded (even if I'm on ...
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
vote
3answers
850 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/...
0
votes
0answers
13 views

Wordpress is adding parameter to links in pagination loaded by ajax

To load posts without refreshing page I use this jQuery function: $.ajaxSetup({cache:false}); $("body").on("click", ".posts-navigation a", function(e){ pageurl = $(this).attr('href'); if(...
-2
votes
1answer
14 views

Adding pagination on template page wordpress

in the template page loop get posts from tag which name is raspee, post per page are 5. pagination show in the page but not working.. What is problem in my code?? Template-page <?php /* ...
0
votes
1answer
22 views

pagination on data fetched using SQL query

I am new with php and word press. I have a question that I am using a sql query in my posts to get data from my data base. Now the problem is that I have huge data on my post and I do not have idea ...
0
votes
1answer
511 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 ...
-1
votes
0answers
26 views

Wordpress Paginated Posts Getting Indexed By Google thus resulting in duplicate content

I am using plugin (WP PageNavi) plugin on my WordPress site. The problem I am facing here is that the paginated posts are also getting indexed even I am using yoast plugin to no index the subpages ...
1
vote
1answer
586 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 ...
2
votes
1answer
24 views

Content only on last page, if the page has pagination

I want to show a donate button after the post and on the LAST page of paginated posts. While my code totally works, it is probably not the best way to do that. Has anybody a more elegant solution? ...
0
votes
2answers
129 views
+100

Problem with older entries in homepage

When I click on "older entries" in my home page, it goes to a second link but it shows the same posts. I think I need to modify something in the index.php, this is the full code section that I think I ...
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
votes
0answers
13 views

Centre Portfolio Page

I can't figure out how to centre my portfolio page. My wordpress site is: kelly mulder Can any one help me in simple steps? Thanks :)
-2
votes
0answers
24 views

WooCommerce Pagination Issues

Found myself in a bit of a pickle over here. So, I tried to add pagination to one of my product category pages, taxonomy-product_cat-sale.php; by calling the function, woocommerce_pagination(); I ...
-1
votes
0answers
17 views

WooCommerce pagination issue [closed]

I added a pagination to one of my taxonomy-{taxonomy}-term.php pages by adding: <div><?php woocommerce_pagination(); ?></div> However, when I click to see the next page, I ...
-4
votes
1answer
33 views

Pagination Using ajax

I want to use Pagination using ajax for custom post taxonomy. Many of codes are tried by me but at the last I was failed. So,how can i use pagination using ajax without plugin? When i am clicking on ...
0
votes
0answers
25 views

Pagination reloads first page but has proper url

So I built a blog for someone but I'm having an issue with the homepage. The homepage is set to show 9 posts before the pagination turns on (set in WP admin settings), but when you click on page 2, 3 ...
12
votes
3answers
10k views

How to determine if I'm on the first page of pagination?

How do I determine if I'm on the very first page of pagination? I'm using WP_Pagenavi. I want to run a function only on the first page of the pagination. I checked the query_var 'paged', it's set to 0 ...
0
votes
1answer
20 views

How to ignore pagebreaks for RSS feed?

I use default page break tags in my posts and unfortunately RSS feeds do not show the full content without the page breaks. I am currently using WordPress 4.5.3. I have "For each article in a feed, ...
-4
votes
0answers
15 views

Older and newer pagination

i created a category.php to display latest posts of category 'comics', what i am trying to do is to show older and newer navigation to display older posts or newer posts in the same format. Can anyone ...
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 ...
0
votes
0answers
36 views

Permalinks not working when using a custom query for a custom post type

I'm using WP_query to get a list of items from a custom post type. The code I'm using for the query is this: <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $loop = new ...
2
votes
2answers
849 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= ...
-3
votes
0answers
19 views

Else if statement help

I'm struggling to figure out why my else statement is not working. What's happening is, everything in my else statement is happening during the if condition, and I don't seem to understand why. Any ...
1
vote
1answer
440 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,...
1
vote
1answer
25 views

paginate_links WP function

I am having a hard time understanding how exactly paginate_links works. I have read the documentation and used it a hundred times before, but I still do not get it fully. Especially 'base' attribute. ...
1
vote
0answers
13 views

stop pretty pagination rewrite site.com/cat/2 => site.com/cat?page=2

I need to be able to keep pretty urls, but I need to be able to send page as a URL arg. WordPress likes to do site.com/cat/2/ for page two, but I need site.com/cat?page=2 because we are moving some ...
-2
votes
1answer
130 views

Genesis custom archive template not showing pagination

I've created a few custom templates for my genesis theme and I cannot get the post navigation to work. I've spent many hours looking and trying code to no avail. Any help would be great. Here's my ...
0
votes
1answer
429 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 &...
-1
votes
1answer
420 views

How to change pagination base from slash to query form?

Can this function... function custom_pagination_base() { global $wp_rewrite; $wp_rewrite->pagination_base = 'p'; $wp_rewrite->flush_rules(); } add_action( 'init', 'custom_pagination_base' ); ....
0
votes
2answers
564 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 ...
-1
votes
0answers
21 views

Pagination partly broken on category slug template [duplicate]

I'm pulling my hair out why the pagination breaks on a category slug template. The code below shows the correct amounts of posts, shows the pagination, pagination also allows you to navigate to the ...
0
votes
1answer
705 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 ...
2
votes
2answers
567 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 ...
0
votes
1answer
614 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('...
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
0answers
11 views

Any ways to paginate wp_get_sites() results

I'm using wp_get_sites() to get a list of my multisite blogs, no issues at all, but the number of sites in my network is relatively large, about 1700 and growing, so I need a method to paginate those ...
-1
votes
1answer
36 views

Pagination comments

For some odd reason, I can't seem to make the pagination work for comments. $args = array( 'post_type' => 'products', 'status' => 'approve', ); // The Query $comments_query =...
0
votes
0answers
41 views

WordPress get pagination on wpdb get_results

This is my favorites page codes. How do I gee the numbered pagination of custom wpdb result? $query ="SELECT * FROM wp_posts as p, wp_postmeta as m WHERE p.ID = m....
0
votes
1answer
1k 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 ...
0
votes
2answers
915 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 '...
1
vote
3answers
45 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->...
0
votes
0answers
32 views

How to remove attribute pagination_base from wordpress url?

I have a new Wordpress and function: function category_permastruct(){ global $wp_rewrite; $wp_rewrite->pagination_base = 'x'; $wp_rewrite->extra_permastructs['category']['struct'] ...
-1
votes
0answers
26 views

Disable Pagination while limiting the number of Post to be displayed

I want to disable pagination and also limit the number of post to be displayed. I am using two query on same page with different arguments. First one displays all posts while the second one should ...
2
votes
2answers
856 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 ...
4
votes
5answers
10k 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
0
votes
0answers
19 views

How to Apply Category Filter to Pagination

I am using Wordpress 4.3 and WPML plugin. I used category filter on theme, front page of site only displays posts in "English" category. Category id is 62. Code is below: <?php $...
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 ...