Previous/Next post should show posts from same category

  • Author
    Posts
  • #103735

    HI There,

    Can you please help us how to change the settings so that previuos/next post links always go to posts from same category?

    If this is not possible or not easy to make then please suggest us how t disable the previous/next post links after the posts.

    Thanks in advance,
    Sambit

    Website: lekhalikhi.sobbanglay.com

    #103795
    Zed
    Cryout Creations mastermind

    The next/previous links are core WordPress functionality and don’t provide the default functionality of linking within a category only.

    The core calls are in the single.php template, which can be customized using a child theme.
    Edit the core previous_post_link() and next_post_link() calls.

    Hiding the links is even simpler with a bit of CSS:

    .single #nav-below {
        display: none;
    }

    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Previous/Next post should show posts from same category’ is closed to new replies.