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

learn more… | top users | synonyms (1)

0
votes
3answers
401 views

Skipping first 3 posts in wp query

Here's the query i have used. <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $wp_query = new WP_Query('order=asc&orderby=meta_value&meta_key=date&...
1
vote
1answer
122 views

Avoid repeated post on page 2 when excluding one on page 1

On the site we're developing, infinite scrolling is activated by Ajax/JavaScript. $('#inifiniteLoader').show('fast'); $.ajax({ url: "<?php bloginfo('wpurl') ?>/wp-admin/admin-ajax.php", ...
0
votes
1answer
121 views

WP_Query with Pagination and orderby meta_value_num showing duplicates

I have the following set of Arguments I'm running in a WP_Query. $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'tag' => $taxonomy, 'post_type' =...
0
votes
1answer
30 views

Paging + WP Query

On every archive page I'm either using WP-queries and no paging, or paging without a WP-query and a regular old "if(have_posts)" Now on one archive page I want to display more than 8 posts (8 is in ...
0
votes
1answer
69 views

Get Non-Paginated Index of Post in Paginated Query

I want to number "product" post types according to their position in their archive. Currently, I have tried to do this by creating a counter variable $count and incrementing it in the loop in my ...
0
votes
1answer
63 views

Pagination with custom field

I've got a little (big) problem. Is there a solution to show only posts that have not the same custom field value (from a specific custom field key) ? I have some post with a manual ID as custom ...
0
votes
1answer
93 views

How to show 1-5 of X Total Results

I know I'm doing something that's been done 1000's of times before in WordPress, but struggling to get the terms to find it on the Interwebs. I've got a custom category template page and have a while ...
0
votes
1answer
78 views

Admin is showing all posts on page 1

I have 900 media items on the site. For some reason the pagination has stopped working in a few sites and all the posts are being shown slowing down the site a lot. This happens on the Media library (/...
1
vote
0answers
117 views

Taxonomy page lead to 404 page on pagination

I read a lot of posts here with similar problems but nothing worked for me. I have a custom taxonomy (portfolio_category) for my custom post type. I created a taxonomy template (taxonomy-...
0
votes
0answers
87 views

How do I get pagination working with custom wp queries?

I've created a custom query within a Page Template: $args = array( 'posts_per_page' => 9, 'paged' => $paged ) ; $my_query = new WP_Query($args) I would like the user to be able to ...
0
votes
1answer
91 views

Show number of posts and number on current page (revisited)

I'd like to be able to display the number of posts per page and the total number of posts. This question (Show number of posts AND number on current page) was previously asked and a solution provided ...
1
vote
1answer
64 views

How to add a zero before numbers in WordPress Post Pagination?

I want my POST pagination to show the numbers from 1 to 9 like this: 01 02 03 04 05 06 07 08 09 10 11... and NOT like > 1, 2, 3, 4... Actualy i have this code: <?php wp_link_pages( array( 'before'...
0
votes
1answer
28 views

Pagination broken by naming conflict between CPT and Page

I have run into this issue before with pagination where your custom post type is called something like 'insights' and then the page that you create to display those custom posts in an archive is ...
3
votes
1answer
132 views

WordPress category & taxonomy loop with pagination

I have two taxonomies belonging to the same post type (posts). Adventure - belonging to the category taxonomy Adventure - belonging to the holiday-type taxonomy I want to run two queries: $args = ...
1
vote
1answer
241 views

paging in WP_Query on static page

I have a static page, and on that page I want to show a listing of blog posts. I want 12 posts per page (so I want the listing to be paginated). It's all working great, except for the pagination. ...
0
votes
1answer
41 views

WordPress not showing pagination links

In my WordPress Index.html I am pulling out the 3 latest posts by using <?php query_posts('posts_per_page=3') ?> <?php while(have_posts()) : the_post(); ?> //rest of the post related ...
1
vote
1answer
190 views

Secondary loop pagination on custom post type single post gets redirected to first page

I would like to output related posts on a custom post-type single page. Everything seems to be set up correctly. When I hover over my pagination links I see http://example.com/post-type-slug/post-slug/...
0
votes
0answers
258 views

Pagination of Custom Query inside a Shortcode on a Custom Post Type Page (singular)

I've done dozens if not hundreds of searches regarding my problem, but didn't find a solution anywhere. I really hope you can provide me a solution, that would be great! Thanks for reading. Heres ...
0
votes
0answers
18 views

Pagination stopped working suddenly. Looks like it's a permalink issue

We have this blog here: http://www.dermmedica.ca/about-us/articles/ And the link to "Next Page >" suddenly stopped working. It tries to take you to http://www.dermmedica.ca/about-us/articles/page/2/ ...
0
votes
0answers
112 views

Exclude password protected posts from pagination

Is there really no simple solution to excluding password protected posts from post pagination? I want to exclude the Quote post format, as well as password protected posts, and display custom HTML. ...
0
votes
1answer
132 views

why custom post archive gives always no more than 10 posts despite of paging settings?

I've got a strange problem. I'm programming a custom post archive page. I'm using wp conventions, so I've got a 'project' custom post type and an archive-project.php page, which is correctly showing ...
0
votes
0answers
106 views

Problem with pagination in custom loop on front page - no back link

I have certain problem: I have several queries on main page. When I call new WP_query on front Page (custom loop in main loop), make custom pagination, but it doest work in case if I want "Previous / ...
0
votes
2answers
33 views

rewrite_rule - working fine but broken for pagination

I'm having an issue with me rewrite rule works fine here: example.com/resources/ example.com/resources/articles/ but when i use pagination to the next page i get a 404 here: example.com//resources/...
0
votes
0answers
29 views

Creating paging within a page.php

I am trying to create a paging within the page.php my thema and is not showing up ! How do? I'm doing as follows: Loop: <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $...
0
votes
1answer
144 views

Rewriting get_next_posts_link() for custom loop

I'm trying it manipulate get_next_posts_link() for my custom loop. My author page has a custom loop using query string "?sort=selfie". I've registered view selfie as query_vars. http://localhost/...
0
votes
1answer
63 views

404 Error on pagination with WP Query

I have a website that is built almost entirely on the page.php template using Advanced custom fields flexible content field to determine what gets displayed. As part of that flexible content I have a ...
0
votes
0answers
114 views

custom query - offset to pagination

I'm trying ot add a custom query to my pagination - category page. here is the code how it look like: <?php /** * The template used for displaying Blog loop * * Use for index/archive/search. *...
0
votes
1answer
125 views

Custom Select Query pagination not working properly

I have Custom Select Query joining two tables and displaying events older than current date. Everything works fine until I try to paginate it. <?php global $wpdb; $date = date("Y-m-d");...
1
vote
0answers
70 views

Pagination with an array of post objects?

I am curious, I have the following code: foreach ($this->networkBlogs as $siteBlog) { switch_to_blog($siteBlog['blog_id']); foreach (get_posts() as $postObject) { ...
0
votes
0answers
77 views

Paginate Comments Via Ajax When Not On Parent Page

I have a page that I am using a custom query to pull in the comments from another post. The comments are successfully being rendered and formatted and the pagination links are showing up correctly as ...
0
votes
0answers
26 views

Sticky Posts cause problem with pagination

I'm using following function to display the pagination. This works otherwise fine but if there is any sticky post, then it ignores the number of posts on the first page. For example if it is set to ...
0
votes
0answers
25 views

Tag template pagination

I need to ask about how can i add pagination to my post tag template pages this is the code and link of the page http://ca.unitysofts.com/tag/fortnight-focus/ <?php get_header(); $...
1
vote
1answer
258 views

Adding anchor to paginate_links + Safari anchor bug

I don't quite understand how the rewriting of pagination_links() works. Here is my pagination function : $big = 999999999; $translated = __( 'Page ', 'epc' ); echo paginate_links( array( 'base' =...
0
votes
1answer
114 views

Pagination of custom post type leads to 404 error

This seems to be common issue, and there exist a lot of posts about this issue but none of them works for me. I have a custom post type (portfolio) with a page pagination. $paged = (get_query_var('...
0
votes
0answers
51 views

Pagination not working Search posts

if ( have_posts() ) { while ( have_posts() ) { the_post(); global $post; //loop here } if(function_exists('wp_pagenavi')) { wp_pagenavi(); } } I have the following code in function ...
0
votes
1answer
61 views

Pagination for custom post types - url rewriting

I'm working with custom post type, that I want to paginate, here's part of code, initializing custom post type: $args = array( 'labels' => $labels, 'public' ...
0
votes
2answers
160 views

Pagination not working for category posts

I am using WP-PageNavi pagination and because of certain reasons I have "Blog pages show at most" set to 100 and I can't reduce it. I have a total of 30 posts in a category. I want to display 10 ...
0
votes
2answers
385 views

WP Page Navi. 404 error when using posts per page parameter [duplicate]

I'm trying to fix an error with pagination of WP page Navi plugin. After I've added posts_per_page parameter to the query I'm getting 404 error when clicking on link page3,4 etc (there are 10 records ...
1
vote
3answers
583 views

Limit number of pages in pagination

I have more then 500 posts and I want to limit only 100 posts with pagination. So, 10 pages with 10 posts in each. Here is my code. $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1; $...
1
vote
1answer
239 views

Programmatically inserting page breaks

Is there a way to add a page break in WordPress programmatically? I'm trying to do this within a PHP loop that goes inside a post as a widget, it generates information that it gets from YELP through ...
0
votes
1answer
75 views

Custom Query & Rewritten URL Pagination 404

I have a custom search results page that has the url "/mysearch/location/SUBMITTED DATA/" which works perfectly fine. However I'm now trying to get my pagination working on that page so the URL will ...
0
votes
1answer
43 views

Need help on wordpress pagination script

Could you please check what is wrong in pagination script. Actually I have set 4 post limit and there around 8 posts in my blog. When click on 2 pagination, it won't move to next page. Please check ...
0
votes
1answer
2k views

Creating a custom category page with pagination

The past week I've been trying to figure it out on creating a custom category page with pagination. I've tried in so many ways but I cant get the pagination right. If anyone of you can help. What I ...
0
votes
1answer
165 views

Update Gallery Randomly in every hour with no duplicates?

I need to order by rand with no duplicates and update my galley in every hour on WordPress. Check the code bellow. This is what I want, ( PHP , MySQLi ): <?php include ("connect-sqli....
0
votes
1answer
91 views

Display NEXT and PREVIOUS pagination? [duplicate]

I need help on the pagination. I try to put the NEXT and PREVIOUS pagination that show the post in a same category, but I am not sure what happen that showing nothing. If you can help, much thanks! ...
0
votes
0answers
18 views

Wordpress Pagination problem When using if condition inside the loop [duplicate]

i have problem with Wordpress Custom Loop Pagination when i use if condition inside the loop some of posts doesn't have if value disappear but the Pagination counting that hidden post and have empty ...
0
votes
0answers
47 views

What is wrong with my code ? pagination does not show up

Everything works fine other than the pagination. I have even tried with my own pagination method which works fine on Index page and Archive page but not in this template <?php /** * Template Name:...
1
vote
1answer
147 views

How to test pagination? [closed]

I've been building a theme from scratch so writing everything from nothing and every place I go online which teaches me how to implement pagination are mostly showing ways to make the standard ...
0
votes
0answers
202 views

Pagination on page.php with wp_query and query_posts

I'm trying to get pagination to work on a custom page.php and this has been kicking my butt... here is my site Here is my code: <!-- Page Blog Body Start =========================================...
0
votes
1answer
170 views

Get pagination working for custom loops within page templates

I've got a custom loop for which I'd like pagination. The codex and examples I've found online indicate that I should get pagination as long as I pass the 'paged' query variable into the loop as the '...