Tagged Questions
0
votes
1answer
88 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
53 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
176 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
208 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
54 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
169 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
1answer
83 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
112 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
100 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
35 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
124 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
1answer
51 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 ...
0
votes
1answer
308 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
223 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
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
110 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
146 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 ...
0
votes
1answer
892 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
873 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
2k 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
119 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
444 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
839 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
87 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
1answer
149 views
Pagination for next page in faq category [closed]
i have a query
php query_posts( array ( 'category_name' => 'faq', 'posts_per_page' => 2 ) )
i wanted to add next and previous pages for this but not able to
thank you in advance
0
votes
2answers
451 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 ...
0
votes
2answers
561 views
Category pagination jumps back to Index page [closed]
I have a problem with the pagination on my category pages. I have researched this for a few days now without any luck finding any solutions online.
Here's the problem, when you select "older" or ...
1
vote
1answer
468 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
2k 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
796 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
726 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
160 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 ...