WordPress.org

Ready to get started?Download WordPress

Forums

Multipage Pages (13 posts)

  1. Jinsan
    Member
    Posted 9 years ago #

    Hello

    I have a rather longwinded entry for my about page and would like to split it into bits.

    The headings are:

    the author
    the site
    the design
    contact

    now what I'd ideally like is to have them all on seperate pagesm and below the content to be a link which says:

    the site
    the design
    contact

    So that it's the next thing to view.

    I'd tried using the nextpage function but that didn't work, so I am very much stuck and need help and would welcome suggestions.

    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.

    Thanks in advance

  2. moshu
    Member
    Posted 9 years ago #

    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.

  3. Jinsan
    Member
    Posted 9 years ago #

    as i said above, I used it but it didn't work

  4. Jinsan
    Member
    Posted 9 years ago #

    le bump de bump - any other ideas?

  5. Jinsan
    Member
    Posted 9 years ago #

    sorry for bumping again, but I really hope Stephen Hawkings will provide a solution to this problem

  6. Jinsan
    Member
    Posted 9 years ago #

    you wouldn't have to divide the pages for me, you can just tell me how to it.

  7. Kafkaesqui

    Posted 9 years ago #

    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?

  8. moshu
    Member
    Posted 9 years ago #

    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.

  9. Jinsan
    Member
    Posted 9 years ago #

    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

  10. moshu
    Member
    Posted 9 years ago #

    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???

  11. Jinsan
    Member
    Posted 9 years ago #

    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.

  12. moshu
    Member
    Posted 9 years ago #

    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(); ?>

  13. Jinsan
    Member
    Posted 9 years ago #

    Yeap just figured it out just before you posted, great stuff - thanks for the help ;)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.