When you write a page don’t you have a quicktag named “page” above the text area? That would do it… it’s true, it will have a link at the bottom of the page like:
Page 1 2 3 4 – not titles.
Thread Starter
jinsan
(@jinsan)
as i said above, I used it but it didn’t work
Thread Starter
jinsan
(@jinsan)
le bump de bump – any other ideas?
Thread Starter
jinsan
(@jinsan)
sorry for bumping again, but I really hope Stephen Hawkings will provide a solution to this problem
Thread Starter
jinsan
(@jinsan)
you wouldn’t have to divide the pages for me, you can just tell me how to it.
I get <!--nextpage-->
to work in Pages, but only on my setups that are using custom permalinks. So the question is, are you using the default permalinks?
I guess your problem is here:
I created the about.php file and added the content via the WP editor, so far so good, but just need to split the damn thing.
You don’t have to create an about.php file (unless you want a template named “about”)!
Just open Write Page in your admin panel, paste or type your content in the text field – and divide it wher you want by clicking the “page” quicktag button. Pu in the title field “about” and you’ll have a Page.
If you use permalinks you’ll be able to link to it (e.g. from a horizontal menu by hardcoding the path: mysite/myblog/about ), but it could be don by page_id, too.
If you want to hide it in the Pages list in the sidebar, just look up in the Codex how to do it with the page list tag.
Thread Starter
jinsan
(@jinsan)
Hmmm that’s an interesting idea – see the intention was actually to have the template as is, just to simplify the process. I’ll try the write pages thing, I just don’t particularly trust it as there seem to be some issues with having to meddle with htaccess for every page written etc etc, also I wanted to avoid the whole link in a sidebar (for which I don’t have but it might screw something up). Pages comes across as a still in development item, so I thought by creating a seperate file I would avoid all those issues.
@kaf using permalinks I’ve set myself, but I believe the issue was that I was using a php file I actually suspected it might be, but…well someone to explain why using a seperate about.php template file would actually devoid the use of the nextpage feature? The content is still written within the editor, it just so happens the php file is seperated – I can see this causing problems in the future for other things I may want to do, or seperate files I want to create. Quite a headache then, or perhaps I’m getting ahead of myself.
It’s all rather demoralising. I may just create seperate files again, and link them at that way.
Thanks for the suggestions
hmmm…
issues with having to meddle with htaccess for every page written
WP takes care of that if your htacces file is writeable.
I wanted to avoid the whole link in a sidebar
The Pages list appears only when the <?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>' ); ?>
tag (or something similar) is there…
Pages seem to be pretty stable feature.
On the other hand. If you create your about.php file as a “page template” – which is possible! – do you have the proper tag in it for paging???
Thread Starter
jinsan
(@jinsan)
hmmmm – see that’s an idea I like better, where would the paging tag go exactly? Anyway within the content area I presume – as I said, the about.php is just te template, the content was written within the editor, so if adding the tag would fix that, it’ll be better for me.
Hmm couldn’t find the page tag
http://codex.wordpress.org/Template_Tags
And what would be the full php code for it?
OK I found these pages:
http://codex.wordpress.org/Template_Tags/wp_link_pages
http://codex.wordpress.org/Template_Tags/link_pages
But it’s all gibberish to me.
You can always look up in the deafult theme, wher it looks like this:
<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
I am using just a simple one:
<?php wp_link_pages(); ?>
Thread Starter
jinsan
(@jinsan)
Yeap just figured it out just before you posted, great stuff – thanks for the help 😉