Articles of paged

Get a link to paged(<!–nextpage–>) part?

I want to get a link (like get_permalink($id) ) to it’s specific page of a post (created by <!–nexpage–> tag).. how to achieve this?

Pagination, query more pages at once

I’m wondering if it is possible to do such thing on WordPress, I have an infinite scroll to display my posts, I’m keeping track the pages updating the url: and I have a code like that: if(isset($_GET[‘pag’])) { $paged = $_GET[‘pag’]; } else { $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; }; $args = […]

Get paged outside of loop?

Is it possible to get paged outside of the standard WP loop? I already use this inside the loop: <?php if ( $paged >= 2 ) { ?> Some text for the 2nd page on up <?php } ?> But I’d like to be able to echo some text outside the loop on all pages two and […]

Differnt page template for page 2 of blog feed

Is there a way I can use one page template (A custom page template for example) for the first page of my blog and then another template (Index.php for example) for page 2, 3, 4, etc.?

Archive template combined with post slider and regular posts

I am trying to find the best and easiest way of modifying my archive.php template to contain slider on top which slides the 4 first posts and the rest (6) will be displayed beneath as a regular posts. it should work dynamically with one loop, meaning that if I am clicking on “Previous” or “next” […]

“paged” in WP_Query returns 0 posts

If i don’t supply a paged value (get the first page), it works. But when i try to get the next page by doing paged => 2 it doesn’t find anything even though there are plenty of posts to get. That’s the first page showing the first ten posts. It works fine. If you scroll […]

Custom WP_Query always respond with 200 status even when no entry

I’m using a custom WP_Query. The code is something like below: $portfolio_args = array( ‘post_type’ => ‘portfolio’, ‘posts_per_page’ => 5, ‘paged’ => get_query_var( ‘page’ ) ); $portfolio_query = new WP_Query($portfolio_args); Now, my portfolio post type has 15 entries (thus it is good for 3 pages). I can navigate to all these pages, but the issue […]

'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 = array( ‘offset’ => 1, ‘cat’ => -22, ‘paged’=>$paged ); $recent = new WP_Query($args); while($recent->have_posts()) : $recent->the_post(); // […]

Querying posts only if the current page is not paged?

For example, I want to query posts in a page. But I don’t want to show them when the user clicks the pagination links. Pretty much like what happens in Youtube. You only see the Top comments in the first page but when you click Next they disappear. Any suggestions to accomplish this? URL example: […]

Get current page number of splitted article

I am trying to find a way to get the current page number of an article that has been splitted into several pages with the use of: <!– nextpage –> There is an example that can be found here: But this doesn’t work for me – it always returns 0: $paged = $wp_query->get( ‘paged’ […]