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

learn more… | top users | synonyms (1)

0
votes
0answers
244 views

404 - Category pagination for custom post type

--Edit I've managed to narrow it down that the paged variable is not working properly here, (get_query_var('paged')) ? get_query_var('paged') : 1; is always returning 0 although maybe it is due to ...
0
votes
3answers
293 views

Pagination broken when merging search results with additional WP_Query

On the search results page (search.php) I would like to perform an additional WP_Query to keep a specific order of search result types e.g. search results from authors should always be shown before ...
0
votes
1answer
77 views

Pagination works in custom query loop but it doesn't work in shortcode

It is possible for shortcodes? Paggination works fine on custom template page.But I want to display the posts with shortcodes. Posts are displayed well.But pagination works incorrectly.The same posts ...
0
votes
0answers
35 views

Using pagination with specific custom post type [duplicate]

Alright.. I've been looking alot on the internet in search of a solution for this.. so far i found nothing that could explain me how to solve it.. When i click on Page suivant from the navigation ...
4
votes
1answer
2k views

How to fix pagination for custom loops?

I have added a custom/secondary query to a template file/custom page template; how can I make WordPress use my custom query for pagination, instead of using the main query loop's pagination? Addendum ...
0
votes
2answers
159 views

pagenavi shows alot of pages calculated from all posts in the site with query_posts

I need to excute posts from 2 seprated keywords using s=keyword with get_posts, but only searching in titles. I found this answer. I created a custom template to use it in single page. Then I used a ...
1
vote
1answer
120 views

pagenavi with merged wp_query [duplicate]

i need to use wp_query to excute posts from 2 separated keywords using s=keyword so i have found this answer & it is very very useful Combining queries with different arguments per post type ...
1
vote
1answer
233 views

How to create Alphabetic pagination with range?

Currently, I am trying to create an alphabetic pagination with ranges for a custom post type on a custom field using this code from kathy is awesome. I have gotten everything working except for the ...
0
votes
2answers
73 views

Pagination With Custom WP Query not functioning

I have the following custom query and im attempting to paginate the links of previous archive posts using the example from the wordpress codex ...
1
vote
1answer
179 views

Tabbed content with Pagination

I've stumble across an issue on a site Im building. I have tabbed content each holding a category for price ranges in seprate loops. The tabs work great filtering the categories, however some of the ...
-2
votes
1answer
75 views

Loading post like facebook on scrool to bottom [duplicate]

I have a page to show my product, now i want to load further posts using "infinite scroll".
2
votes
1answer
107 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
25 views

Why only one post (and no pagination) on this variation of the loop?

This is my WP loop: // fetch latest news stories $paged = (get_query_var('page')) ? get_query_var('page') : 1; $posts = get_posts(array( 'numberposts' => 3, 'paged' => $paged, )); // ...
0
votes
1answer
77 views

Fix Pagination Directory on a page set as Front Page/Main Page [duplicate]

I have a page named "calientes" with a complex loop that's working perfectly. This page is located at domain.com/calientes/. Now I need to use this page as the home page, so I went to "Settings -> ...
0
votes
1answer
130 views

Problem: ( kriesi ) pagination doesn't work in homepage [duplicate]

When I set this template as homepage, pagination doesn't work. I see the buttons, but when I click the button for page 2, nothing happens, doesn't go on page 2, it still remain in page 1. What is ...
0
votes
1answer
96 views

Wp Pagenavi how to display all results

I'm using Wp Pagenavi Plugin. I'm trying to display all results from a button. I'm using this: $out .= '<form action="" id="showall" method="POST" name="results"> <input type="hidden" ...
0
votes
1answer
35 views

How to get the number of pages when paginating comments?

I want to display threaded comments via ajax using pagination. If I use this code to display comments for page 1 how can I know if there is something more to be displayed on page 2? If there is ...
0
votes
0answers
12 views

Pagination not shown at index page but displayed at other pages [duplicate]

Somehow my pagination is not shown on the index page of a customised page template. But it does show the previous / next posts links on the other pages like mypage/paged/2/ This is the code that I'm ...
0
votes
1answer
47 views

Pagination URL order

I'm trying to create a filter by taxonomy for a custom post type. When I use the filter option it creates this URL which doesn't work: /projecten-test/?branche=industrie/page/2/. But when I enter ...
0
votes
0answers
10 views

Pagination on custom template doesn't work [duplicate]

I have a custom template for my blog homepage and for some reason the pagination isn't working. I am using next_posts_link and previous_posts_link for the pagination. The main blog page is located at ...
0
votes
0answers
16 views

WordPress and pagination [duplicate]

Let me paste code first: <?php $category = get_the_category(); $category_id = get_cat_id( single_cat_title("",false) ); $args = array( 'posts_per_page' => 5, 'post_type' => ...
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 ...
0
votes
1answer
102 views

Display more than 10 posts on author.php file

it seems that there are only 10 posts being displayed on author.php file. The theme I'm using have just this in author.php file:- <?php while ( have_posts() ) : the_post(); ?> <?php ...
-1
votes
1answer
38 views

Wordpress getting problem with pagination [duplicate]

I am trying to display pagination from archive.php with my custom post type news but when I click to Next page I am getting 404 page My Custom Post Type Code: function codex_custom_init() { ...
0
votes
1answer
20 views

Query Not working as expected

So I wrote a rather - unattractive function - a while ago and I was re-factoring some code and I realized my query function doesn't work ... I recently made a post about how my tansient posts were ...
0
votes
0answers
12 views

Older/Newer post links display the same posts [duplicate]

I am trying to code my loop so that there are Older posts and Newer posts links below the loop, currently I am using the wp-pagenavi plugin for this but when I click the "previous posts" link, it ...
0
votes
1answer
34 views

Show content based on page number

I have a post that I would like to split in to 5 pages and depending on which page the user is on the image at the top of the page needs to change. So page 1 of the Post displays the image in custom ...
0
votes
0answers
216 views

WordPress Custom Post Type Pagination for Taxonomy giving 404

I'm developing a custom post type-based site on WordPress and have run into trouble on pagination - but only specific pagination. The custom post type has two taxonomies, pagination for these ...
0
votes
1answer
269 views

Pagination for Custom Taxonomy Page [duplicate]

I'm having an issue getting my custom taxonomy page to paginate correctly. I looked through other examples posted on this forum, but I could not get my second page to not return a 404 error page. ...
0
votes
0answers
42 views

Pagination on Custom Gallery Template : get_children() and foreach loop [duplicate]

With the help of this WordPress.org Support Thread, I made a Page Template for a custom designed photo gallery of 4 columns with the following codes in a TwentyThirteen theme: <?php /* Template ...
0
votes
1answer
69 views

Trouble with pagination

So, been reading tons of posts on here and int he Codex but just not having any luck. I have a custom post type called Work. On my portfolio page I have "posts_per_page" set to 12. In total in this ...
0
votes
1answer
96 views

WP_query paged pagination with excluded category still counts it

So im making a custom WP_query loop with paged navigation. I want to show 4 posts per page in a specific category. This is working fine, except the next_post_link() seems to still count the excluded ...
0
votes
0answers
331 views

Wordpress Load more posts by ajax not working

i need to get the wordpress posts while click the load more button or something else, so i have followed the tutorial by Here <?php /* Template Name: Additional Posts */ $offset = ...
0
votes
1answer
84 views

how to limit query_post to first page?

I have a custom post type called listings with different taxanomies, I am using this query to display first only my post that have the type taxonomy featured. This is the code that does that : ...
1
vote
0answers
87 views

Using Ajax in the prev_posts_link and next_posts_link

I am using the add_filter() function in my functions.php file, to give my prev_posts_link and next_posts_link individual classes. The following code successfully loads the individual classes, ...
0
votes
0answers
58 views

Custom Post Types and Rewrites

I have a custom post type registered using Custom Post Types UI plug-in. It has a rewrite rule: rewrite' => array('slug' => 'apps/iphone-ipad', 'with_front' => '1'), I am using a custom ...
0
votes
1answer
173 views

Post pagination wp-pagenavi

i'm having some problem with page pagination using wp-pagenavi, i'm using this query: $myposts = query_posts( array( 'showposts' => 10, 'paged' => get_query_var('paged') ) );; i would that ...
0
votes
2answers
113 views

How to add pagination to wp_query [duplicate]

I have a custom loop and I'm trying to break it up into several pages but I'm not getting the next and previous links to show. Here is my code: <?php if ( ...
-2
votes
1answer
82 views

Modifying previous_posts link to use AJAX

I am editing the wp-includes/link-template.php file in Wordpress, and would like to use Ajax to load posts into my ID of #box-right. I am aware that there are many plugins for this usage but I am ...
0
votes
1answer
28 views

Can't get pagination to work with this WP_Query loop

I know pagination isn't as straight forward with WP_Query as it is with other loop types but normally I don't have a problem with it. I'm editing a site for a client and this is their current loop; ...
1
vote
1answer
446 views

404 not found error on pagination

Normal post (not custom post type), I did everything I should do, but 404 not found error in pagination. Here is my code $category_id = get_query_var('cat'); //Using this to get category ID to meet ...
0
votes
1answer
50 views

How to devide post into more than one page using <!––nextpage––>?

I want to divide a post into multiple pages using <!--nextpage-->. Please guide me through this and also I want some customization in that. You can check here what type of pagination I want to ...
0
votes
1answer
116 views

2nd page displaying the exact same posts as my first page (minus the very first post)

Site Links: http://manofmany.com & http://manofmany.com/page/2/ I'm seeing my 2nd page displaying the exact same posts as my first page (minus the very first/latest post). All other pages 3,4,5 ...
1
vote
1answer
70 views

Transient pagination not working properly

So I wrote the following to create a transient: $wp_object_i_created = new WP_Query('cat=1'); set_transient('category_one_posts', $wp_object_i_created, 60*60*1); Ok so then I decided "Ya know lets ...
2
votes
2answers
226 views

Paginated Taxonomy Term Archive including one post per term

I have a custom query which gets all the custom taxonomies for the custom post type and displays the latest post in each. At the moment it pulls in all the taxonomies. Is there a way I can limit the ...
1
vote
1answer
410 views

how to pass additional parameter in the url using PHP

How do I pass additional parameter in the url for pagination to work my existing page link is http://localhost/site/wp-admin/admin.php?page=myPage how do i create the syntax / logic in PHP to add ...
0
votes
1answer
31 views

Adding pagination to custom Wordpress function

I am trying to add pagination to posts however i cannot figure out how to get it to work - it simply does not show the pagination as i need it to. It should display the first 15 posts on the first ...
0
votes
1answer
88 views

Reverse ordered pagination on home page

Use on the blog reverse pagination. The question arose. How to make a home page is not the first? Need to break the link Home = First page and make a connection Home = Last page. Home should be the ...
1
vote
1answer
124 views

Varying the number of posts per page from the first one

I want to have the index page to have a different number of posts than the rest of the pages (page 2, page 3 of the index page, as well as the archive pages). In my case I want to limit the number of ...
0
votes
2answers
205 views

Add Filter not working with get_posts

While tweaking the "Bryans Childpage Thumbnail Generator" plugin, I am applying filter (with pagination) to the get_posts for WP Pages (post_type=page), but its not filtering at all. Here is the code: ...