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

learn more… | top users | synonyms (1)

0
votes
0answers
33 views

How to use pagination in category list?

Use pagination in function ? function get_posts_for_cat_ordered( $cats = array(), $posts_per_cat = 2 ) { if ( empty($cats) ) return false; $q = new WP_Query( array('posts_per_page' => ...
0
votes
0answers
111 views

Pagination not working on template page

I have the following code, but it is not working. if ( get_query_var('paged') ) { $paged = get_query_var('paged'); } elseif ( get_query_var('page') ) { $paged = ...
0
votes
0answers
36 views

Search page pagination - unable to fix

I apologize for posting this as I know it's a common question but I haven't been able to crack it on my own. My search page works just fine other than the pagination (when you click on a successive ...
0
votes
0answers
59 views

Using fallback language with polylang and using pagination in different language leads to page not found

Following scenario I am using this in my archive.php to fall back to german in case there are no translations: if (is_category()) { $categories = get_the_category(); ...
0
votes
0answers
44 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
0answers
58 views

previous_posts_link returns null when querying custom post type

I have created a custom post type named lesson, and I want to display all lessons, so I created a custom page named lesson.php, inside, I added a query to look for all the posts which type are lesson. ...
0
votes
0answers
27 views

How to change URL of Pagination?

I have used PageNavi Plugin for pagination ,Generally when we click on page-two we get url like this : http://www.example.com/acb/page/2 but how Can I change Url like this ...
0
votes
0answers
48 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
0answers
79 views

Trying to do a custom Search results page. Failing when I use the pagination

I'm trying to do a page where the user can search for posts with a Keyword (as search.php) and post date filter (between one date and another). I have a form with 3 fields: keyword, date1 and date2 ...
0
votes
0answers
20 views

Nexgen gallery glitch

http://weinthemix.net/gallery/ pw:weinthemix1 All the galleries work except for Nightlife. When I click it, it just stalls and then it says 500 Internal Server Error The other Albums are set ...
0
votes
0answers
62 views

Page loads all pages of the image gallery with pagination

Same as my previous question I have moved to new website. Here there is a page which contains an image gallery with pagination. The text code is like this: [gallery columns="6" ...
0
votes
0answers
116 views

Pagination for blog posts reloading same page

Symptoms Visiting /blog/ loads the first 10 posts, as expected. Visiting /blog/page/2/ (and onward) loads the new URL but with the same 10 posts. Nothing changes but the URL. Setup Details Custom ...
0
votes
0answers
37 views

URL rewrite function and pagination with year in the url

UPDATE No more 404 errors. Part of the problem was I using a reserved variable (year, doh!) so i changed a couple of things around and i have this almost fully working. I've made very good progress ...
0
votes
0answers
45 views

Pagination on custom page template

I have a page with videos, which are getting from custom plugin which attaches videos to post (not my work) and through loop by posts shows on video page. (not my work too) The page have link like ...
0
votes
0answers
48 views

Can't get correct pagination links on blog single page

I am new to wordpress but I am going through something unusual here. The blog I am designing is something a little different. Let's say there is just a blog index and single posts. I have designed ...
0
votes
0answers
67 views

Learning rewrite rules and custom permalinks. Paging not working

I am just starting to learn rewrite rules and custom wordpress permalinks. I have made a custom endpoint called autor with the following code: function my_query_vars($vars) { $vars[] = "autor"; ...
0
votes
0answers
23 views

wordpress pagination problem with page templates

just now i found that pagination depends on permalink structure.I am using wp 3.8 version. For pagination in page template I used <?php $paged = (get_query_var('paged')) ? get_query_var('paged') ...
0
votes
0answers
109 views

AJAX Pagination not working

I have integrated an AJAX Pagination in my site sidebar, where I'm showing custom post type. Here is my code: <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $new_query = ...
0
votes
0answers
124 views

Custom post type pagination, single page issue

After having problems getting pagination working at all for custom post types, I've read that the custom post type name and the page name cannot be the same. So I set out from scratch: I've created ...
0
votes
0answers
34 views

Pagination for a Custom Taxonomy

Here's my problem: I have a Custom Post Type called Projects. In it's archive (archive-projects.php) I display a list of Clients (it's a custom taxonomy for this Projects). This works great, you can ...
0
votes
0answers
13 views

WordPress creating 404s under blog tags

Webmaster Tools is pulling up 404s under by blog tags. I go to a blog tag, scroll all the way down and find an "older posts" button. I click the button and the new page is a 404 because there is not ...
0
votes
0answers
32 views

How can create a pagination fpr my CPT Template

I create a template for my book cpt archiv. How can creat a Pagination Page prev 1 2 3 next to the E-Paper Archiv Template? Twenty Ten Template <?PHP /* Template Name: ...
0
votes
0answers
28 views

Make a paginated article (for easier reading on mobile)

I'm looking for some plugin, or perhaps more likely some Javascript package that will make me do something like mobil.idg.se on a phone (select a story, then swipe sideways to read the next part of ...
0
votes
0answers
79 views

URL Rewrite breaks pagination on some permalink structures

i created some rewrite rules for my profile page with multiple tabs. Member and tab names are passed via url to the page template. Everything works fine except for the pagination. When a permalink ...
0
votes
0answers
71 views

Comments orderby comment date not working

I have a template to get the comment replies to a user and display it on a static page. It works reasonably well in so far as the correct comments are displayed but whatever I try I can't get the ...
0
votes
0answers
121 views

Infinite Scroll Masonry triggered by pagination not working

I'm triggering more posts in my Masonry layout when a user hits the bottom of the page. The JS sends a count each time this happens and I'm using that as my 'paged' argument. However I'm getting ...
0
votes
0answers
41 views

Page/2 in my custom page template throws 404 error

I have a form on that page in where I have used the solution provided at Advanced search form with filters for custom taxonomies and custom fields, that works fine and search results appear OK, but ...
0
votes
0answers
207 views

WP Page Navi Not Working in my Custom Query - Events Page Only

I'm using the same custom wpquery format in my NEWS page. And my pagination uses WP PAGE NAVI plugin. It does work on my NEWS PAGE but doesn't work on my EVENTS PAGE. Plugins used: 1. WP PAGE NAVI ...
0
votes
0answers
27 views

Custom post Type Pagination help

i'm wondering how to add pagination like 1,2,3.. on my custom posts listing page. Below is my custom post template which lists all my custom posts, <?php while ( $loop->have_posts() ) : ...
0
votes
0answers
77 views

Custom query, static page pagination and canonical

We have a custom query used in a template file, which is a page builder, with pagination that query latest posts. The problem is with Yoast SEO plugin and it's canonical URLs. When we navigate to any ...
0
votes
0answers
174 views

help in applying pagination retrieve the data from database

I'm following the tutorial here http://wpengineer.com/2426/ on how to apply pagination in wordpress. Now he said "As pointed out in the comment the array_slice is only necessary because we use sample ...
0
votes
0answers
230 views

Woo Commerce Pagination

I am want to create pagination in product page,after 7 product i will show the pagination in above the product and below the product.so let me know on which page i should have hook in and how. Thanx ...
0
votes
0answers
102 views

Wordpress pagination error - next page giving 404 error

I have following codes to list all attachments with pagination, <?php $paged = (get_query_var('page')) ? get_query_var('page') : 1; $args = array( ...
0
votes
0answers
35 views

Multisite wordpress search loop and pagination?

OK I have a wordpress custom loop looping across 3 blogs and returning the results like so: <?php $posts_per_page = get_option('posts_per_page'); $searchfor = ...
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
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
80 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' ...
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 ...
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
0answers
333 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
0answers
102 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
0answers
249 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
0answers
362 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
0answers
63 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
0answers
82 views

External Ajax pagination?

I am using the following code to display posts on my HTML and CSS site. <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> ...
0
votes
0answers
1k views

pagination broken - clicking next displays “page not found”

I'm a newb at Wordpress, but my HTML/CSS is ok. My site is: http://www.modernfuture.net/wordpress been working on it this for quite some time & I'm done with the headaches, need to get some ...
0
votes
0answers
11 views

Add Show All feature in Pagination of custom post type

i want to add show all feature for pagination in custom post type. i have wondered and trying to find many places but not getting any proper response. I have add this feature.
0
votes
0answers
132 views

Displaying a Custom Post Type in a Page with Pagination

Im using a professionally developed website theme that has "kriesi’s pagination" already implemented. Anyway my goal is to have a page which contains all the "team" members who are involved with the ...
0
votes
0answers
128 views

Post Filter clearing on pagination $_post

I have a form, in which users can select what taxonomy they want the posts filtered by. It works fine except that it doesn't paginate. When I click on the next page of results, it clears the query. ...
0
votes
0answers
64 views

Loop Navigation Problem

currently I have a loop on my index page which is set to show upcoming posts in ascending order. This is an events listing page. However the pagination at the bottom of my page doesn't work, I am not ...