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

learn more… | top users | synonyms (1)

0
votes
0answers
52 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
15 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
11 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
0answers
33 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
58 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
133 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
46 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 ...
0
votes
0answers
103 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( ...
0
votes
0answers
44 views

Yearly category archive pagination broken

I found code that will show posts by category and year, but then the pagination doesn’t work. The default WP widget “Category Archive" also has broken pagination and, in any case, I need to add the ...
0
votes
0answers
39 views

Horizontally paginate through sets of blog posts?

I have my posts set up like this: I would like users to scroll through the posts using the left and right arrows. So when users click on the right arrow, for example, the next six posts would slide ...
0
votes
0answers
42 views

Newer/older posts links don't show up

I am working in a twentyten childtheme and the the newer/older links don't show up on my index page, under the listing of ten blog posts. What bothers me is that even when I add a <!--comment--> ...
0
votes
0answers
53 views

WP_Query, How to identify if the offset reached the max posts count

I'm doing a custom WP_query to populate my post list via AJAX with some filters. I load additional posts once the user click the 'Load More' button, this fires the $.ajax and on success adds the new ...
0
votes
0answers
36 views

Pagination for categories with a different amount of posts on first page not appearing on 2nd page

I wish to show a different number of posts (4) on the first page of a category page, while showing a different number of posts on the following pages (16 posts on each). I have an extra condition for ...
0
votes
0answers
152 views

Looping Next/Prev Link for custom post type

Strange error with custom post type next/prev. Trying to ge tthe first post if youre on the last one and the last post if youre on the first one. The posts per page is set to 100 but it seems to only ...
0
votes
0answers
61 views

Broken pagination on custom search query

I've been searching through various questions and answers for some time now, but can't figure it out. I should state that I'm still a novice when it comes to WP coding. The thing is, I'm using a ...
0
votes
0answers
44 views

3 Column Loop with Pagination

I tried to run a loop and split post in 3 columns and then added pagination using Wp PageNavi wordpress plugin. It was working fine from where i copied this code but it seems to be not working for me. ...
0
votes
0answers
59 views

Comments pagination and WP_QUERY

I have a list of posts using wp_query On each post theres a list of comments What Im trying to do is to limit the number of comments to 2 and display a link for the next page of comments which I'm ...
0
votes
0answers
33 views

Find relative post number in single post page

My problem: I need to find the relative post number (e.g 3rd of 10 posts) within a category. I can get the total amount of posts (10), like so: $category = get_the_category(); ...
0
votes
0answers
53 views

404 on author page using custom permalinks and pagination

I have some author pages in my theme (using a modified version of the UDesign theme and the Pagenavi plugin. Pagination works on the blog, but not on the author pages. I'm getting 404's on the author ...
0
votes
0answers
70 views

Pagination not working in some author pages

I have an author archive page to display authors' posts. In some of the authors the pagination works, but in some cases it doesn't. Where is the problem? Here is my code: <?php $paged = ...
0
votes
0answers
82 views

My pagination.class.php file doesn't work in PHP 5.3.10

I have some php code + a file called pagination.class.php, which my kath.php file incorporates. This pagination code works great on my current server running PHP 5.2.x, but when I moved it over to ...
0
votes
0answers
51 views

Disable posts pagination (wp_link_pages) on mobile devices

How to disable Wordpress posts pagination on mobile devices? Right now I am using the code in functions.php: function pagination_after_post($content) { if( is_single()) { $content .= ...
0
votes
0answers
29 views

Connections plugin pagination

I am currently using the Connections plugin for WP. It supports no pagination for the directory results though. I've tried putting efforts on the code to make pagination work but I found no success ...
0
votes
0answers
78 views

Using next and previous links with a custom query

I'd like to display the next and previous page link when using a custom query. The query list pages with the same parent page (projects). The next and previous page link must link to the next and ...
0
votes
0answers
31 views

Posts Duplicating due to Pagination and Custom Query

I have a custom meta field named “price” and I would like my main query to order the posts from highest to lowest price. Currently I have it setup like this: <?php $paged = ...
0
votes
0answers
28 views

pagination broken because wordpress is adding index.html

in my blog, for some reason the pagination links look like this: http://www.example.com/blog/page/2/index.html and that link does not work. However this link works: ...
0
votes
0answers
39 views

URL rewriting with custom pagination

I'm using a custom query to display the results with the pagination and rewrite the URLs. The following function works fine and displays the URLs in following pattern: ...
0
votes
0answers
17 views

Pull next article on last page of gallery pagination

I am using ByREV Gallery Pagination Plugin found here: https://wordpress.org/plugins/byrev-gallery-pagination-for-wordpress/ I am attempting to redirect the user once they reach the last page of ...
0
votes
0answers
29 views

Excluding certain post status's from pagination

If a user is logged in and browsing through archives, the current pagination function factors in posts that aren't yet published which can result in page numbers leading to 404 pages. How can I get ...
0
votes
0answers
36 views

Pagination for two different post types on a same (category) page

First of all, I have searched the web as well as this site to get an answer, but couldn't find any. In theory, this would do what I want to do: How to fix pagination for custom loops? but I couldn't ...
0
votes
0answers
39 views

A pagination-sort-of-thing on single.php view for the custom post type

First, a quick demonstration of what I need to achieve: It would work similarly to <?php previous_post(); ?> and <?php next_post(); ?>, but also include an actual "reel" indexing all ...
0
votes
0answers
59 views

WP_Query to get all posts with specified category in priority

Now I have a query to get all posts in the specific category featured. $today = date('Y-m-d'); $args = array( 'post_type' => 'event', 'event-categories' => 'featured', ...
0
votes
0answers
22 views

Transfering static site to wordpress and retaining category by month paginations

Firstly apologies for the long post. I have a project in the works to transfer a static html new site into a cms. I've chosen wordpress, because it seems to be the easiest to maintain and manage from ...
0
votes
0answers
55 views

Pagination on static Posts page

I'm having an issue with pagination on the static blog page. Under Settings > Reading, "Posts page" is set to a static page. "Blog pages show at most" is set to 10 posts. The first ten posts show up ...
0
votes
0answers
90 views

WordPress multisite custom query pagination issue

I have a site with a query to grab by a particular category. The current site is also running a multisite system. Before upgrading to 3.9 this query worked fine, but after updating to wp 3.9 & ...
0
votes
0answers
49 views

Wordpress posts pagination with rand and meta_value

I have posts that have a meta_key (is_premium) that owns "Yes" or "No" values. I want to show pagination with random post but premium first. It's from several days i'm looking around and read really ...
0
votes
0answers
16 views

Post Pagination Titles

what I'm trying to do is set a different title for each page of the post pagination. So for example example.com/post-title/ title in the header is "Post Title" example.com/post-title/2/ title in ...
0
votes
0answers
181 views

Pagination with WP_Query not working

I have a custom page template on my site, with a WP_Query pulling in a list of posts. I'd like to implement pagination but just can't seem to get it right. Here's the code I'm using blelow, which ...
0
votes
0answers
28 views

wordpress paginate, link to the right page

I have posts that I paginate, instead of showing them on their single post page I would like to show them on the archive page. I've built my own archive-page with custom functions. I just added ...
0
votes
0answers
94 views

Pagination working locally but not on live site

I have a loop on my single.php page like this:- <?php if (have_posts()) : ?> <?php $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1; ?> <?php $this_post = ...
0
votes
0answers
43 views

How to create pagination that links to Posts directly and not a numbered page?

I have site that displays 1 post per page, I would like to paginate this automatically with numbers underneath the post. Default function for pagination is to link to say ?page=2. I searched but ...
0
votes
0answers
105 views

Wordpress pagination /page/2 part added at the end of url

The pagination works, but not the default URL of the 'next' button. It ads the /page/2/ part at the end of my url where a $_GET is stored. Is there a way I can move the /page/2/ part to the end of my ...
0
votes
0answers
153 views

Pagination in custom loop for custom post type throwing 404 error

I searched around for similar problems but it did not worked for me, im a total beginner with WordPress. I made a custom query but the pagination throwing me 404 error Query $paged = ...
0
votes
0answers
54 views

Strange behavior with pagination on custom query

I already have a knot in my brain and searched here and on the web, but I can't find any solution. I build a Custom Post Type with some Taxonomies and create a page template to get some of the posts ...
0
votes
0answers
38 views

How to use pagination in category list?

Use pagination in function ? function get_posts_for_cat_ordered( $cats = array(), $posts_per_cat = 2 ) { if ( empty($cats) ) return false; $q = new WP_Query( array('posts_per_page' => ...
0
votes
0answers
188 views

Pagination not working on template page

I have the following code, but it is not working. if ( get_query_var('paged') ) { $paged = get_query_var('paged'); } elseif ( get_query_var('page') ) { $paged = ...
0
votes
0answers
40 views

Search page pagination - unable to fix

I apologize for posting this as I know it's a common question but I haven't been able to crack it on my own. My search page works just fine other than the pagination (when you click on a successive ...
0
votes
0answers
113 views

Using fallback language with polylang and using pagination in different language leads to page not found

Following scenario I am using this in my archive.php to fall back to german in case there are no translations: if (is_category()) { $categories = get_the_category(); ...
0
votes
0answers
58 views

How to paginate categories and sub categories?

Here is my code so far: <?php if (isset($wp_query) && $wp_query->max_num_pages > 1) : ?> <div class="row"> <div class="col-md-12"> ...
0
votes
0answers
82 views

previous_posts_link returns null when querying custom post type

I have created a custom post type named lesson, and I want to display all lessons, so I created a custom page named lesson.php, inside, I added a query to look for all the posts which type are lesson. ...