Questions tagged [nextpage]

The tag has no usage guidance.

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

How is the Page Splitting implemented in the theme?

I am studying how the page splitting is implemented, after inserting in the post. Currently in my theme, all split pages will show the content of the first page. So I think the issue comes from the ...
alancc's user avatar
  • 41
0 votes
0 answers
125 views

Using <!--nextpage--> within a shortcode

Here's one issue I am currently trying to solve and it concerns using <!--nextpage--> within a shortcode. I'm developing a plugin using a shortcode (unfortunately I don't have any URL to share ...
StfA's user avatar
  • 1
0 votes
1 answer
203 views

How to create a page /1 using <!--nextpage-->?

I am doing this on a post: Content 1 <!--nextpage--> Content 2 <!--nextpage--> Content 3 <!--nextpage--> Content 4 <!--nextpage--> Which divides the content of my post/page ...
Castiblanco's user avatar
  • 2,164
2 votes
1 answer
109 views

How to insert text between the page numbers? [closed]

Inside my article I use the tag <!--nextpage-->. Now how to insert text between the page numbers. In HTML it should look like this: <div class="postlink"> <p style="text-align: center;"...
Namor Chavoloh's user avatar
1 vote
1 answer
450 views

Sort order of next/prev sibling page

I have a page with a couple of children pages. On the parent page I want all children page listed alphabetically by title, but I want the sorting to ignore articles like "The" or "A". I achieved this ...
Simifilm's user avatar
1 vote
0 answers
70 views

How to use the filter?

How to use the filter, before WordPress converts <!--nextpage-->? The following construction does not work: add_filter ( "the_content", function( $content ) { $content = preg_replace( "/(\&...
Pavel V's user avatar
  • 11
0 votes
1 answer
638 views

Display Both next previous and number in single page [duplicate]

In a single page, I split long post by nextpage and shows pagination number or next/previous option.But I want to display both number and next-previous option. Here is my single page screenshot one ...
Busra's user avatar
  • 1
0 votes
1 answer
55 views

Multipage Post URL correction

I freshly installed WordPress and checked for multipage post, which is separated by <!--nextpage-->. I'm expecting first URL should be: example.com/wordpress/this-is-test/1/ example.com/...
CyberHelp's user avatar
3 votes
1 answer
177 views

<!--nextpage--> and previews

I am trying to preview my blog post that has <!--nextpage--> but clicking on any of the other pages just brings back to the home page. There was an old thread that never got resolved 4 years ...
Archimedes Trajano's user avatar
-1 votes
1 answer
324 views

Single post pagination

I have used <!--nextpage--> tag to paginate longer individual posts, These longer single posts have structure as Title, Content, A, B, C, By using above said tag, I want to paginate A, B, C ...
PARVINDER's user avatar
1 vote
0 answers
482 views

Loading <!--nextpage--> post with Ajax

Here's the case I got: I've setup post pagination for my website and everything works well. Except one thing - on every new page request all the resources are loaded again. This makes the website ...
mems's user avatar
  • 73
14 votes
2 answers
412 views

Appending content with <!--nextpage--> broken in 4.4

Update 2016-01-21 All current testing on my end is being done on fresh installs of 4.4.1 with the following settings: Plain permalinks Twentysixteen Theme No plugins activated If the post only has 1 ...
Milamber's user avatar
  • 143
0 votes
0 answers
31 views

Need some Tweak my nextpage Function

How I can get the next post URL when I'm on the last page ? e.g. I want go to the nextpost when i'm on the last page... This code need some tweak... Here is my Function: function next_page( $i ) { ...
mems's user avatar
  • 73
4 votes
1 answer
161 views

How to get only the URL of nextpage (without <a> tag)

Here is my Function function next_pages( $args = '' ) { $r = wp_parse_args( $args, $defaults ); extract( $r, EXTR_SKIP ); global $page, $numpages, $multipage, $more, $pagenow; $output ...
mems's user avatar
  • 73
0 votes
0 answers
319 views

inserting <--!pagebreak--> every 200 characters automatically

:) I'm trying to split a post in pages at every 200 characters with <!--nextpage--> I found this code on this page that actually looks pretty good (for my understanding alone - yes I'm a ...
caroslash's user avatar
1 vote
1 answer
2k views

Programmatically inserting page breaks

Is there a way to add a page break in WordPress programmatically? I'm trying to do this within a PHP loop that goes inside a post as a widget, it generates information that it gets from YELP through ...
Lloan Alas's user avatar
0 votes
1 answer
64 views

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?
T.Todua's user avatar
  • 5,709
0 votes
2 answers
144 views

Test for if you're on 1st page of paginated post (with nextpage quicktag)

I'm developing a site that involves a lot of long posts I'd like to break up using the nextpage quicktag. On the first page there's a large splash photo in the header that I'd like to disappear on ...
Zachary Leven's user avatar
0 votes
1 answer
35 views

Widget background images missing on second blog excerpt page

On my main blog page, there are category images on the left-hand side. When I click "next page" at the bottom of the excerpt list, and the second page of excerpts loads, the images are no longer ...
jodybethw's user avatar
1 vote
1 answer
4k views

<!--nextpage--> as a shortcode within the loop?

Anyone implemented this successfully? I want to include the <!--nextpage--> within a single post loop as a shortcode. I tried to echo it, the tag shows up but the post doesn't get divided into ...
David Reis's user avatar
1 vote
1 answer
1k views

Please help me with <!--next page--> tag and php code [closed]

I'm writing a php code because I want to get a list of items from sql database and insert it in a post of my wordpress website. Since the items could be too many for a single post, I would like to ...
GabrieleG's user avatar
1 vote
1 answer
168 views

Can I use images as anchor tags with <?php previous_post(); ?><?php next_post(); ?>

Rather than displaying the title of the next page, I would like to display a large arrow that can be clicked on. To do this I shall either be using image files, or the tag. Can this be done?
Josh's user avatar
  • 75
0 votes
1 answer
2k views

Get next and previous page of paginated post

A lot of a site I'm creating for a client is going to be posts with different pages for posts like "Top 10 " etc. This means I need to paginate the posts to create different pages. The best way I've ...
Tom Oakley's user avatar
0 votes
2 answers
68 views

Give wp link pages it's own template

Here's the scenario, I'm working on a site with 100s of of paged posts using the wp_link_pages tag. The issue I'm having is that they're things I want displayed on the main post that I don't want ...
Chozen's user avatar
  • 163
1 vote
2 answers
2k views

WordPress /page/2 not working

When clicking the next_posts_link it just shows the same posts as on page 1. It appears to work fine on the category pages and it is only affecting the homepage (home.php) Thanks! <?php $...
Storm3y's user avatar
  • 53
0 votes
0 answers
22 views

How do I automagically use <!--nextpage--> in custom page template? [duplicate]

I have searched a lot now and not found a real solution that helps me with this: I am creating a custom page template for an archive page. This (static) page will show all my blog posts ordered by ...
rob_st's user avatar
  • 166
0 votes
0 answers
162 views

How do I paginate posts page with $wpdb?

I am using this to get the posts: (...) if ( empty( $categories_defined) ) { $posts = get_posts($args); } else { global $wpdb; $posts = $wpdb->get_results( $wpdb->prepare( "SELECT * ...
user1627363's user avatar
0 votes
1 answer
749 views

"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'...
qwerty's user avatar
  • 665
0 votes
1 answer
1k views

Automatically adding a link to the next page link before '<!--nextpage-->' tag in posts?

I'm using the following snippet to automatically break a too long post into multiple pages function filter_more_with_nextpage( $content ){ $content = str_replace( '<!--more-->', '<!--...
unfulvio's user avatar
  • 1,794
0 votes
1 answer
638 views

alternative to wp_link_pages() that only shows link to last page

I plan to have posts with multiple pages that would receive updates (added pages) over time. what i want to do is to display the direct link to the last page of the post on the main index. for ...
ewanskie's user avatar
0 votes
1 answer
235 views

Trying to display next and previous set of posts on separate page (not parent page)

If anyone has any suggestions or know what I'm doing wrong would be a great help. I'm wanting 3 custom news posts per page and then links to the next list of news items and so on. I've tried next page ...
sledgeweight's user avatar
1 vote
1 answer
91 views

Show all parts in multipage post

You can do a multipage post by using the <!--nextpage--> inside the post. The question is: How can I display the whole post (not paged) for this post.
Yousf's user avatar
  • 113
0 votes
1 answer
1k views

Next Page & Previous Page links - skipping a single page - how?

On my Wordpress webpage, I have several Pages. Now I want to display "Next Page" & "Previous Page" links. I know that there are several ways out there to do this, but they all fail because I want ...
Sven's user avatar
  • 371
4 votes
2 answers
8k views

Shortcode to insert <!--nextpage-->

Since wordpress does not have a menu icon (aka "user friendly) way to add the command to a post or page, I'm trying to create a shortcode to do it. However, as logic would have it, its not that easy....
N2Mystic's user avatar
  • 3,173
-2 votes
1 answer
2k views

Next Page Link shows same posts on custom template

I have a Page, with Custom Page Template to display 6 "Posts" with a specific category on that page. I have tried: <div class="navigation"> <div class="alignleft"><?php ...
SNaushadS's user avatar
0 votes
1 answer
352 views

Single article separated into multiple pages makes Facebook Like button detect as completely separated articles

I run a multiple author Wordpress platform where authors post articles where many of them are separated in several pages. The visitors can navigate the pages within the article by clicking on a Next ...
Amanda Duke's user avatar
0 votes
1 answer
96 views

Modifying Page-Links <!--nextpage--> format

I'm developing a mobile theme and need to change the format of posts that are using the tag. Can I add something to functions.php to change the format? Ideally i'd like to make each page a list-...
HjalmarCarlson's user avatar
1 vote
3 answers
548 views

Allow Users to Choose Pagination or Next/Previous (Combine)

I'm building a themes option panel and want users to be able to choose between Next/Previous links or pagination in my archives and homepage. I need help combining the two functions below (pagination ...
AndrettiMilas's user avatar
1 vote
1 answer
166 views

Is it possible to skip certain specified pages when using < prev and next > links?

thanks for taking a minute to read my question. I've done some googling and I can't seem to find the answer to this question anywhere. Forgive me if it's somewhere here on stack exchange already. I'...
timshutes's user avatar
  • 1,010
0 votes
2 answers
2k views

Make Current/Active Page Number a Link (WP_LINK_PAGES)

With the default wp_link_pages the current/active page number is not a link. I would like to find a code/hack which turns the current/active page into a link to the top of the page. I am already ...
AndrettiMilas's user avatar
2 votes
1 answer
444 views

Previous & Next on Index Page broken

So the Next/Previuos on my index page is broken. It goes to page 2 but doesn't refresh the posts. It will work on my categories and it will work on my posts but it just won't work on the from page. ...
Howdy_McGee's user avatar
  • 20.5k
1 vote
1 answer
2k views

Are shortcode functions applied while rendering the content, or are they executed and stored with the post content?

I'm not sure if I've asked the question properly, apologies for that! What I'm trying to do is, output a <!--nextpage--> tag via a shortcode. But it doesn't work, I guess because shortcodes are ...
Rutwick Gangurde's user avatar