We’re rewarding the question askers & reputations are being recalculated! Read more.

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

Pagination-url on frontpage, but no pagination visible or available

I have some projects, one of them is https://mhe.dk, where a customer has events, made with a custom post-type. If you visit the program-page (https://mhe.dk/program), you have some pagination that ...
0
votes
0answers
10 views

pagination problem with changing $_GET

I have a select option and some inputs that are getting into the $_GET, then based on $_GET, the $args of wp_query(args) will be changed, everything is fine and pagination works good. but when i ...
0
votes
0answers
14 views

Paginate by individual page links, not /page/1, /page/2, etc

I'm moving a group of 20 or so pages from another CMS into WP. These are pages not posts. Each page is a chapter in a book and each page has bottom nav links much like a blog index page. In our case ...
0
votes
0answers
28 views

Custom archive paged head title

My website is in hebrew and when im in a paged archive the title is "archive title" page 2 of 4. How can i add the title only in archives that are in a page 2 or higher? I am using Yoast SEO. And its ...
1
vote
1answer
19 views

How i can add 'N' page of 'N' pages under posts loop?

I want show number of current page and count of all pages, near my posts paginations. I am talking about this
0
votes
2answers
2k views

Disable pagination in posts and pages

I need to solve duplicating of posts and pages caused by unexpected paging. I am trying to disable the paging with this function, but it seems I miss something: function wpse_disable_pagination( $...
0
votes
1answer
1k views

Count posts for pagination

I'm doing the pagination for a web. < Previous (pagenumber) Next > is easy, already done. But now I need to add a selector to go to a page directly (ex: to page 7), to do so, I need to know how ...
0
votes
0answers
293 views

Get current_post in reverse order with pagination

I'm trying to index my posts (in reverse) and I'm using current_count within loop to do this. This is my code: <?php $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; $args ...
3
votes
3answers
1k views

Custom Search Page Pagination Not Working

My Seach Page URLs: https://www.example.com/search/keyword/page/2/ Here my custom search page: <?php if($_GET['search_text'] && !empty($_GET['search_text'])) { $text ...
0
votes
1answer
913 views

Add pagination to search.php page

When I want to use the_posts_pagination() in my search.php page and I click "2" or "3", it goes on 404 page (this link: mywebsite/page/2/?s=a). How can I add pagination for search.php page? SOLVED ...
0
votes
1answer
151 views

Later blog post pages give 404 error

The later blog pages give a 404 error. For example page 7 works fine: http://www.ismyhomesafe.ca/blog/page/7/ Page 8 gives you a 404 error: http://www.ismyhomesafe.ca/blog/page/8/ Any suggestions ...
1
vote
1answer
312 views

How to add pagination to a single wordpress page with lot of text

I create a new page in Wordpress and add a lot of text to it. how to add pagination to this WP page?? I have tried using <!––nextpage––> which doesn't work in a page. *most of the pagination ...
0
votes
0answers
13 views

Page/2/ giving 404 when query is added [duplicate]

If I do a search example.com/?s=london with no wp_query I get results and I can change pages. But if I add a wp_query and do the same search example.com/?s=london if I click to page 2 example.com/page/...
0
votes
1answer
44 views

Posts are not showing up on next page.

I am using WordPress 'wp_page_numbers' plugin and the next pages are empty. I'm not sure what's going on with my code but it's suppose to start over again on the next page. Here is what I have............
1
vote
1answer
78 views

301 (static page instead latest posts)

I've changed the structure from the list of latest posts on the main page to static front page. Latest posts were moved to "blog" page. I need to redirect (301) old pagination structure from example....
2
votes
3answers
604 views

When paginating a Page with the <!--nextpage--> tag, how can the 2nd and subsequent page styles be customised?

I want to apply different styles for a second page in single.php or posts. How can I do this? I have the following code in single.php to split the page in two parts: <!--nextpage--> If there ...
1
vote
1answer
37 views

Page vs Custom Post Types Differences/Issues

I started noticing issues last week when 4.5 was released and mistakenly believed that update caused an issue. In reality, I just happened to notice it for the first time around then because last week ...
0
votes
1answer
162 views

Pagination For Page Post Type

I try to use the Eric Meyer's pagination codes to make it working for page post type, but unable to figure out how to make it working. It's always show the first page. Here is the codes: <?php /* ...
3
votes
4answers
16k views

Skipping first 3 posts in wp query

Here's the query i have used. <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $wp_query = new WP_Query('order=asc&orderby=meta_value&meta_key=date&...
0
votes
1answer
2k views

Limit amount of pages shown in pagination within wp_query

I've got a query that looks like this: $args = array ( 'post_type' => $postType, 'paged' => $paged, 'pagination' => true, '...
0
votes
1answer
812 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 */ /*-...
4
votes
1answer
7k 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
1answer
93 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
113 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
1answer
1k views

Pagination url for page template

I am creating a page template in WordPress to show all my posts. But i have a problem with pagination. I have a page url like below: http://localhost/sdd/video "video" is my page slug. And the ...
1
vote
2answers
735 views

Start post pagination at 0 instead of 1

Is it possible to start post pagination count at zero instead of 1? I want the URLs to be like this: ../page (Foreword) ../page/1 (Chapter 1) ../page/2 (Chapter 2) But by default the URL ...
0
votes
3answers
7k views

Pagination not working on Custom Page Template

I searched a lot on this but I can't figure out why my code is not working. I published a page with slug "blog" that uses a custom built template "page-blog.php" that I build from editing the ...
0
votes
1answer
135 views

Add wp-link-pages to post

I am trying to add wp-link-pages function to my post where I have images split into many pages in that single post. I already have next and prev button whose functionality is written javascript. I ...
0
votes
0answers
190 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" ids="318,319,320,321,...
1
vote
2answers
3k views

Pagination for Pages and Posts

I want to use Pagination throughout a new theme but am having trouble getting it to work correctly. I am using some code within my functions.php file and then calling that function. It works on the '...
0
votes
2answers
61 views

Unable to paginate a custom page query

I have this code on a page called Categories. <?php /* Template Name: Categories */ get_header(); ?> <section id="primary" class="content-area"> <main id="main" class="...
0
votes
1answer
870 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" name="...
1
vote
2answers
177 views

Pull Random Attachments With Pagination

I want to make a archive page that pulls in all uploaded images to the site. I am using the current script. Its paginating somewhat but not showing all the images. Showing around 90 out of 140. ...
0
votes
0answers
328 views

Paginate Links not working

For the life of me I cannot get Paginate links to display pagination, but using 'userp' in the url works for paging. I just need the links to show up. <?php /** * @package WordPress * @...
0
votes
1answer
10k views

How to display a paginated list of posts from one category on a page? [duplicate]

I'm trying to use the code from this page: Display Blog Posts on any Page (with navigation) http://digwp.com/2013/01/display-blog-posts-on-page-with-navigation/ My goal is to make pages that display ...
0
votes
0answers
36 views

Category pagination first link works, remaining don't

In our website, for one of our categories (rentals -> sconces), page one works fine, but the remaining 3 don't. I've read in a couple places to just set the permalink back to default, but I wanted ...
0
votes
1answer
1k views

pagination does not work with query_posts. Help! [duplicate]

I made ​​a separate page template (added sidebar), this page contains all the posts. Pagination works! But, if this page set as the home page, pagination is not working! Please help find solutions ...
0
votes
1answer
725 views

Pagination for normal (standard) posts on a page with a custom loop?

probably a rather straight forward question. my "homepage" is not the blog-page. I have a page-template named page-knowledge.php which has the following loop on it. <?php echo '<ul ...
6
votes
2answers
16k views

The next_posts_link() works only with original $wp_query

I've got custom template that I want to display paged blog posts. This is the beginning of my file: $wp_query = new WP_Query($args); if($wp_query->have_posts()){ while($wp_query->...
0
votes
1answer
68 views

Add tags to long page that is broken up into subpages?

I have a long document that I am publishing as a page and splitting into sub-pages using page breaks <!--nextpage-->. I am trying to find out if it is possible somehow to add tags to these ...
0
votes
1answer
313 views

Get next post when using pagination with WP_Query?

How do i specify which "page" to get when using WP_Query? I'm using pagination and i only display three posts per page, but i need to manually set which page to get, because Wordpress doesn't do that ...
0
votes
1answer
42 views

advanced paging in wordpress

I can create pages in wordpress very simple like www.mysite.com/profile Now I have a question how can I make more pages in this page like www.mysite.com/profile/edit or maybe more pages like www....
0
votes
1answer
380 views

How can I cycle posts with a #next and #previous script?

So, I'm having trouble trying to figure out how I would go about coding this kind of implementation for a Wordpress site. I have the first part done but am a little confused on how I would go about ...
0
votes
1answer
978 views

Total number of posts in query (category/tag/author/search results/main page…)

I want to know the total number of posts from the category/tag/author/search result that I am actually seeing. Say for example I am in the main page. If my posts_per_page are 10 and my pagination ...
0
votes
2answers
2k views

Show different number of posts on second page of category

On the first page of a specific category, I want WordPress to show 4 posts per page. On the following pages, however, I'd like to have 6 posts per page. I tried using a conditional query (see below), ...
2
votes
1answer
2k views

Limit the number of pages created by the paging

Any way to limit the number of pages that are created automatically by paging? I would limit to five pages in all, authors, tags, categories ... Ex: "site.com/tag/news/page/5", "...author/admin/page/5....
2
votes
2answers
37k views

Show posts of category in a page

I would like to be able to display all the posts in a certain category on a page so that all posts are on that one page and there is no pagination. If possible, I would also like to display a short ...
0
votes
2answers
577 views

Why won't pagination work?

I am using a page template with code to display all blog posts: <?php /* Template Name: Blog */ ?> <?php get_header(); ?> <div id="main"> <?php // ACF Page number variable $...
3
votes
2answers
406 views

Pagination for sub-pages

I have a top level page with a lot of subpages. When a user visits the top level page they currently see the titles/thumbnails/excerpts of all of the subpages. How can I paginate the display of the ...
0
votes
1answer
204 views

Add pagination to this following template

<div id="omc-main-left-column" class="omc-content"> <?php query_posts($query_string . '&pagename=&page_id='); ?> <?php query_posts('posts_per_page=3'); ?> <...