Tagged Questions

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

learn more… | top users | synonyms (1)

0
votes
1answer
11 views

Custom pagination generates title 404

I know it's a common problem, but I tried every solution appeared on this stackexchange. Every solution has failed (maybe because I'm still a newbie). I've this query on index.php page: if ( ...
0
votes
1answer
34 views

Problem when I try to insert pagination

All the website are building in Wordpress but I need a new section called "News", like as a blog. I try to show 2 post and insert the pagination in my website, but when I try to view the next page, ...
0
votes
0answers
13 views

how to place page navigation on a specific page at the end of posts from specific category in thesis theme

In single page of wordpress site I am trying to show 10 posts from a specific category. At the end of the list of 10 posts I want to show page navigation so user can navigate to old posts of this ...
1
vote
1answer
31 views

Paginated pages are showing correct content but pagination links are not

I am using a custom WP_Query to display posts on static front page. and generating numbered pagination links with paginate_links functions. This is the code I have... $latest_args = array( ...
0
votes
0answers
14 views

Custom post type slug rewrite blocks pagination - how to solve this?

I have run into a problem while doing what was given as a solution in the following thread: Remove Slug from Custom Post Type Namely, after all of this being done, my pagination no longer works. As ...
0
votes
0answers
12 views

Split a long form into multiple pages 2

this is a question as a followup to this discussion: Split a long form into multiple pages In essence: I have a long form that gets submitted. I need to change this to a multipage/multistep form over ...
0
votes
2answers
17 views

How to add pagination in between post and comments?

I am trying to add pagination in between post and comments. I used plugin Automatically Paginate Posts for that in which i can able to add pagination after comments and facebook plugin. Is it ...
0
votes
0answers
40 views

Help paginating custom loop

i'm trying to add some sort of "load more" button every X posts in this loop: <?php if(is_home()) : ?> <section class="pages clearfix"> <div ...
-3
votes
0answers
13 views

Problem with Pagination wp_bootstrap_pagination [on hold]

I have problem with wp_bootstrap_pagination, when the paging to two pages and then link to the homepage is bad. Bed example/page/1/'>1 example/page/2/'>2 Settings homepage example/'>1 ...
0
votes
0answers
25 views

Paginate User Query

I am trying to write a simple shortcode function that will return a list of users based on a given meta value. It functions fine, but I am trying to paginate the list. Here is my code: function ...
0
votes
1answer
47 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'); } ...
0
votes
0answers
6 views

Wp pagination link at front page with custom post url get rewritten

I am facing a typical problem. I am using a custom template as my front page and.And there I am displaying the custom posts with a custom pagination function and loop. Now the problem is that my loop ...
0
votes
2answers
69 views

Cant get paginations on single.php to work with my custom post types

I'm using custom post types and custom fields plugins for my custom post types. I have all other paginations working smoothly on my website except for my single.php. I have a custom post type of ...
0
votes
0answers
40 views

Some questions regarding post-types and pagination

I've built my own theme from scratch using the HTML5 Blank Framework My problems started when I added 3 differen post-types; Work, 50mm and Findings. I've hided the standard 'Posts' type, so that I ...
0
votes
0answers
16 views

Custom Gallery With Pagination/Navigation

With the help of someone I have created a custom gallery script, which picks all images with the slug x and presents them just fine, e.g. "people" (custom taxonomy). My problem is now, that I do not ...
0
votes
0answers
15 views

Using offset with custom Archive page

Situation: News page - Currently shows the latest 5 news items Archive page - Starts on post 6, I've setup pagination. For testing purposes I've got 20 posts numbered 1 - 20. <?php ...
0
votes
0answers
28 views

query and paginate multiple post types

I'm looking to query multiple post types and paginate them so the results are across multiple pages. The markup I have is as follows: <?php query_posts( array( 'posts_per_page' => 100, ...
1
vote
1answer
35 views

Redirect to page 2 after comment

I would like to have commenters going to the page 2 of a paginated post. My posts are separated by the <!--more--> tag so i have the www.site.com/post-title and www.site.com/post-title/2/. I ...
1
vote
0answers
36 views

How to use pagination with get_post_meta

I have a Products Page that i am using to add products using custom metaboxes this is the code for my page <div class="container products"> <div class="row"> <?php ...
0
votes
1answer
26 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
41 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
26 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
26 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
1answer
25 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
29 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
28 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
34 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
22 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
25 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
32 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
44 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
31 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
30 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
27 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
39 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
59 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
70 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
38 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
41 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
20 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
51 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
16 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
24 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
29 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
70 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
40 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
160 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
25 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
69 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. ...