Forums

<!--nextpage--> links - can i name them? (7 posts)

  1. modelcitizen
    Member
    Posted 1 year ago #

    i have some posts split using the <!--nextpage--> code.

    currently im using:
    <?php wp_link_pages('before=&after='); ?>

    which gives me a little line of links:
    1 2 3 4 5 etc.

    what i'd really like is to be able to replace "1" with "words" and then start with 1,2,3,4 etc. so i end up with the links:
    words 1 2 3 4 etc.

    I've tried doing a PHP string replace but no luck...

    Is there ANY way i can do this?

    any help much appreciated.

    cheers.

  2. modelcitizen
    Member
    Posted 1 year ago #

    nobody?

  3. schraegschrift
    Member
    Posted 1 year ago #

  4. moshu
    Member
    Posted 1 year ago #

    Why nobody ever reads the Docs before posting?
    Template_Tags/wp_link_pages

  5. schraegschrift
    Member
    Posted 1 year ago #

    Okay moshu, you are right, ... with pagelink I can create the www.domain.com/example-post/part-x/ Version. But what about the last version?

    No numbers, just strings. Different strings for each page.

    e.g.

    www.domain.com/Chess/Chapter-One-Understanding-the-King/
    www.domain.com/Chess/Chapter-Two-King-and-Pawn-Endgames/
    www.domain.com/Chess/Chapter-Three-Rook-and-Pawn-Endgames/
    ...

  6. moshu
    Member
    Posted 1 year ago #

    If it doesn't give you an option for that - you can not. Unless you write your own function for it.

  7. schraegschrift
    Member
    Posted 1 year ago #

    wow... my own function ... that wouldt be cool ;-)
    thx so far

Topic Closed

This topic has been closed to new replies.

About this Topic