Tagged Questions

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

learn more… | top users | synonyms (1)

0
votes
1answer
16 views

Pagination url for page template

I am creating a page template in WordPress to show all my posts. But i have a problem with pagination. I have a page url like below: http://localhost/sdd/video "video" is my page slug. And the ...
0
votes
0answers
28 views

Pagination - show exactly 3 posts per page

I'm already familiar with wordpress pagination but I was wondering if this is possible: Lets say I have 4 posts and I want to show only 3 posts per page. Is there a way to make the first page show ...
1
vote
1answer
17 views

How to display different number of posts

How do I display different number of posts on the home page and archive pages, the archive pages can use the value set in the admin, but I want a custom number of posts to be displayed on the home ...
0
votes
0answers
17 views

Redirect File Custom Post Pagination Problem

I've created a custom taxonomy type ( gallery-type ) for gallery post type! But, I didn't create for taxonomy-gallery-type.php in my theme folder, but I redirected to another php file from theme ...
0
votes
0answers
21 views

Pagination not working in search result [on hold]

Pagination is not working in search result. How to fix this? Functions.php function pagination($pages = '', $range = 5) { $morepages = ($range * 2)+1; global $paged; if(empty($paged)) $paged = 1; ...
0
votes
1answer
16 views

Custom post type archive pagination with HTML5Blank theme?

Can't get the pagination to work. Here's my archive-work.php: <?php get_header(); ?> <main role="main"> <!-- section --> <section> ...
0
votes
0answers
26 views

problem in taxonomy-{taxonomy}.php pagination

my custom taxonomy is: $image_labels = array( 'name' => _x( 'تصویر', 'Taxonomy General Name', 'text_domain' ), 'singular_name' => _x( 'تصویر', ...
0
votes
0answers
24 views

How can I remove page slug for all pagings?

I want to remove page slug for all pagings. For home page Old: www.x.com/page/4 New: www.x.com/4 For Category page Old: www.x.com/category1/page/4 New: www.x.com/category1/3 How can I ...
0
votes
0answers
10 views

Issue with pagination() get_pagenum_link() and language permalinks

I'm quite new to Wordpress and php. I managed to put up a site running on three languages with a plugin called "qTransalte" and a theme that had blog posts, slide posts, portfolio posts and highlight ...
0
votes
2answers
18 views

Pagination issue [duplicate]

I'm working with a custom post type / custom taxonomy combo and I can't seem to get pagination to work properly. I'm wanting to add an infinite scroll to the page, however I can't even get pagination ...
-1
votes
0answers
23 views

Pagination not working on WordPress custom post type

This is the code I did for listing a custom post type in WordPress but pagination doesn't work: <div id="talent-main"> <?php global $wp_query; $paged = ...
0
votes
1answer
18 views

Next post link on a bootstrap button

Seems extremely simple but it doesn't work. Here is my code: <a href="<?php next_post_link(); ?>"> <button class="btn btn-default pull-right"> <span class="glyphicon ...
0
votes
1answer
32 views

Wordpress custom search - pagination

I have written a custom wordpress search. The problem is that the pagination is not working. The pagination (1, 2 , 3 , 4 ,5 >>) appears on the web site, but when i press page 2 (or anything else) no ...
0
votes
1answer
24 views

Customizing Latest Post Pagination

I was able to successfully implement pagination for my "Latest Posts" page. But I want to separate the numbers after the current page and put a separator between them and the last page. Here is my ...
0
votes
0answers
10 views

Custom post type pagination [duplicate]

I'm trying to get pagination for a custom post type. I don't know what's wrong with the code but it doesn't work. This is what I have done so far: <?php $query = new WP_Query( ...
0
votes
2answers
21 views

How can I implement pagination on custom category page?

I have created a custom template page for every one of my categories. I am using a foreach loop in order to fetch the posts of this specific category in my page. if (is_page()) { ...
0
votes
0answers
22 views

Custom pagination function: limit number of pages

I would like to limit the number of pagination links because I fear that as more posts are added, I would end up having dozens of page links at the bottom of each category loop. Here is my code: // ...
0
votes
2answers
36 views

Pagination not working in secondary query

I'm trying to fix a theme which has the following setup: on each page the user can select to list posts instead of the page content. The problem is that the pagination doesn't work on this page even ...
0
votes
0answers
31 views

Using WP_List_Table and search_box(): How to Paginate the Found Search Results When Sending by Method «Post»?

I am using a custom WP_List_Table-Class in order to display a custom table with hotels in the dashboard. I can skip through the pages with the pagination on the top right as expected. The search form ...
0
votes
1answer
59 views

Custom post type archive not regarding 'posts_per_page' => -1

I have a custom post type archive where WP_Query is used to retrieve the posts. I want to disable pagination and show all posts on this archive, but the following query is not working: $args = array( ...
0
votes
1answer
30 views

Custom Post Type Pagination Problem in Admin Section

I have several custom post types, here is the creation of two of them: Projects add_action( 'init', 'register_cpt_project' ); function register_cpt_project() { $labels = array( 'name' => ...
0
votes
1answer
32 views

Pagination in custom query in a category page

In a category (I create category-123.php), I'd like to create a new custom query in order to show all the posts that have right parameters (custom fields). <?php $today = date("Ymd"); $paged = ...
0
votes
1answer
18 views

How can I get my pagination to recognize that it is on the first page?

So my blog index page which displays all blog posts with pagination is at /my-blog/ Page two is at /my-blog/2 When I'm on any page but the first (or if i use /1 for the first page) paginate_links() ...
1
vote
1answer
39 views

add_rewrite_rule - working fine but broken for pagination

My setup is as follows: Taxonomy called 'region' Terms in this taxonomy like 'scotland' Various post types that use this single taxonomy I have achieved functioning pretty permalinks of the ...
0
votes
0answers
10 views

Pagination Being Removed From URL with a Custom Loop

I'm having a little trouble with enabling pagination for one of my custom post types. Basically, I have a CPT of 'surgeons' which lists (surprisingly!) a surgeon - on their single page, I'm wanting ...
1
vote
0answers
22 views

changing comment-page-# to something like review-page-#

When you enable pagination for comments in wordpress the typical pagination page for a comment is "comment-page-1" "comment-page-2" etc. what I want is this to appear like "review-page-1" ...
0
votes
0answers
19 views

Search results pagination not working with custom query

The first page of search results for a custom query work fine but from page 2 it only shows the index template and says page not found. I've looked around for solutions but none have worked so far. ...
0
votes
1answer
62 views

List all posts by year with pagination

Right now I'm using the following code to display all posts by year: index.php <?php foreach(posts_by_year() as $year => $posts) : ?> <h2><?php echo $year; ?></h2> ...
1
vote
1answer
36 views

Why does pagination go to a blank page when navigating through home.php?

Learning how to build WordPress themes from scratch I have run into an issue when I try to code my home.php. The issue I run into is with the pagination. After the last page of posts instead of ...
2
votes
1answer
137 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
votes
1answer
23 views

Pagination showing same posts despite changing page

I know this is a common problem and there are answers available but I am using pre-existing code from a premium theme, which doesn't seem to work for me. In the blog.php page template, I have: ...
0
votes
1answer
51 views

Split a long form into multiple pages

I have a long form that gets submitted. I need to change this to a multipage/multistep form over several pages. I'll add a somewhat clean version of it, its custom made so there is no source. ...
-2
votes
1answer
45 views

Pagination not working

I am using the following code for pagination but its not working .Please help me out and tell that what is it that i am doing wrong <div class="isotope"> <?php $paged= ...
0
votes
0answers
39 views

WP_QUERY loop, offset in the arguments and the paginate_links - can these work together?

I have a page where the first 4 posts from category 7 are displayed with their own query and style. Then I have a small box were I want to display the rest of the posts from category 7 and to use a ...
0
votes
0answers
14 views

Pagination issue for pages with multiple categories

I want to display in a page posts from multiple categories, but it doesn't paginate. $extra_posts = new WP_Query( 'cat=5,7,24&posts_per_page=3&orderby=date' ); if ( ...
0
votes
0answers
9 views

Pagination on author page

I created a custom query inside author.php, and I would like to add pagination. The problem is that the result is 404 error everytime. $args = array( 'post_type' => 'wpost', 'author' => ...
0
votes
1answer
81 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 ...
-2
votes
1answer
109 views

Custom Post Type Pagination For Genesis Child Theme [closed]

Is there any possible to implement the pagination for custom post type in Genesis child theme, I'm using Genesis : 2.0.2 and Wordpress version is : 4.0. I've tried the following code in my template, ...
0
votes
1answer
62 views

Using pre_get_posts to filter out posts, pagination problem

I'm trying to figure out how to fix my pagination problem while filtering out posts on the fly. I have a dropdown box just above the category archive that allows a user to sort or filter out posts ...
0
votes
3answers
34 views

How to get all author posts outside of author templates

Currently, I'm trying to display all posts from an author(e.x admin) in a custom page with name that is completely different than these template file listed here. So inside this page, I'm using WP ...
1
vote
1answer
102 views

Pagination on a WP_query not showing navigation links

I'm having trouble adding pagination to a page. I'm using WP_query and would like to pull back 4 posts per page. The basic query seems to work OK but I must be missing something regarding pagination. ...
0
votes
0answers
21 views

Posts Admin Pagination Items Count

Does anyone know what the wordpress post admin item count is based off of? I'm seeing a mismatch between this number and what my Draft + Published posts total is. Please see screenshot attached. ...
0
votes
0answers
37 views

Infinite Pagination at Category Pages

I'm use popular wp_infinitepaginate functionfor my WP theme. function wp_infinitepaginate(){ $loopFile = $_POST['loop_file']; $paged = $_POST['page_no']; $posts_per_page ...
0
votes
0answers
63 views

Pagination not working Page2 Not Found

I'm newbie at php and wp. I'm using query_posts and custom post type. But doesn't work pagination link and says page 2 "Not Found". Searched from Google too many hours but not found any resolution. ...
0
votes
0answers
31 views

Paginate custom taxonomy category with wp_custom_pagination

I am trying to paginate taxonomy cities, with custom post type city, the categories that are displayed but failed to understand how can do it with the wp_custom_pagination function. function ...
3
votes
1answer
119 views

Combining two wordpress queries with pagination is not working

I am trying to combine two WordPress queries but it's not working as well as pagination. I want to display today's all posts sorted by comment count and after that I want to display all posts ...
0
votes
0answers
91 views

How to implement AJAX pagination for get_posts (CPT)?

I need to implement AJAX pagination: « Previous 1 2 3 ... 70 Last » for a CPT get_posts() loop: // main images query // all filters should be applied here $args = array( ...
1
vote
1answer
22 views

Move pagination numbers above plug-ins

I'm having the following problem: I want to move the generated page numbers from <!--nextpage--> to appear below the post body, above the plugins (WordPress Related Posts, WP Author Box Lite ...
0
votes
1answer
54 views

posts_nav_link on single post template

I have a post type called journal and on the single-journal.php template I am querying the rest of the journal posts like so: <?php query_posts( array( 'posts_per_page' => 4, ...
0
votes
1answer
69 views

Listing child terms of parent term

I'm using the following code to generate a list of only the child terms within my taxonomy. What I'd also like to do is display a list of the child terms for each parent category on a ...