• Hello, I am using a variation of the Kubrick theme.

    When navigating to previous entries, by default it’s:

    mysite.com/page1

    I want to change it to:

    mysite.com/postURL

    The postURL would be the same as the URL for the original post.

    Is this possible? Thank you for your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • It helps to provide a link so people can see what you are referring to.

    Thread Starter JG99

    (@jg99)

    http://www.jillij.com/page/2/

    Looking at the bottom of this page, you can see where you have “previous entries” and “next entries”

    “previous entries” takes you to page 2, 3, 4, etc.

    But when these entries were originally posted, they had their own unique URLs, not “page/2/”

    I would like the navigation to “previous entries to take me to to the original URL’s for each entry, rather than having them numbered 1,2,3 etc.

    I hope this makes sense.

    Thank you for trying to help me.

    if you are on index.php. the links are probably done with ‘previous_posts_link()’ and ‘next_posts_link()’
    ( http://codex.wordpress.org/Template_Tags/next_posts_link
    http://codex.wordpress.org/Template_Tags/previous_posts_link )
    which link to the next/prev ‘page of posts’ (pagination).

    even if you have set the ‘posts per page’ to 1, and it appears to you to make sense to link to the next post directly, it does not make sense in the broader setup.

    different: if you are viewing a single post on single.php; there the links are done with ‘previous_post_link()’ and ‘next_post_link()’ and point directly to the url of the next/prev post.
    ( http://codex.wordpress.org/Template_Tags/next_post_link
    http://codex.wordpress.org/Template_Tags/previous_post_link )

    if you are on the front page and link to the direct url of the next post (say you made your own function to do this) this would lead to the single post view done by single.php; so you are leaving the front page (and the way the formatting was done) and get the ‘natural order’ all mixed up.

    I have checked a few other sites and that seems to be how it works. What were the unique URLs you were seeing?

    I think @alchymyth has it right and you were seeing those “unique URLs” on single post pages.

    Thread Starter JG99

    (@jg99)

    OK, point taken – but why the need for page 1, 2 etc at all? Why not have each page with its own identifying URL exclusively? Why the need for redundancy?

    but why the need for page 1, 2 etc at all?

    these are not ‘exactly’ pages, more like an extension of the template file, (in some way like drawers in a wardrobe) in case of an ‘overflow’ when there are more posts than designated to be shown on the template at the same time.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘previous entries – change page number to post URL?’ is closed to new replies.