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

learn more… | top users | synonyms (1)

1
vote
0answers
53 views

Custom Theme With Custom Loops

There are so many different questions on how to make pages show page numbers at the bottom but I can't seem to use the concepts explained in those to solve my own problem. I know some PHP and I've ...
1
vote
0answers
66 views

Custom post type archive pagination query issue

I'm using the following query to paginate a custom post type archive. The number of posts on the first page is 11 (due to the page layout) and 12 on the following pages. The problem is that while the ...
1
vote
0answers
19 views

Start WP Pagination From Number 1 in URL

I am using this code to paginate gallery post type images: $images = get_posts(array( 'post_type' => 'attachment', 'post_status' => 'inherit', 'post__in' => $image_ids, 'orderby' => ...
1
vote
0answers
171 views

multiple loops with pagination on the same page

I'm searching the web for this answer for three weeks now. Tried many things but nothing seems to work as how it should work. There must be a kind of trick what probably won't make sense to anybody ...
1
vote
0answers
44 views

make a pagination that show posts by date

i dont know if this is right question or not . but what i want to do is that , i need to create a pagination that show posts by date . i know the regular pagination is like this first-page - 22 - 23 ...
1
vote
0answers
249 views

Pagination with custom query, custom search form, single and pages, ajax and no plugins

I've read a lot of posts here about pagination with custom queries and tried the suggested answers (like this one). It seems however that my situation is a little more complex, and in the existing ...
1
vote
0answers
107 views

Using Ajax in the prev_posts_link and next_posts_link

I am using the add_filter() function in my functions.php file, to give my prev_posts_link and next_posts_link individual classes. The following code successfully loads the individual classes, ...
1
vote
0answers
209 views

Custom post and category template pagination problem

I have a category template which holds a query to custom post with a category. The strange thing is when the pagination loads it displays how many pages we have. But when I click on the second page of ...
1
vote
0answers
332 views

get_posts() with pagination problem

<ul class="list"> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'category' => '8', 'orderby' => 'post_date', ...
1
vote
0answers
62 views

Pagination customization

I am working to develop this type of pagination: I am taking values and displaying them on same page and my code snippet is below and couldn't make it why it is not working. <?php if ...
1
vote
0answers
147 views

Pagination w/Static Front Page

I'm trying to add pagination to my frontpage. It's currently set to Settings --> Reading --> Static Page --> Frontpage: home I'm using a custom template for the homepage. I have my ...
1
vote
0answers
82 views

How to make the link to the category for a post go to corresponding page number in archive?

For instance, I am at http://url.com/single-post and in the post there is a link to the category that navigates to http://url.com/category/page/3/ which is the corresponding archive page that contains ...
1
vote
0answers
215 views

Category archives with monthly pagination

How would I go about doing the following: I need to setup a prev/next type pagination where posts within a category archive are split into months. For example, if I navigate to the News category, I ...
1
vote
0answers
106 views

Adding range to wp_link_pages();

I have some very long posts, some have more than 50 pages() and when using wp_link_pages it give me 50 internal post links, clearly this isn't usable. How can I add a range to the wp_link_pages ...
1
vote
0answers
74 views

can these 3 queries be re-written as 1 query?

I am creating a Dentist directory site, and I have a taxonomy archive page which requires particular grouping and sorting (see below). So far I have only been able to achieve this using 3 WP_Querys ...
1
vote
0answers
194 views

Custom post type pagination - always return first page

I have custom post template archive-product.php for custom post type "product". In this template paging does not work: numbers are displayed all numbers links redirect to first page ...
1
vote
0answers
88 views

wordpress pagination, links appear but go nowhere when clicked

First let me say that, ive been digging for the past 2 hrs and the problem is that, although the links do appear on the bottom of the page where i place the function that calls the pagination. when ...
1
vote
0answers
86 views

category pagination got broken suddenly

i need some help here please! The pagination just stopped working suddenly with the default post type and default wp query, with plugin "wp-paginate" or even with next/prev arrows! It echo 404 error ...
1
vote
0answers
511 views

Pagination in a Shortcode. Get_next_posts_link not working but get_previous_posts_link works fine right next to it

I'm trying to output a custom post type archive using a shortcode. Everything works fine except for the get_next_posts_link part. The weird part is that it's right next to a get_previous_posts_link ...
0
votes
0answers
12 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 ...
0
votes
0answers
11 views

Paginate Comments Using WP_Comment_Query

I'm creating a page of all comments on my site. The below query is basically what I need except I want the option to paginate through all the comments instead of loading them all on one page. I've ...
0
votes
0answers
21 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
29 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
22 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
27 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
18 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
27 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
10 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
11 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
33 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
20 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
23 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
47 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
29 views

Multiple post types on a grid (every nth post must be a specific post type)

I have a grid where I display multiple posts types. I need to lay out the grid making sure that I have 2 posts from one post type, followed by 4 posts from another, flowing continously thereafter. ...
0
votes
0answers
22 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 php file incorporates. This pagination code works great on my current server running 5.2.X but when I moved it over to another server ...
0
votes
0answers
26 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
10 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
33 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
14 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
19 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
25 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
13 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
25 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
26 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
22 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
34 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
21 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
44 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
69 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
42 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 ...