0
votes
0answers
27 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
1answer
60 views

Wordpress Numeric Pagination with Query String [duplicate]

So I have a dynamic loop which is affected by a query sting in the URL.. For example I have 3 categories and when they click the category it just adds a query to the URL: <a ...
0
votes
1answer
34 views

date.php shows all posts. how to fix it?

I am using the following function for category.php. It's working fine. function cat_page_list(){ /* post : returns the post for category page */ $paged = (get_query_var('paged')) ? ...
0
votes
0answers
24 views

Pagination to take load off server [duplicate]

I have a Wordpress powered site that has >2000 posts. For some menu items I am requesting a category page that pulls in up to 200 posts in that category. It presents snippets of the post with an ...
0
votes
1answer
77 views

how to show posts on different pages if number of post per page is one

i have a category named "services". when "our services" is clicked control go to category.php file. in that i need to show all the posts in that service category. i can show all of them in a single ...
0
votes
0answers
16 views

Pagination custom category page template [duplicate]

I want to display product categories on separated pages. Should be 6 posts of 1 category on a page, and if we have more than 6 postings in this category, - so I want to display a pagination. I googled ...
0
votes
0answers
78 views

How to get category paginated URL from post ID?

I have a category template which uses WP next_posts_link and previous_posts_link functions. They return category paginated URLs in form: http://example.com/category-name/page/3/ Given a post ID, how ...
1
vote
0answers
172 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
votes
1answer
40 views

Link to page in category

I want to link to an archive page in WordPress, so like: <a href="<?php page( 2 ); ?>">link</a> so if a for example a category page is shown, this link needs to go to the second ...
0
votes
1answer
116 views

Pagination in category

Updated: I have 50 categories and i wants to show each 5 category on one page and next 5 on next page and next 5 on next page. and so on. with pagination. I have 50 categories in a WordPress site. I ...
0
votes
1answer
256 views

wordpress category.php query for featured news item, broken pagination and repeating posts

I am having a few issues with a site I am building, on the news page It has 1 featured post from the news category and then under that more news category posts, but missing out the featured news item ...
0
votes
1answer
107 views

Paginating a list of all posts collected by category titles

I'd be really grateful if anyone has any ideas about what might be wrong with this code or, alternatively, could suggest an entirely different way of achieving the same aims. I have a site (staged, ...
0
votes
1answer
601 views

Pagination on category.php and tag.php not working

i'm using a query-loop on my template pages like this: <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $wp_query = new WP_Query(); ...
0
votes
1answer
1k views

Paginate WordPress Category Pages

I am using the following query on my category.php template: <?php $paged = (get_query_var("paged")) ? get_query_var("paged") : 1; query_posts("posts_per_page=2&paged=".$paged); ?> ...
1
vote
0answers
72 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 ...
0
votes
1answer
497 views

Pagination breaks on child-categories, works fine on parent-category

I have two parent categories, and pagination is working fine on them - the paged url's show as: /parent-category-1/page/2/ ... etc /parent-page/parent-category-2/page/2/ ... etc However, when I go ...
0
votes
2answers
672 views

Pagination for a category

Hi I have page displaying 20 featured images and info of a specific category, I wish to able to have pagination so I can have multiple pages for the category. How do I do this? I cant seem to get it ...
1
vote
0answers
194 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 ...
0
votes
1answer
179 views

Using pagination with multiple loops causes it to break

I'm have two loops on my index page. One fetches the latest posts from the 'work' category and the other fetches the latest from the 'blog' category. (see below) I am also using a plugin called ...
0
votes
2answers
38 views

How to display numbered pages in a category

How in category.php to output a numbered list of links to pages like: 1 2 3 4 5 when the number of posts in the category exceeds the number of posts to display?
0
votes
1answer
165 views

How to do paging in the loop?

I used single.php for this code: <?php $categories = get_the_category($post->ID); if ($categories) { $category_ids = array(); foreach($categories as $individual_category) ...
0
votes
0answers
428 views

How to paginate get_categories?

I have been working on this code for about a week now. I have tried many things. My recent attempts today resulted in infinite loops that just made the browser keep posting the posts. This is what I ...
0
votes
1answer
58 views

Can I define multiple paginations on a single page?

I have a category page, which shows this category's subcategories. I want in each subcategory to show its first five articles. And then provide pagination for each subcategory in order to allow user ...
1
vote
1answer
509 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 ...
-2
votes
1answer
315 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
85 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
149 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
178 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
2answers
2k views

Show Previous/Next Posts navigation only inside the same category

Is it possible to force previous/next navigation to browse through the posts (back and forth) that are only inside the same category (and to exclude other categories)?
-1
votes
2answers
2k views

category.php + pagenavi + custom post types + /page/2 = 404 errors

I'm seriously going to go crazy if I dont figure this out. I have tried a million different things from googling,a nd I've been staring at this same problem for days now. Pagination for a custom ...
2
votes
2answers
6k views

Show posts of category in a page

I would like to be able to display all the posts in a certain category on a page so that all posts are on that one page and there is no pagination. If possible, I would also like to display a short ...
1
vote
1answer
140 views

Force category-slug.php to show page, even if it doesn't exist

I have a custom query in category-slug.php, which works fine unless the category doesn't have that number of pages itself. If the category only has 5 pages of posts, but the query I put in has 7, ...
0
votes
2answers
554 views

Custom Post Type, Two categories, Two columns with Pagination

I searching a lot to found a way solves that and no luck at least. Sorry for my unpulish english, I do my best explaining my issue. I have a Custom Post Type called 'Events' this have two categories ...
0
votes
3answers
1k views

Category pagination not working

My category page navigation doesn't seem to be showing up at all, what am I missing in my coding? <?php get_header(); ?> <div class="inner-page"> <div ...
0
votes
1answer
101 views

Wordpress custom post type post and category links 404

I've recently created several custom post types in a wordpress site, with the code below, they are generating links in the correct form e.g. root/category/id/postname but each link to the full post, ...
0
votes
2answers
567 views

Pagination for query_posts();

I know there have been many question like this and I've read them, but I still cant get it working... I have this query: query_posts(array('cat'=>3,'posts_per_page'=>5)); And I simply display ...
1
vote
1answer
543 views

3 Columns, 3 Categories, One Archive, and Pagination

I have three columns, each displaying 2 posts, each from different categories and each being a new query. These three columns are shown on thier parent category page, which is set to display 6 posts ...
0
votes
2answers
3k views

Why Pagination is not working on Category.php

There are two different category "Life Sciences" and "General Lab" and there are sub-categorical product on "Life Sciences". Now "General Lab" category want to fetch all the sub-category and products ...
1
vote
2answers
859 views

Broken category pagination

For some reason the below code works until I hit the third page and gives 404. Is it possible to fix it without using any plugins? <?php $temp = $wp_query; $wp_query = null; $wp_query ...
0
votes
1answer
1k views

Showing one post from each category, paged?

I want to display one post from each category per page. So the first page would contain the first post of cat A, the first post of cat B and the first post of cat C. The second page would contain the ...
1
vote
2answers
849 views

Page navigation within a category

I would like to know why my page navigation within a particular category doesn't work. The code seems correct but I never see the pagination links. <?php $my_query = new ...
0
votes
3answers
2k views

Having problems with paging

My category.php lists articles on the first page, and on the bottom I have a pager. When I click page 2, the index.php page is loaded and the url looks like this: http:// ...
0
votes
1answer
166 views

How can i call an article from each category and still paginate properly?

I want to have my front page, with three columns, each assigned to a different category. Ideally I would like to query to fetch one post, per column, per page where possible, leaving the column empty ...