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

learn more… | top users | synonyms (1)

1
vote
1answer
1k views

Infinite Scroll for both Index, Category and Archive

I want to use Infinite Scroll in my WP theme for both Index, Category and Archive. The official WP plug-in doesn't seem to support IS for Category and Archive so I figured I'd make a manual install, ...
2
votes
2answers
517 views

Pagination Issue: Custom Post Type In Index

I'm using a template, which uses Custom Post Type 'movies'. When I try to change the page I got 404 Not Found :( This is my index.php <div id="content"> <?php $temp = $wp_query; $page = ...
0
votes
2answers
498 views

Query multiple taxonomies with pagination

i'm query multiple taxonomies and have no problem with it but pagination is not working how to solve it, i try alot of suggestion but no success here is my code if ( get_query_var('paged') ) ...
1
vote
0answers
210 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 ...
0
votes
2answers
85 views

Paged homepage - requirements?

I've got the following loop in index.php file: $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $post_per_page = 30; $do_not_show_stickies = 1; $args=array( 'post_type' => ...
-2
votes
1answer
374 views

What Is My Fault With This WP_QUERY ? [ Pagination Problem ]

I did a photo gallery with custom post type. The pagination works correct but, if I click to a category, then it must show all photos of the category with pagination, but page 2 not found. You can ...
1
vote
0answers
99 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
94 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 ...
0
votes
1answer
53 views

Fourth page of custom post type archive page does not exist

I recently developed a custom post type for my company's blog, so that we could have a separate press area. In the archive-presse.php page I make a query, thus : $paged = (get_query_var('paged')) ? ...
0
votes
1answer
229 views

Pagination in WP query with transient API

I have integrated WordPress transient system with w3 total cache. Now I can`t to do pagination for this query. <?php $paged1 = (get_query_var('paged1')) ? ...
0
votes
1answer
164 views

Home page loop with pagination problem

I used a loop to display posts from specific categories, then add the code for WP_Paginate plugin under that loop ... below my posts I see pagination links from 1 --> 5 , however when I press page 2 ...
0
votes
1answer
561 views

Total number of posts in query (category/tag/author/search results/main page…)

I want to know the total number of posts from the category/tag/author/search result that I am actually seeing. Say for example I am in the main page. If my posts_per_page are 10 and my pagination ...
1
vote
1answer
930 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
1answer
147 views

Adding pagination to sub-wp_query within a singular post page

So my custom wordpress theme/site has a number of venues, e.g. "foo" which has a number of events and reviews. So a venue ends up with a URL like, http://www.example.local/places/my-place-name/ ...
0
votes
2answers
528 views

Wordpress loading index page instead of archive.php

I have index.php archive.php ... When I go to domain.com, it loads index.php, which is expected. But, when I go www.domain.com/page/2/, it loads the correct posts (as in, the posts in the second ...
2
votes
1answer
6k views

Shortcode Displaying Custom Post Types

I have a problem with a shortcode that I'm creating. I have 5-10 different custom post types, and rather than creating a template for every individual post type, Id rather use a normal page and ...
0
votes
3answers
247 views

wp_pagination not displaying at top of page

I've installed the wp_pagination plugin and it appears to be working fine at the bottom of the page, however, the pagination is not displaying at the top of the page. Below is the template code: ...
1
vote
2answers
1k views

Limited number of paging to 10 “pages: 1 … 10”

How to limit the function of paging down to stop at number 10? Eg: pages: 1 2 3 4 5 6 7 8 9 10. function kriesi_pagination($pages = '', $range = 2) { $showitems = ($range * 2)+1; global ...
0
votes
1answer
183 views

Conditional category query breaking?

In my loop.php (see below) I basically have a condition where if the page is not paginated (i.e. if the URL does not look something like this: example.com/page/2) then display 2 posts with a category ...
0
votes
1answer
2k views

Custom Post Type Pagination 404 Error (if paged>=2) [duplicate]

I coded a WordPress theme. I added a Photo Gallery with custom post type. But if paged>=2, it gives 404 error. If you open my web site link and click Tümünü Göster (Show All) button, you can test ...
-1
votes
0answers
384 views

NextGEN Gallery: how to get URL to change when you click next <!--nextpage--> [closed]

I want something that works like the Wordpress next page tag <!--nextpage-->. That is, when someone clicks the next URL would change to something like: www.test.com/galleries/goodimage1 ...
0
votes
2answers
1k views

Show different number of posts on second page of category

On the first page of a specific category, I want WordPress to show 4 posts per page. On the following pages, however, I'd like to have 6 posts per page. I tried using a conditional query (see below), ...
1
vote
1answer
542 views

remove_query_arg() on rewrite rule

I'm attempting to add a Back to Search Results link which in essence will simply link back to the starting search page - for example /?s=test. I've taken a look at the global query vars and do see ...
0
votes
1answer
240 views

Pagination between images (active/inactive)

I would like to add a check on the following piece of code that shows the arrows next/prev only if the next/prev image exists: <div class="gallery-image"> <p class="attachment"> ...
0
votes
1answer
173 views

Change pagination in editing posts [duplicate]

Possible Duplicate: display all posts in wordpress admin How do I increase the pagination limit in the edit posts admin section (edit.php)? Thank you.
1
vote
1answer
821 views

Pagination is not working wp_query custom fields values

All I want those post having post_type == profile And wpcf-gender == 1 (male). I tried this code $wp_query = new WP_Query( array( 'meta_key' => 'wpcf-gender', 'meta_value' => ...
0
votes
1answer
136 views

Custom Query Not Paginating

I have a site that uses a custom query to filter posts: <?php //Search Region table to retrieve array of country names $regionresult = mysql_query("SELECT * FROM gallery_regions WHERE ...
0
votes
1answer
203 views

Theme Option not Working Inside a Function

Earlier, I asked this question and received a code which should work. Unfortunately, this code is not working. I'm building a themes option panel and want users to be able to choose between ...
0
votes
1answer
636 views

paginate_links() on page (shortcode output)

On a standard WordPress page, I have a WP Query that runs through a post type I created. Along with that query, I am using paginate_links() to generate pagination. While the standard (no permalinks) ...
0
votes
1answer
416 views

Paginate the_content automatically? [duplicate]

Possible Duplicate: Automatically create pages in a post based on number of words Can Wordpress automatically paginate large amounts of content? A user wants to enter a document that is ...
5
votes
1answer
5k views

How to display pagination links for WP_User_Query?

I think I'm nearly there with this, but I can't get the pagination links to show for a directory of authors I'm creating. My code is below, but I don't know how to get the links to navigate between ...
0
votes
1answer
633 views

Replacing global wp_query

I have a site that uses a custom query to search for posts by country. The search results come back fine, but the pagination at the bottom reflects the total number of posts in the site, instead of ...
0
votes
1answer
678 views

paginate_links() with Custom Taxonomy

I have a custom taxonomy that is pulling in a list of posts assosciated with it. Previously - in the $posts_args array, I set the post_per_page option to -1 but realized pagination should be added to ...
5
votes
6answers
6k views

How can I make wp-pagenavi work on a custom query built upon a form submission? [closed]

I've also posted this on the wordpress support forums, for scribu's wp-pagenavi plugin: http://wordpress.org/support/topic/plugin-wp-pagenavi-custom-query-form-submit-part-2?replies=1 My situation: ...
7
votes
2answers
6k views

Change the “page” slug in pagination

Simple question. When pagination is activated, the URL changes to "site.com/page/2". For my site, this should be "site.com/paggetto/2". How can I change that rewrite rule? I also want to change ...
0
votes
1answer
211 views

How to get pagination working with “Pending” Posts

I'm working on a site that allows users to browse through pending posts/content on the front-end. However, I can't seem to get pagination working with those posts. I've got a custom query that ...
1
vote
1answer
155 views

Template hierarchy about pagination after front-page.php

Quick, simple. I have front-page.php working in Wordpress, and these loops over the main loop for my latest posts. The problem is the pagination template. When I get to site.com/page/2, it shows the ...
0
votes
1answer
2k views

wp_list_categories pagination

I was wondering if I can paginate wp_list_categories? I had a go with paginate_links but no luck. Or is there a good workaround? Thank you!! <?php $orderby = 'name'; $show_count = 0; ...
4
votes
1answer
1k views

next_posts_link not working for loop called with ajax

On my homepage I display a loop of posts that I allow to be replaced by ajax search results and other custom loops. Those results are returned in a template with a custom wp_query. The issue is ...
1
vote
1answer
672 views

Limit the number of pages created by the paging

Any way to limit the number of pages that are created automatically by paging? I would limit to five pages in all, authors, tags, categories ... Ex: "site.com/tag/news/page/5", ...
1
vote
1answer
1k views

Custom Post Type Pagination Doesn't Work in Wordpress 3.4

I have a problem when using Wordpress 3.4. My "Products" custom post type pagination doesn't work. Here is the code I use $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $loop = new ...
0
votes
1answer
209 views

Pagination broke after updateto Wordpress 3.4 [duplicate]

Possible Duplicate: Custom Post Type Pagination Doesn't Work in Wordpress 3.4 I updated to wordpress 3.4 and after so my pagination broke showing not found on page/2 etc. I am using ...
0
votes
1answer
198 views

Pagination/404 I believe wp is getting a page ahead of itself

My site is using the Faceted Search Widget upon reaching an archive page. The widget works fine provided you stay on the initial archive page, but if I try using it on the second page of the archive ...
0
votes
1answer
172 views

Need help getting this page nav working correctly [closed]

For some reason the page nav doesn't work correctly. It's styled odd on the home page, then if you go to a page you'll see it really looks odd. I can't figure out what's happening. If anyone has any ...
0
votes
1answer
74 views

Hide content after going to page 2 of archive, show content when back at first page

I want to hide the content below when the user uses pagination to move from the initial page of the archive (page 1). Is there some way of detecting whether or not the current page is page 1? Content ...
1
vote
2answers
996 views

wordpress post pagination with image buttons?

I'm trying to make a post pagination like this: button left image | 1 2 3 4 5 |button right image but I can't get it work. I've tried: <?php ...
1
vote
1answer
75 views

Custom Page Template for “Older Posts” Pages

My home page feed has a variety of items including a featured post and other features that I'd only like present on the home feed. When a user clicks on pagination to load older posts, I'd like to ...
0
votes
2answers
449 views

How can I use the WordPress Loop and Pagination in multiple instances but different scenarios throughout my site?

I am using the Starker Theme as a foundation to build my custom WordPress theme. The Starker Theme comes with a loop.php file for setting up the main loop. I decided to use the loop.php file to ...
0
votes
1answer
98 views

Using a page (Blog template) for home page blog posts is problematic?

I bought a few themes that by default don't have blog posts on home page as normal WordPress themes such as Twenty Eleven has. I had to create a page of Blog template and then use it for home page in ...
1
vote
3answers
3k views

Custom Post Types, Page Templates and Pagination. Why do I get a 404 Error?

I have spent hours today on a maddening issue I was having with displaying a custom post type. Everything displayed beautifully, except the pagination simply would not work properly. I have a ...