WordPress.org

Ready to get started?Download WordPress

Forums

link_pages() separators for accessibility (6 posts)

  1. MikeCherim
    Member
    Posted 7 years ago #

    I was wondering if anyone knows how to insert content after the numbers when the nextpage tag is used? What I want to insert is a comma or vertical bar separator between the links (or maybe list-organize them). The documentation seems to suggest those links are comma-separated, but they are not.

    If an argument (parameter?) isn't known, can someone tell me which line of which file I need to edit to make this possible please? I've hunted through the template function files, and I think it's in the posts functions file, but I'm unsure where.

    Ideally I'd like to do this in the theme files, but if I can't, I will edit the core files for this particular installation. I just want to make it so... for improved accessibility.

    Thanks.
    Mike

  2. MikeCherim
    Member
    Posted 7 years ago #

    Anyone? Anyone at all?

  3. MikeCherim
    Member
    Posted 7 years ago #

    Nobody knows this information? I figured somebody here would know how to introduce separators. Please help.

  4. MikeCherim
    Member
    Posted 7 years ago #

    Would it help if I said please? Somebody here must know the answer.

  5. whooami
    Member
    Posted 7 years ago #

    http://codex.wordpress.org/Template_Tags/link_pages

    Pay close attention to the words "before" and "after" on that page. And if you cant seem to correlate what you are trying to accomplish with what we all read -- an example of what you are using in your code would be helpful.

  6. MikeCherim
    Member
    Posted 7 years ago #

    Thanks for the reply whooami. Problem with before and after is that's what wrapping all the links. What I need is separators between the links.

    Right now I have this:

    link_pages('<p class="continue">Continuation Pages: ', '</p>', 'number');

    And the output is this:

    Continuation Pages: 1 2 3

    No separators between the links. They should have a comma between them but they don't. Ideally, I want my output to be...

    Continuation Pages: 1, 2, 3

    Or I can put them in a list. That'd be cool too.

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic