Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Pagination within category's posts

Discussion in 'Troubleshooting & How-To's' started by mircofragomena, Aug 5, 2015.

  1. mircofragomena

    New Member

    Joined:
    Aug 5, 2015
    Messages:
    1
    Likes Received:
    0
    I've 4 categories and each of it has between 10 and 40 posts.
    I activated the prev-next pagination on posts, but when I arrive at the last/first post of category X, the pagination doesn't loop within the category, but it shows the first/last of the prev/next category.
    How can I make the pagination looping inside the category the current post is?

    Example: I'm on a post in category 'Name 1', and I'd like to have the pagination that goes between the next and previous post of the category 'Name 1' again.

    Here there's the 3 snippets of code I believe might make the difference :)

    pagination.php: http://pastebin.com/KEG6rTLA
    category.php: http://pastebin.com/yV97zygW
    single.php: http://pastebin.com/8h5xNAKj

    I've been struggling with this for so long, if someone can help me would be really appreciated :)
    Thank you!
     
    #1

Share This Page

Monarch Social Sharing Plugin