Breaking up content into smaller-sized pages to be viewed individually
1
vote
2answers
282 views
Home page not obeying post per page setting on the first page only
I am working on a custom template for my office. I have a static front page and a static home page to display the blog posts. I am having a few minor issues and will have to create a few other ...
0
votes
1answer
220 views
Placing Ads after every 10th Post with Infinite Scroll
Hello at the moment what I have to do is load a couple of ads, some normal html and two are java script. I've tried the PHP method of this:
<?php $postnum++; if($postnum%10 == 0) { ?>
<div ...
1
vote
1answer
544 views
Custom permalink for search and pagination
@Chip Bennet helped me out in a previous question and posted his entire pagination function. This function works perfectly fine for me but I'd like to have custom permalinks in german.
/**
* ...
0
votes
2answers
1k views
paginate_links() don't properly work in search.php?
I'm using this in my search.php template …
<div class="pagination">
<?php echo get_pagination_links(); ?>
</div>
And this is the function …
function get_pagination_links() {
...
4
votes
1answer
260 views
Aggregate comments, with pagination
I want to build a page that would display all comments, regardless of which post they're attached to. I also want that page to be paginated, since it'll potentially have 10,000+ comments.
I'm not ...
0
votes
2answers
396 views
Custom Post Type Pagination on Single.php?
The same old problem and not sure if its even possible.
Pagination on a single.php custom post type, is it possible?
This works fine until i turn permalinks to /%postname%/ then it just reloads the ...
-2
votes
2answers
129 views
How to fix pagination for this query [closed]
I would like to paginate this query but I get no links for pagination at the end of the list of posts fetched. How can I fix it?
For further information, this query is run via a shortcode, so it ...
0
votes
2answers
270 views
Pagination only won't work in author template
I using custom $wp_query for most of my archive pages like, taxonomy,index,category and author page. Everything working fine, except one weird thing - the author template page pagination failed to ...
0
votes
2answers
327 views
Custom posts per page does not work with pagination
I have one page in my template where I would like to set a custom posts_per_page.
Here is the code I have used:
<?php
global $query_string;
query_posts($query_string . '&posts_per_page=4');
...
0
votes
1answer
743 views
Pagination for custom post types
Hi I have a custom post type and its posts are called via a shortcode on any other post or page.
I'd like to paginate this post type, say display 10 items. So the page in the URL remains the same, ...
0
votes
1answer
50 views
how to add pagination to the organize series plugin
I'm thinking of using the organize series plugin for posts featuring learning videos. As they are step1, step2 etc I'd rather use pagination instead of the next/previous links. Does anyone know how ...
2
votes
1answer
124 views
Pagination is somewhat working on frontpage, doesn't update when “prev” is clicked
I followed the very simple tutorial that's on this page: http://wp.tutsplus.com/tutorials/wordpress-pagination-a-primer/ (Scroll down to "A Better Solution") - He makes it seem so simple, and it works ...
2
votes
2answers
130 views
Find first image on paginated post for Pinterest
I've been looking for days, yet can't find a good answer. Perhaps the SE crowd can be of assistance. Any help is much appreciated.
I am using a custom-coded pinterest button included on posts that ...
0
votes
2answers
302 views
How to handle paging/pagination with a custom permalink?
I hope I can explain this properly:
I'm working on a project involving multiple post types and custom permalinks. I have a post type for TV/movie series/franchise and a separate post type for ...
0
votes
1answer
395 views
Removing duplicate values between two wordpress queries
I'm addressing a well known issue in Wordpress, in which I want to display "featured" posts, and under it the rest of the posts.
I have a $query1 which holds 2 featured posts, and my query_posts which ...
-1
votes
1answer
289 views
posts_nav_link() not working on index.php
I have a problem with the posts_nav_link() function on index.php. It works but it's not displaying the older posts. When someone clicks on the "next page" link the same posts from the fist page are ...
0
votes
1answer
109 views
Loop issues when creating custom query for media uploader
I'm working on a theme for a magazine publisher who routinely deals with a large number of images. I need them to be able to associate each image with a contributor (photographer, illustrator, artist, ...
1
vote
0answers
157 views
How to add pagination to buddyPress activity stream
How to add pagination with page numbers rather than load move links for buddyPress activity stream?
<div class="pagination">
<div class="pag-count"><?php ...
2
votes
1answer
477 views
Pagination gives 404 error
It's seems that this bug of WP never was solved by WP team.
I have custom post-type, my url structure is /%category%/%postname%/ And if i click on 2nd page i will get 404 error.
I tried everything i ...
0
votes
1answer
207 views
Custom posts not paginating on archive page and returning 404
I'm trying desperately to get the pagination on my custom post type archive page to work, but I keep getting a 404 error whenever I click on <?php next_posts_link('« Older Entries') ?> ...
0
votes
1answer
298 views
Pagination for category slug returns 404 when page >= 2
I have a custom type and the slug is:
'rewrite' => array('slug' => 'blog/%blogs_tax%'),
And after register_post_type() I have a function to rewrite the slug variable.
I works fine, but I ...
0
votes
1answer
133 views
Help With A Reverse Pagination Plugin
I saw this presentation about why pagination on the Internet is weird. https://speakerdeck.com/u/espylaub/p/pagination-on-the-internet-and-why-its-weird
It inspired me to try and make a WordPress ...
0
votes
1answer
423 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
281 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
232 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
153 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
59 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
222 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
62 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
70 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
37 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
102 views
Pagination in wp query with transient api
I have intergrated wordpress transient system with w3 total cache. Now i can`t to do pagination for this query.
<?php
$paged1 = ...
0
votes
1answer
115 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
174 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
0answers
265 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
104 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
161 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 ...
0
votes
1answer
1k 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
96 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
411 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
108 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
2answers
896 views
Custom Post Type Pagination 404 Error (if paged>=2)
I coded a WordPress theme. I added a Photo Gallery with custom post type. But if paged>=2, it gives 404 error. I'm gonna be mad. :( Help please. And sorry for my bad English. Add me on MSN. ...
0
votes
1answer
156 views
NextGEN Gallery: how to get URL to change when you click next <!--nextpage-->
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
0answers
89 views
Multiple WP_Query Pagination [closed]
<div id="content" class="page col-full">
<div id="main" class="col-left">
'listing',
...
0
votes
2answers
399 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
196 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
142 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
54 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.
0
votes
1answer
318 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
94 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 ...