<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress &#8250; Support Topic: Link to next page when using &#60;nextpage&#62; tag</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Topic: Link to next page when using &#60;nextpage&#62; tag</description>
<language>en</language>
<pubDate>Tue, 24 Nov 2009 14:57:08 +0000</pubDate>

<item>
<title>rkgneuschul on "Link to next page when using &#60;nextpage&#62; tag"</title>
<link>http://wordpress.org/support/topic/279641#post-1222199</link>
<pubDate>Wed, 23 Sep 2009 17:36:53 +0000</pubDate>
<dc:creator>rkgneuschul</dc:creator>
<guid isPermaLink="false">1222199@http://wordpress.org/support/</guid>
<description>&#60;p&#62;There's no automatic way to add such a link as far as I know; however you could construct a code snippet for her to use as part of a copy/paste/edit process - provided she's organised enough and disciplined enough to edit it correctly.&#60;/p&#62;
&#60;p&#62;The generic format for such a page link is&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;a href=&#38;#39;http://bloginfo(&#38;#39;url&#38;#39;)/?page_ID=N&#38;amp;page=n&#38;#39;&#38;gt;your tag link&#38;lt;/a&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;where &#60;/p&#62;
&#60;p&#62;&#60;code&#62;bloginfo(&#38;#39;url&#38;#39;)&#60;/code&#62; is the root URL of the site&#60;/p&#62;
&#60;p&#62;N is the unique ID for the root page that holds the nextpage links&#60;/p&#62;
&#60;p&#62;n is the number of the required subpage [each nextpage break creates a new subpage]. The root page itself always has a subpage number of 1, so all subsequent sub-pages number from 2 upwards: you may need to know that to construct previous/next links correctly. In other words the root page would always be &#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;a href=&#38;#39;http://bloginfo(&#38;#39;url&#38;#39;)/?page_ID=N&#38;amp;page=1&#38;#39;&#38;gt;your tag link&#38;lt;/a&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;You can extract the ID of a current root page with code using &#60;code&#62;get_the_ID();&#60;/code&#62; and the number of subpages in it using &#60;code&#62;echo $numpages;&#60;/code&#62; or &#60;code&#62;print_r $numpages;&#60;/code&#62; etc. &#60;/p&#62;
&#60;p&#62;Hope this helps.
&#60;/p&#62;</description>
</item>
<item>
<title>wi_engineer on "Link to next page when using &#60;nextpage&#62; tag"</title>
<link>http://wordpress.org/support/topic/279641#post-1102126</link>
<pubDate>Sat, 13 Jun 2009 16:44:19 +0000</pubDate>
<dc:creator>wi_engineer</dc:creator>
<guid isPermaLink="false">1102126@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;A client is using &#38;lt;!-- nextpage --&#38;gt; to split up a post into multiple pages.  She's asked if there's a way to reference the next page.  That is, in addition to the &#34;Pages   1 &#124; 2 &#124; 3 &#34; that is added, she wants a link that says &#34;&#38;lt;Post Title&#38;gt; Continued here...&#34;  &#60;/p&#62;
&#60;p&#62;So, is there any way to add to a post something like:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;a href=&#38;quot;(php tag to next page of the post)&#38;quot;&#38;gt;(php tag to post title) Continued here... &#38;lt;/a&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;that would be typed in when a post is created in the dashboard?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Jason
&#60;/p&#62;</description>
</item>

</channel>
</rss>
