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

learn more… | top users | synonyms (1)

0
votes
1answer
23 views

Wordpress wp_link_pages show only next/prev link

I used nextpage to separate a post into multiple page and I don't want to show pagination as 1 2 3 Next, I want to to show Prev Next, below is the code I come up with after reading the wp link pages, ...
0
votes
0answers
14 views

Loop a Custom Post Pagination

I am having a little trouble trying to get my custom post type pagination to loop. The idea to my pagination is to only display a next field with the title of the next post. Once you hit the last post ...
0
votes
0answers
20 views

Pagination in Search result

How to do a pagination in search result? I have already an excerpt script. All I need is a script for pagination. Pls help me. Thanks function wpse_allowedtags() { return ...
0
votes
1answer
54 views

Pagination fuction in shortcode always displays on top

Pagination function in shortcode always displayed on the top. Please have a look on below code /*-------------------------------------------------------------------------*/ /* Custom Pagination */ ...
0
votes
1answer
22 views

Hide text if not homepage

I want to add text but only appear on the homepage only. I have used this if script: <?php if( is_home() ) : ?> <p>Some text</p> <?php endif;?> but the problem with this is ...
0
votes
0answers
10 views

group search results by post type with relevanssi

I have 3 post types: post lesson series When a user searches on my site, I want the results to be sorted by post type into different containers. I am using the Tabs from Zurb Foundation for my ...
0
votes
0answers
38 views

How to add pagination into post showing

I have created a plugin to display all posts on any page by short code. But how do I add pagination? global $wpdb; query_posts('cat='.$cat); $table_name = $wpdb->prefix . "advertisement"; ...
0
votes
0answers
17 views

Pagination leads to 404 page

I am working with wp_pagenavi plugin. The first page loads normally, but, if I use navigation for next page, it redirects me to a page which shows 404 error. Most likely the problem is with the ...
0
votes
1answer
33 views

Archive page…limiting posts per page

So what I have done is created a custom post type 'testimonials' and set the "has archive" option to "true" and have a PHP template file named "archive-testimonials.php". What I wan't to do is limit ...
0
votes
1answer
29 views

Why do I get `Call to a member function have_posts() on a non-object `? [closed]

add_action( 'genesis_loop', 'be_home_loop' ); define('PER_PAGE_DEFAULT', 2); function be_home_loop(array $query = array()) { global $wp_query; wp_reset_query(); $paged = ...
0
votes
1answer
33 views

Adding pagination to query for custom page

I've made a custom news page using a custom page template and this is my query for latest posts: if ( have_posts() ) : while ( have_posts() ) : the_post(); the_content(); ?> ...
1
vote
1answer
37 views

What is the difference between $paged and $page?

I'm creating pagination for my site. Hope everyone can explain to me what below code used for? Thanks in advance. <?php if ( get_query_var('paged') ) { $paged = get_query_var('paged'); } ...
0
votes
0answers
20 views

Main page paginate_links issue

So, I found out what the problem is with the frontpage pagination issue. i have woocommerce products listed on a main page which has pagination. However, it was repeating the first page. I changed ...
0
votes
1answer
23 views

Pagination re-direct to main page [duplicate]

This is a general question regarding pagination. I have posts on the main page, but the pagination is redirected to main page. For example, site.com/page/2 goes to site.com. Is there a general ...
-1
votes
0answers
16 views

Pagination with Category template gives me 404

I've run into an issue trying to create a pagination for a regular Category template. Odd as it seems, I can get the same snippet working on a Page template. See code below, ( category.php ) ...
0
votes
1answer
28 views

Pagination not working with WP_QUERY

I have set up a custom loop that is working fine, but will not display the pagination links. After some searching around I've learned that the pagination links (as I've used them here anyway, but I'm ...
0
votes
1answer
49 views

Pagination in custom post type page template

I made a query for my custom post type "websites". I'm trying to get the pagination working but I'm running in some errors. I think the whole code is ok, only the part just before the end while tags. ...
0
votes
1answer
19 views

Custom Post Type Archive Pagination

I've set up a template called archive-gallery.php, and I have pagination working, however, the query is ignoring my posts_per_page value and using the value that is in Settings > Reading called ...
0
votes
0answers
41 views

Pagination calling 404.php

I tryed to ask my question on wordpress.org but nobody was able to answer me and this is pretty important to skip it so i try here: I have an index.php with 4 differents loops and a pagination on the ...
0
votes
2answers
48 views

Add pagination to table generated by wp_query

I spent hours trying to find a solution to this, but I am not able to figure it out. I have a table that shows user's data and I am trying to add pagination to it. I have tried by adding "paged" in ...
0
votes
1answer
40 views

Need help with get_posts pagination

I've been working on a wordpress site, and I'm trying to build a page where visitors can see all of the images that have been uploaded to the wordpress media gallery, regardless of whether or not said ...
0
votes
1answer
19 views

Paginations in Category Page Leads to Sample Pages

I'm having trouble with my WPMU site that I hope you guys can help me with. Anyway, here's the situation. For example, I'm on my site's category page. I clicked the next page, or any other page aside ...
0
votes
0answers
38 views

Pagination not working in custom post page

I have this theme that I created which is a mix of code copied and mixed from different themes, and I have a custom post page in the theme where pagination isn't working for some reason. <div ...
0
votes
1answer
18 views

Plugin to show pagemap beneath certain page and next/previous page beneath certain page?

I'm publishing a course online. The course is written on pages and I need some kind of navigation for the course. For navigation I want: Previous/next page links A page index I figure that all ...
0
votes
0answers
54 views

Wordpress pagination broken on blog page, working for search results page

My main blog page, and search keyword and category filter pages all pull in the same loop-blog-grid.php template, therefore all pull in <?php themeple_pagination(); ?>. The issue I'm having is ...
0
votes
0answers
41 views

2 loops with pagination on a single loop

On a page I want to always show the most recent post on top with a different layout, and have the rest of the posts listed below. So I created a template page with these 2 loops. But I cannot figure ...
0
votes
1answer
66 views

WP_Query custom order and pagination

I am seeing some strange behaviour when combining a custom order with pagination when using WP_Query. The arguments for my query are as follows: $args = array( 'post_type' => 'news', ...
0
votes
0answers
31 views

Advanced Field Repeater Pagination with Custom Post

I am using a custom post type as well as advanced custom fields with a repeater. I need to somehow loop through all the repeater subfields and paginate them to 6 items per page. I have tried a few ...
0
votes
2answers
54 views

Pagination fault in custom post type archive page [duplicate]

I create ad custom post type register_post_type( 'videos', $args); and custom taxonomy for that register_taxonomy( 'video_category_categorie', 'videos', $args ); Maximum number of post displayed is ...
0
votes
1answer
89 views

Pagination for custom query throws 404 errors on last pages [duplicate]

I'm using a custom query to get all CPT posts for the author in author.php. I have a lot of authors and a lot of content so I'm using the wp pagenavi plugin to paginate between these posts. For some ...
0
votes
2answers
34 views

Pagination isn't created when there is only one page of posts

After ending The Loop, I simply have: echo paginate_links(array( 'mid_size' => 3, 'prev_text' => __( 'Previous posts' ), 'next_text' => __( 'Next ...
0
votes
1answer
42 views

Paginate Links - Mid Size Less Than 2

I'm trying to work with paginate_links() to get a paginate structure similar to this where the bold number signifies the current page. 1 2 3 1 2 3 2 3 4 Now in theory I should be able ...
0
votes
0answers
14 views

WordPress category pagniation not working

I am trying to add pagination to category the URL comes out in the format as /category/cross-stitch/page/2/ but nothing shows on the page its going to 404. My code is below, which works for pagniation ...
0
votes
1answer
112 views

Creating a simple pagination for custom post type templates

I have custom post post type call 'news' and I am struggling to get it to paginate correctly. I'm looking for a simple prev and next links, not worried about page numbers in the middle. In ...
0
votes
0answers
30 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, ...
1
vote
1answer
55 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
17 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
24 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
187 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
32 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
35 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
37 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
88 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
48 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
107 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
69 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
47 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
35 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
44 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
24 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 ...