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

learn more… | top users | synonyms (1)

0
votes
0answers
7 views

Pagination breaks custom sub menu

I've got the following class which allows me to make a specific sub menu. class Custom_Walker_Nav_Sub_Menu extends Walker_Nav_Menu { var $found_parents = array(); function start_el(&$output, ...
0
votes
1answer
32 views

Pagination returns 404 after page 20

I got a paged loop that pulls in 4 posts per page from custom post type. It works great, with the only downside that the pagination wont go over the page/20 everything after that is 404, and the ...
0
votes
0answers
13 views

Daily pagination

How i can create daily post pagination? I tried something like this, but server respond me 404 error: <?php // Global global $wpdb; // Sql query $query = "SELECT ...
0
votes
0answers
9 views

Pagination on Custom Post Types filtered Archive Page not working correctly (jumps to the first Post)

This is my Custom Post Type "newyork": add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'newyork', array( 'labels' => array( ...
0
votes
2answers
66 views

Posts in Multiple Columns and Rows with one single loop

I'm pretty new to creating my own theme and I seem to have become stuck and would really appreciate it if someone could help me. I have searched and found snippets of advice but nothing that really ...
0
votes
0answers
19 views

WordPress Pagination/paged Problem

I'm having trouble with WordPress pagination/paged. I've tried to fix this for a while now using different queries and settings but to no avail. Also done a lot of Googling. Below I've copied the ...
0
votes
0answers
16 views

How to display data with pagaination on backend?

I am new with WordPress development so I have no idea how to do this functionality with WordPress. I got one task to display some data from database and have to display records with pagination(Just ...
0
votes
0answers
22 views

WP_Query with meta_value_num and meta_query not paged correctly

I have a strange thing with my WP_Query, where isn't paged correctly. $args=array( 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => $limit, // 10 ...
0
votes
0answers
17 views

Error 404, pagination in custom query for permalink category/postname

I have trouble using custom query to paging my category posts. here's the situation. I set my permalink as %category%/%postname%, I am using very standard function paginate_links( $args ) $args = ...
1
vote
1answer
32 views

next_post_link for CPT only working for a few posts? weird!

I have about 20-30 posts in a CPT, and when I click on a single post and use the next_post_link and prev_post_link functions it will only show a select 5 posts out of the 20-30... always the same 5 as ...
1
vote
1answer
62 views

WP_Query pagination not working in admin area

I've created a custom plugin page. On this page, I list posts using wp_query(). It works fine. I want to add pagination, but it doesn't work, even when I'm using the code provided within codex: ...
0
votes
0answers
24 views

How to show only Next and Previous Buttons WordPress wp_link_pages

I've been trying to resolve this issue. what i'm trying is to show Next and previous button only. Till yet i got <?php $args = array( 'before' => '<div ...
0
votes
0answers
25 views

How to paginate custom query in functions.php?

I have a page with content filter. This filter do AJAX call to query in functions.php: function load_ajax() { $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( ...
0
votes
0answers
17 views

Pagination custom post types outside loop

Because of speed / SEO reasons I'd like to load my custom post types as pagination ([1][2][3][4] etc). I have a page called apps and load all custom posts from apps. I'm using currently this code to ...
0
votes
0answers
24 views

Blank page with custom loop

in my WordPress theme with two custom loops there is always one blank page at the end when I page through the content. E.g. when I actually have only three pages filled with content, I can access a ...
0
votes
1answer
17 views

Paginating custom posts in categories yields a 404 error

Situation I am trying to paginate some records in Wordpress 4.1. I have a custom post type (events) and a category called 'training'. I have created a custom category template ...
0
votes
1answer
26 views

Pagination Links Not Showing Up on single.php posts on iOS Devices

So I've been working on my portfolio site for awhile now and just pushed the first "ok to be live version" last night. I gave it a quick QA and found some bugs that I am aware of, but the one that is ...
0
votes
2answers
39 views

Wordpress 404 pagination (/page/2) error?

I have created custom post type for videos. Here is my code. function video_register() { $labels = array( 'name' => _x('Video', 'post type general name'), 'singular_name' => ...
0
votes
0answers
14 views

How to use screen options with ajax pages?

How can I use screen options with backend ajax pages? Here is the code. I want to create pagination in AJAX pages. However $screen is null. $user = get_current_user_id(); $screen = ...
2
votes
1answer
56 views

How to bring specific post to front of wordpress loop?

So, I have a WordPress loop going on. The below code is the template page for the woocommerce product archive page. Here's the use case for what I am trying to find out how to achieve: User is ...
0
votes
0answers
20 views

Issue on single.php pagination WordPress

I faced weird issue on single.php. I used previous_post_link('%link', 'Previous'); and next_post_link('%link', 'Next'); for next previous in single.php, it's working perfectly, but its work on all ...
0
votes
1answer
29 views

Pagination is not working with custom query inside a homepage template

There are a lot of similar questions asked here, but none of the suggestions seems to work for me. I have the following code on my home page: get_template_part( 'category-clients' ); And ...
0
votes
2answers
34 views

How to use custom previous/next link ?

I have this : <?php the_posts_pagination( array( 'prev_text' => __( 'Previous page', 'twentyfifteen' ), 'next_text' => __( 'Next page', 'twentyfifteen' ), ...
0
votes
1answer
27 views

Increase returned number/pages on pagination

Im trying to increase the numbers/Pages for my pagination. I have 64 pages set, and this is how it shows now: « Previous 1 2 3 4 … 64 Next ». How do I control so I can show more numbers? In my case i ...
1
vote
0answers
66 views

How to create pagination for homepage with widgetized area?

I have created homepage with sidebar area filled with different widgets. Each widget fetch and display posts from different categories. Now I need to create a numbered pagination in homepage which ...
0
votes
1answer
17 views

Altering next_posts_link(); and previous_posts_link();

We use following two functions to display pagination. <?php next_posts_link( 'Older Entries »'); ?> <?php previous_posts_link( 'Newer Entries »'); ?> These above two function will ...
0
votes
1answer
36 views

next_posts_link(); & previous_posts_link(); not working properly

I am creating a wordpress theme in which there is a page named "blog" which will show my all latest blog posts. Here, i am displaying only 5 posts per page and i want in first page it will only show ...
0
votes
0answers
54 views

Paginate_links only working on first page

I'm having an issue with pagination. On my site I'm using the plugin "Daisycon affiliate marketing plugin". I would like display the products that are stored in a custom database table (created by the ...
0
votes
0answers
25 views

Custom pagination for custom page, how?

So. I have a custom page, where im using two shortcodes for a plugin that fetches rssfeeds, WP Rss Aggregator. It creates two columns with feeds, and both of these feeds have pagination, both columns ...
0
votes
0answers
29 views

Custom Post Type Pagination Not Working or Single Posts Displaying?

I want to create a page to display all the 9 recent posts within that custom post type. (this is where I'm getting confused) I've called the page template page-podium.php ( my custom post type is ...
0
votes
2answers
61 views

Pagination not working on custom post page

I have created custom post type called natural food In my page-natural-food.php <div class="main container"> <div class="content left"> <?php ...
1
vote
0answers
47 views

Pagination on home page not working

My problem is here. When I press page 2, 3 or other on my HOME page it just goes to 404 not found, but when I go in any category, and press page 2 it works great. I have tried changing the ...
0
votes
1answer
22 views

Search engine not working

How to display results with title and summary description in landing page of search engine and make it as pagination? If the user type the word "loan", all pages that have a loan word will display ...
0
votes
0answers
12 views

Custom table loop with pagination link issue

I have a custom table in WordPress and trying to listing records with Pagination. With below code, I able to create pagination but only problem is when I click on page 2 than all links will stay on ...
2
votes
1answer
80 views

Related posts by author pagination not working on the production site

The code that I'm using has adapted from this example and successfully tested on my localhost but when I pass the site to a live server, the pagination crashes with wordpress permalinks set (/% ...
0
votes
2answers
67 views

Paginate links with “ugly” and “pretty” permalinks?

If I have "pretty" permalinks enabled my code will work for static pages (will work if page is set as "home page" or "normal page" ). But my code breaks if I use "default permalink" structure. I ...
0
votes
0answers
41 views

404 error Custom search results page for custom post types with friendly URL

Seen a lot of people with same issue, but no solutions have worked for me, so maybe I'm mislooking something. Page 2 of a custom results page gives me a 404 ( /search works, /search/page/2 doesn't). I ...
0
votes
0answers
38 views

Paginating custom query on category template

I'm trying to paginate my custom post types on my category page template but for some reason when I trying to navigate to 2nd,3rd,4th etc pages it will get re-routed to the index page. This is the ...
0
votes
3answers
98 views

Paginate get related post by author function

Is it possible to get this function paged? I've tried to add previous and next links but i'ts not working... function get_related_author_posts() { global $authordata, $post; ...
0
votes
1answer
50 views

Pagination is not working on custom query inside a custom home page template

I know this is a duplicate question. But to comment on existing question, I dont have enough points. So here we go.... Pagination is not working on custom query inside a custom home page template. ...
0
votes
0answers
34 views

Wordpress Pagination Not Working After Transfer from Localhost

I have the following code for wordpress pagination: function sds_pagination(){ global $wp_query; $big = 99999999999999; echo paginate_links(array( 'base'=> str_replace($big,'%#%', ...
0
votes
0answers
48 views

Infinite Scroll on homepage not working

I'm having a bit of an issue. I have installed the Infinite Scroll plugin and am having issues with it. Firstly, all it says is "No Additional Posts" when, in fact, there are additional posts. I ...
-1
votes
2answers
93 views

Repeating posts when paginating random posts

I have 1 Custom Post Type of products as well as two taxonomies of types and countries. I'm displaying my custom post type of products on my taxonomy.php page with paged pagination. I am also using ...
-2
votes
1answer
36 views

Duplicating pagination on second page

Been trying to get this to work and I can get it to show the pagination links but it just duplicates the content from the first page again on page two, can't figure out why? <div class="row"> ...
0
votes
0answers
26 views

Display Pagination on Table

I have written the code below: <?php $ListTransfer = $pwtw_db_connect->get_results ( $pwtw_db_connect->prepare ( 'SELECT * FROM donation_bank WHERE trans_wp_id = %d AND trans_svr_region = ...
-1
votes
2answers
76 views

query_posts different amount of posts per page

I have a posts_per_page query to paginate multiple post types, which works great! Now though, as it paginates it to show (in this case) 100 posts per page, I'm wondering if you can show 100 on page ...
0
votes
1answer
28 views

Add Custom Pagination Permalink

I'm trying to create a page with multiple loops on it and as such also need multiple pagination. This is proving to be a touch difficult, I've managed to get the links to show correctly by using the ...
1
vote
0answers
24 views

same slug for custom postype and page pagintion not working

I have created post type "news" and a page "news" so my url is like http://demoserver.com/testsite/news Here i use page template for news landing and i do not use archive.php page for post listing ...
0
votes
0answers
21 views

How should I setup a special series on my blog?

I am not a full-fledged WP developer. But I know how to do basic PHP functions and get stuff working the way I want. However, I want to do a special series on my blog, that will last the next 3-4 ...
0
votes
0answers
37 views

Search page Paginations not working

This is what I use in all my other pages that require a pagination. <?php endwhile; ?> <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ($total_pages > 1){ ...