The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
75 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 ...
0
votes
1answer
27 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?
0
votes
2answers
30 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 ...
0
votes
0answers
35 views

Split gallery using <!--nextpage-->

I usually split my long posts of photos when there are more than 10 photos in one post. The problem is that since a few days ago, I am using galleries and I can't manually add the ...
0
votes
1answer
21 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 ...
1
vote
1answer
63 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 ...
1
vote
1answer
79 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 ...
0
votes
0answers
51 views

How to display everytime Next and Previous button?

How i can display everytime next and previous? When i'm in first page or last page the previous and next button disappear, i want display everytime the next and previous button. Here is my source ...
0
votes
0answers
114 views

Insert <!--nextpage--> after every x img tags in a post

I want to insert <!--nextpage--> after every 10 image tags in a wordpress post (if there are 30 images, I'll get 3 pages), but I can't seem to figure out how to do it. I found a php function that ...
0
votes
0answers
33 views

How to use <!--nextpage--> and local links <a href=“#info”> tags in tandem

I am two days old in the wordpress world and I'm stuck with an apparently simple problem. In my old site I had a long-ish privacy policy page that used local links extensively. <a ...
1
vote
1answer
129 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?
0
votes
1answer
133 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 ...
0
votes
2answers
35 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 ...
0
votes
2answers
493 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 ...
0
votes
0answers
13 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 ...
0
votes
0answers
72 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 * ...
0
votes
1answer
94 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. ...
0
votes
1answer
188 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-->', ...
0
votes
1answer
281 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 ...
0
votes
1answer
138 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 ...
1
vote
1answer
47 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.
0
votes
1answer
473 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 ...
3
votes
2answers
2k 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 ...
-2
votes
1answer
478 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 ...
0
votes
1answer
286 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 ...
0
votes
1answer
57 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 ...
1
vote
3answers
478 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 ...
1
vote
1answer
104 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. ...
0
votes
2answers
1k 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 ...
2
votes
1answer
397 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. ...
1
vote
1answer
1k 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 ...