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

learn more… | top users | synonyms (1)

0
votes
1answer
15 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
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
47 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 ...
-1
votes
0answers
21 views

Wordpress Pagination Display Issue

wondering if anyone could help me figure this out. On my site http://pastrybake.com/events/ you'll see 10 items being listed on each page. It's listed in multiples of 3s so there's one that stands ...
0
votes
1answer
20 views

Paginate Links function: Page 1 doesn't work

I got this: $pagination_args = array( 'base' => '%_%', 'format' => '?listpostspage=%#%', 'total' => $the_query->max_num_pages, 'current' ...
0
votes
1answer
35 views

Content not displaying on paginated page

So, it's taken me most of the day to get my query working (some days I feel like I don't know WP at all) and then I was getting a 404 error on paginated pages which I've since fixed but now I'm going ...
-1
votes
0answers
21 views

Pagination is stuck on first page [duplicate]

the page numbers and the url moves to the next or previous page but the content is the same... here is the code... any idea how to fix this? <?php $cat_id = ...
-1
votes
0answers
18 views

Wordpress pagination why is this not working? [duplicate]

I got the following code: <main id="main"> <?php // the query $args = array('posts_per_page' => 2 ); $the_query = new WP_Query( $args ); ...
0
votes
0answers
27 views

How can I add pagination to my loop? [duplicate]

That's my current loop: <main id="main"> <?php // the query $args = array('posts_per_page' => 10 ); $the_query = new WP_Query( $args ); ?> ...
1
vote
1answer
37 views

How can I add pagination and how can I change thumbnail size?

I'm currently learning wordpress development and I try to add pagination which displays a "older"/"newer post" link and the number of the current page at the bottom of the posts. I also try to change ...
1
vote
0answers
13 views

Pagination on custom post type is not working when clicking on next link [duplicate]

Trying to paginate custom post types of specific taxonomy but next link of pagination is not working and getting 404 page. any help Here is my code: <?php $paged = ...
0
votes
0answers
15 views

Where and how to import pagination?

Since ever I started with WordPress Theme Development, I've always had problems adding pagination to the bottom of the page... Now the questions is how to add pagination on a Blog Page to list etc 9 ...
-1
votes
0answers
30 views

Paginate get_terms()

Trying to paginate taxonomy image terms. It uses the the get_terms() function but it does not work. Here is my code: $args = array( 'taxonomy' => 'issues', 'term_args' => array( ...
0
votes
0answers
21 views

paginate author-list in php [duplicate]

I've made an author list page template using the author boxes of starbox plugin. It works well displaying all authors in the right order but it shows even authors with posts that are drafted and not ...
0
votes
1answer
24 views

Apply filters when loading post via ajax

Have been trying to solve this for couple of hours already. Here's the case: I'm making a plugin that separates the posts into pages using the <!--nextpage--> tag. It works fine but I want to ...
1
vote
0answers
27 views

How to load paginated post pages via ajax

Here's the case I got: I've setup post pagination for my website and everything works well. Except one thing - on every new page request all the resources are loaded again. This makes the website ...
0
votes
0answers
11 views

Disable wp_link_pages() function from theme through plugin [duplicate]

Spent couple of hours trying to fix the problem but I couldn't. Hope you guys will give me some insights. I'm writing a plugin to include the wp_link_pages() functionality. I'm adding it with the ...
0
votes
0answers
13 views

Customized Paging with [More Option] in Word Press

I want to implement paging with Read More option in such a way that first time when Page will load then 10 posts will reflect. Then clicking Read More on this page would again load next 10 posts (thus ...
0
votes
1answer
23 views

wp query error while paging the posts

i am new to wordpress and i am learning paging the posts but the code below isnt working and i cant find whats wrong. please help. the code: <?php $temp = $wp_query; $wp_query= null; $paged = ( ...
1
vote
1answer
51 views

Make a custom loop inside single.php with pagination

I want to create a custom loop inside a single-ediciones.php file and I need pagination (actually AJAX pagination). I need my normal loop because I need to show some data of the CPT "Ediciones" and I ...
-1
votes
0answers
13 views

Issue setting showposts using query_posts()

I have the following code block which works correctly, pagination also works correctly. However If I un-comment the query_posts call, my pagination breaks. Can anyone suggest a solution here? ...
1
vote
1answer
26 views

Page vs Custom Post Types Differences/Issues

I started noticing issues last week when 4.5 was released and mistakenly believed that update caused an issue. In reality, I just happened to notice it for the first time around then because last week ...
3
votes
1answer
70 views

Pagination adding page-numbers dots when using 'mid_size' => 0

Hey all, I'm attempting to do convert my current pagination: from : Prev 1 2 3 Next to: Page 1 of 2 --> My current code looks like this: if( ! function_exists( 'my_pagination' ) ) { ...
0
votes
0answers
18 views

paginate_links() always outputting as if posts_per_page were 10

I'm querying 20 posts per page: $posts_per_page = 20; $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; $args = array( 'posts_per_page' => $posts_per_page, 'paged' ...
0
votes
0answers
48 views

wordpress custom numeric pagination next / previous / last not showing

I'm using a custom Numeric WordPress Pagination on a page template using a wp-query, based on this tutorial : tutorial I have the numeric pagination working fine, and the page counter also. but the ...
0
votes
1answer
38 views

Adding a rewrite rule to page that has no fixed variables and pagination

Ive set up a page that users can search posts by tags, four categories, for example. By Room - By Style - By Colour - By Feature, each has an undefined number of sub categories, depending on how many ...
1
vote
0answers
23 views

How checked checkboxes remember on all pages in wp_list_table pagination?

I am working on a plugin in which I am using wp_list_table and displaying post and pages. I am facing a issue like I m using pagination and have almost 20 pages, I select a post or page (using ...
0
votes
0answers
19 views

How to add a pagination in custom post type maker plugin

I declared testimonial using a testimonial page template. I want a pagination in testimonial menu. <div class="testimonial"> <ul> <?php $args = array( "post_type" => ...
-2
votes
1answer
49 views

How to remove post duplicate when using query_posts('offset=1')

I used query_posts('offset=3') in index.php, while there exist a problem in pagination. In all page it show the same content of first page. How to solve this problem?
0
votes
0answers
12 views

Show network site permalink in current site

I have 2 sites. 1a(ID:2) and 1b(ID:3). Both 1a and 1b have the custom post type added to them via the functions file. The posts for the cpt are created on 1b. I have the posts from 1b displaying in ...
0
votes
0answers
15 views

'Post Page' Pagination Links pointing to 404 Pages [duplicate]

/blog works, showing the correct amount of posts and pagination links. The links however (e.g. /blog/page/2) are giving 404 errors. The page Blog is set as Posts page under Settings -> Reading. ...
0
votes
2answers
38 views

Show a page counter for pagination

I currently have simple pagination set up showing the text older and newer. If one of the text isn't needed it display an 'inactive' version of it so that the text doesn't disappear. <?php if( ...
0
votes
0answers
22 views

How do I change the link class in paginate_links() [duplicate]

I am trying to change the link classes output by paginate_links() from prev page-numbers and next page-numbers to previous page-numbers and next page-numbers to align with our framework. I'm not quite ...
0
votes
0answers
44 views

Problem with Custom Post type Category Listing Pagination

I am having a really hard time for the past three days getting the pagination in custom post type Category page working. I am using WP-Knowledgebase plugin which uses custom post type. The pagination ...
0
votes
1answer
55 views

Pagination for search results of custom post type [duplicate]

I'm trying to display numbered pagination for search results of a custom post type. Basically a search form allows users to search a custom post type by 2 different taxonomies and then the results are ...
0
votes
1answer
23 views

Pagination in WP_Query?

I am using a WP_Query to display posts from within a category and a custom term selected ("fitness visibility" inside category "articles") My code: <?php $catquery = new WP_Query( ...
0
votes
0answers
30 views

How can create pagination for specific category posts?

I'm trying to create pagination for specific category post in custom template, i create a function which is returning the all post pagination. I have overall 39 posts which are for different ...
1
vote
1answer
74 views

Custom Post Type Pagination Not Working On Archive Page

I've spent the last 3 hours trying to get pagination to show up on my custom post type archive page. I sort of understand that pagination only works with a default loop and once you modify the loop, ...
3
votes
1answer
79 views

Pagination gives 404 in template

I have a page in 'Pages' called 'News'. This page has a template containing my paged custom WP_Query. Here's the code: <?php $paged = 1; if (get_query_var('paged')) { $paged = ...
1
vote
0answers
67 views

Is it possible to to use custom post type types on a page with the same slug somehow?

That is ancient issue, but I still have no idea how to do that correctly. I want to to use custom post type posts on a page with a slug which is the same to that custom posts type rewrite slug. ...
0
votes
2answers
66 views

Pagination Not working on Home Page with 2 Query

I have two loops in home page (index.php) <?php $args = array( 'post_type' => 'post', 'posts_per_page' => 3, ); $another_query = new WP_Query($args); if( ...
-1
votes
1answer
39 views

Pagination 404 on my index.php

I'm trying for days how fix pagination on index of my wordpress site. Pagination work great on category and other archive but doesn't work on my index clicking on the page numbers have a 404. I found ...
0
votes
1answer
41 views

Pagination For Page Post Type

I try to use the Eric Meyer's pagination codes to make it working for page post type, but unable to figure out how to make it working. It's always show the first page. Here is the codes: <?php /* ...
0
votes
1answer
50 views

WooCommerce custom loop pagination on front page

I'm having custom page template that I use as front page of my theme. In that page i have section which lists woocommerce products using custom loop. I want to insert next posts pagination to that ...
0
votes
0answers
43 views

ajax load more for comments

i want load more function on comments section like this plugins http://comments.connekthq.com/example-post/. Example. 1st time 4 comments will show then load more button. after press load more again ...
-3
votes
1answer
35 views

What does this if-statement do?: if($pages=' ') {}

This is an excerpt from a tutorial on how to create pagination for an blogpost overview page. What does the first part if($pages == '' exactly do? Quote from tutorial: Now we know which page we ...
0
votes
0answers
58 views

WordPress multiple loops on home optimization

I am running an News Website based on WordPress with several plug-ins, including W3C Total Cache on my VPS (Nginx + PHP-FPM) server. The code of our home.php is: <!-- STICKY POSTS ...
0
votes
0answers
28 views

Pagination custom post type & custom taxonomy

I'm having a problem with my pagination for the category page of my custom taxonomy. This page displays custom post types on the first page of the category. But when I try to go to the second page, it ...
-1
votes
1answer
69 views

Pagination only working on index page not on a template page

I have a pagination that works perfectly fine on my homepage, the code goes: <div class="articles"> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ...
1
vote
1answer
51 views

Pagination Issue - /page/2 404

I have a custom post type with it's own archive page. I'm running a custom loop, displaying 1 result. I'm trying to paginate these results, but I'm having some strange issues that I can't seem to ...