• Resolved christophermeeks

    (@christophermeeks)


    Thanks for the help in advance. I searched everywhere and couldn’t find a solution.

    This is my site so you can follow along: dailylayout.com.

    Here is my basic problem:

    My home page is correctly displaying only my most recent post, however the only way I can go to a previous or next post with the correct permalink is to use:

    <?php next_posts_link() ?>
    &
    <?php previous_posts_link() ?>
    (note the “s”)

    This actually just navigates to previous or next Pages (at least in the URL). What I want it to do is operate just like the Single page which uses:

    <?php next_post_link() ?>
    &
    <?php previous_post_link() ?>
    (note the lack of an “s”)

    You can see this by going to the archive, then clicking on a post. When the link navigation is used on Single.php, it correctly navigates between the actual posts (noted by the correct permalink), not the pages. Does this make sense?

    What is the importance if they act the same? Well the “page” url from the homepage is relative to the most recent post, so it will change every time I update the site. Anytime someone want to pass a URL around, they won’t naturally be passing the permalink, unfortunately.

    Is there any way to fix this? Thank you so much in advance, I’ve been tearing my hair out over this.

    p.s. Just to add on to this, I believe my homepage isn’t showing the actual post in the same way single.php does. I think it is simply suppressing other posts and showing all of the content for that post.

    -Chris

Viewing 1 replies (of 1 total)
  • wp-photo

    (@wp-photo)

    This topic says its resolved but there is no solution…

    I have found several posts that have asked for this problem (including myself) but there is no solution.

    Could you post yours?

    Thanks,

    Carolina

Viewing 1 replies (of 1 total)

The topic ‘Can’t get a previous post from homepage, only previous page…’ is closed to new replies.