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

learn more… | top users | synonyms (1)

-2
votes
1answer
40 views

Custom template pagination

I have a custom post type "news". I created the page "News" with the id 55 and a custom template file. I want to implement pagination. The problem is when I access the news with a page number set I ...
0
votes
0answers
11 views

Pagination in get post of custom post type [duplicate]

I tried to add the pagination in get_post in the following method <?php $paged = get_query_var('paged') ? get_query_var('paged') : 1; $the_posts = get_posts(array('post_type' => 'image', ...
0
votes
1answer
93 views

How to add PHP pagination to wordpress

I'm trying to make a custom PHP pagination work with wordpress, the page in wordpress is a very custom one, not a post or a page, it's a select from DB that shows flowers, the styling is ok now, but ...
0
votes
1answer
70 views

'paged' in wp_query doesn't work

I try to add a code to my wordpress blog show previous posts(in a previous page). I try this code but it don't work: <?php $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1; $args = ...
0
votes
0answers
1k views

Adding pagination to the WooCommerce [sale_products] short_code

I'm using the builtin WooCommerce [sale_items] shortcode to display sale items on my site. Whilst you can control how many items appear on a page it doesn't include pagination so if you've got a lot ...
0
votes
0answers
23 views

Custom search pagination links not working [duplicate]

I'm trying to create a search form on a custom post-type single page as here http://wpadvancedsearch.com/ but when I turn to the next page pagination is simply reload the page. Here is my code ...
0
votes
0answers
122 views

I want to edit an AJAX Wordpress Pagination

I am using this code to be able to load my content using Ajax (loading content without refreshing the page). The code I found fades out the content and fades in the new content. I want to add the ...
0
votes
0answers
84 views

next_posts_link not working with custom query

I am trying to create a pagination system through my posts. Here my code: <?php $paged = (intval(get_query_var('paged'))) ? intval(get_query_var('paged')) : 1; $args = array( 'post_type' ...
2
votes
2answers
493 views

Custom query form submission pagination

There is a question very similar to mine, which can be found here. The difference with my question is: my search form is on several pages (page.php and single.php) and I don't use wp-pagenavi. I've ...
0
votes
1answer
48 views

Pagination on Custom Loop

I want to style the latest post differently than all the other posts in a category on a custom page. So far I have this code below which does exactly that: <?php if (have_posts()) : ?> ...
0
votes
0answers
60 views

Custom Page Pagination

Hoping someone can help me with a problem. I am using a custom page to display all posts with pagination, I noticed last night in webmaster tools that I am getting some soft 404's from the custom ...
-1
votes
1answer
124 views

Manually Insert Title & Meta Description for Pagination pages?

This is second version of question Customized title tag for each page in pagination? answered by @joostvanhoof . I would like to add customized title tag <title> and different meta description ...
1
vote
1answer
158 views

Customized title tag for each page in pagination?

With the reference of below questions. How to change title tags on paginated posts? Paginate tags page How to change title tags on paginated posts? Add Page number to Meta Description in Wordpress SEO ...
3
votes
1answer
2k views

WordPress AJAX Pagination with query_posts

I have a list checkbox categories, which when checked, use WordPress's admin-ajax.php to filter posts to the selected category. All is working great, however, I am struggling to get the updated ...
0
votes
1answer
92 views

wp_query pagination links producing 404

I've searched thousands of related posts and can't seem to get the pagination to work on this loop. As soon as i click next page i get a 404 //get the search term if (!empty($_GET["s"])){ $s = ...
0
votes
3answers
209 views

Custom Loop Pagination on WordPress

I'm trying to create a magazine style website. For this particular page (not homepage) I'd like to fetch the latest post and style it one way (style1). For all the other posts I'd like to just display ...
0
votes
0answers
17 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 ...
1
vote
0answers
230 views

Pagination with custom query, custom search form, single and pages, ajax and no plugins

I've read a lot of posts here about pagination with custom queries and tried the suggested answers (like this one). It seems however that my situation is a little more complex, and in the existing ...
0
votes
0answers
61 views

Numeric Pagination Not working

I wrote a function that does (it's unrefactored, bare with me): protected function _index_numeric_posts_pagination($options){ global $wp_query; $total = ...
0
votes
1answer
138 views

Rewrite Rule & Regex - Extract 'cat-name' and 'page-number' from http://domain.com/custom-post-type/category/cat-name/page/page-number

I have an URL formatted so: http://domain.com/custom-post-type/category/cat-name/page/page-number I need to extract: cat-name and page-number So that in my functions.php, I can create the custom ...
0
votes
1answer
53 views

I am officially missing something about transient posts

I have no issue creating transients. What I have an issue with is pagination - and I have made posts on it before and every one sates that the query must look like, for example: $queried_post ...
0
votes
0answers
335 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
395 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
104 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
39 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 ...
9
votes
1answer
6k 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
211 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
150 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
311 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
83 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
317 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
89 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
132 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
33 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
105 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
180 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
159 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
40 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
62 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
103 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
129 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
41 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
22 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
37 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
253 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
452 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. ...