WordPress.org

Ready to get started?Download WordPress

Forums

in post links to second "page" (4 posts)

  1. fred
    Member
    Posted 9 years ago #

    I'm new at this but I thought that I would take one of my really long posts and use the NEXT PAGE feature to break it into two pages. I forgot that I had links in the first "page" to stuff in the second. Jump or target links I think they are called. Don't know.

    So now when someone clicks a link with #stuff that is below the NEXT PAGE taggie thing, it reloads the page but doesn't link to page 2.

    How do I get these to work? They are in the some post, but WP sees it different when the page is in the screen.

  2. moshu
    Member
    Posted 9 years ago #

    Yes, because the URI of the second page is something like this (when using permalinks)
    http://www.yoursite.com/blog/2005/05/26/paged/2/
    so the #stuff should come AFTER this. It won't work directly, but there is a workaround. Make your links like this:
    <a href="./2005/05/26/paged/2/#stuff">link</a>
    Of course, change it according to your permalink structure.

  3. fred
    Member
    Posted 9 years ago #

    I'm not using permalinks, so would this be differnt? And what's the period mean?

  4. moshu
    Member
    Posted 9 years ago #

    Don't worry about the period :) That makes the link to start with the URI where your blog is.
    If you don't use permalinks check what is in the address bar when you click on "2" or "3" when seeing the next "page" of the paged post, and copy the part that comes after yoursite.com or yoursite.com/blog/` - depending on where you blog is (i.e. in the root or in a directory) + add the #stuff part as above.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags