-1
votes
0answers
16 views

Pagination in Archives Page

I create a archive page who list files in certain category. <?php /* Template Name: Archives */ ?> <?php get_header(); ?> <div id="content"> <div ...
0
votes
0answers
33 views

How to add archives (with pagination) to page template?

So the site I'm building has a few different archives pages. For the newest one I'm building, I tried to copy the archive.php I've got: page-archives.php: <?php get_header(); ?> <section ...
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
1answer
242 views

Custom post type archive page pagination

I have set up an archive page for my custom post type reference, where I use a query to get all posts of type reference. This works, but when I try to paginate the result, it doesn't work. Right now, ...
0
votes
1answer
153 views

paging is not working properly on news archives page [duplicate]

I need paging on news archives page. Data is coming correctly if display all records on same page. But if i add paging code, then pagination values (such as 1,2,3,...16) coming correctly, but if i ...
2
votes
1answer
105 views

Display post links under month in paginated archive

I'd like to create an archive that lists posts under a month header. The months would just be plain text and the post titles, obviously, would link to the posts themselves! So: October 2013 Post ...
0
votes
1answer
116 views

Pagination issue in archive.php

I can´t get works fine the pagination in archives for wordpress when i want limite the posts by page , if i let pagination by default as 10 from backend i haven´t problems but if i use this no works ...
0
votes
1answer
45 views

One post on frontpage and an archive page

I'm developing a theme using the underscores starter theme and I'd like to have a frontpage with just the last post and pagination, and then a separate page, with the "archive" slug, to show all posts ...
0
votes
1answer
155 views

/tag/tag_name/page/2 gives a 404 error

I created my own template for list of entries for certain tag (tag.php), It will shows up 10 entries, and with Previous & Next link. <?php $paged = get_query_var('paged') ? ...
0
votes
1answer
106 views

Post archive pages bringing me to a 404 page

When I try to use next_posts_link() and previous_posts_link() in my archive posts page I got a 404 error page. I'm using this permalink setting /%category%/%postname% and working well for all pages ...
0
votes
1answer
268 views

Change permalink structure for pagination only

I am using following functions to display pagination on archive pages of my site. <?php previous_posts_link('< Previous', $loop->max_num_pages); ?> <?php next_posts_link('More >', ...
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
2answers
471 views

paginate function in archive for custom-post-type

I have a custom-post-type for events and use the normal archive.php template to list all previous events. The thing is that I use a custom query for my event-post-type inside archive.php like this … ...
1
vote
1answer
912 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
239 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
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
1answer
121 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
726 views

Pagination throws 404 error on custom taxonomy archive pages

I have created a custom taxonomy for a custom post type called "portfolio" like so: function jvs_portfolio_categories_init() { register_taxonomy( 'project-category', 'portfolio', ...
0
votes
2answers
422 views

Different layout on second page

My homepage has 1 featured post, followed by 4 posts stacked 2 on 2, like this: The featured post is only shown on the first page so the second page shows the older posts stacked 2 by 2 as above. ...
4
votes
1answer
108 views

Multiple Paginations on one Page

I have a page template which aggregates multiple CPT's in different areas of the page and displays the first post from each CPT. I'd like to add a separate pagination for each of them. Is it possible ...
1
vote
0answers
181 views

How to make pagination work not for a whole category but for a part of it? (WP_Query) [closed]

In my example you can see that i have to paginate posts from category 6 with meta_value='izhs' for meta_key='dachaizhs' Now it works like it paginates the whole category, and then exclude from each ...
0
votes
3answers
2k views

How to disable pagination (next/previous links) on post type archive?

How can I remove the next and previous links in a custom post type archive page, but only for that post type? I know I could wrap any function in if ( get_post_type($post) == 'myposttype' ) {} but I ...
2
votes
3answers
4k views

Custom post type pagination 404 fix?

Been trying to get this working all day but haven't had any luck... I have a custom post type called 'news' and an archive template (archive-news.php), here I'd like to show 2 posts with pagination, ...
4
votes
2answers
4k views

Custom Post Type Archive Page: Set Posts Per Page, Paginate

I have a custom post type called video. Would like to paginate its archive page, showing only 3 posts on each page. There is also a custom loop on the archive page that outputs all the video posts ...
3
votes
1answer
446 views

Custom Post Type Archives by Date (stored as meta value) WP3.1

I would like to implement date-based archive functionality (similar to original WP Archives widget functionality) for custom post type (CPT). What makes it difficult is the fact that I need to group ...
1
vote
1answer
1k views

Sorting archive pages with “pretty” URLs?

We want the users to re-order the posts on a page similar to pagination but I can't find anything anywhere! It would be great to create a link to a url similar to .../page/2/title/, title being the ...
0
votes
1answer
507 views

Paginated Archives or Loop by Month

I'm trying to figure out a way to do a loop / archive page with posts organized by month. So where each page displays post from 1 month. Then the previous and next links would be labeled February 2011 ...
1
vote
2answers
799 views

Pagination on taxonomy archive pages breaks

I've created archive pages for all my taxonomies (taxonomie-{taxonomy-name}.php) and this works fine. The slug of my taxonomies are the same as the slug of it's post-type. This makes it possible to ...
0
votes
1answer
184 views

Possible to create a paginated blogroll archive?

I'd like to have a separate blogroll archive whereby I can display them more or less in the same manner as posts/post types. IE: an archive which can be paginated and also with links to the separate ...
1
vote
2answers
4k views

Custom post type archive with pagination?

I have a custom post type called 'projects' (pastebin) and I have a page called Projects set up in my dashboard which is set to display the Projects template. (pastebin) The problem is when I use ...
2
votes
1answer
2k views

Pagination on archive.php page

I have an archive.php page with the following code: <?php // Start your custom WP_query $my_query = new WP_query(); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = ...