Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #177097

    Here is the website in progress:
    A typical page:

    I would like to restrict the previous and next button links at the sides of the browser to just one category. Currently, they are going through every portfolio item regardless of category. Is this possible?
    Eventually the site will have over 1000 portfolio items. Viewers may get lost.


    Hey mikey66!

    Edit functions-enfold.php, find this code on line 327:

    function avia_post_nav($same_category = false)

    Replace it with:

    function avia_post_nav($same_category = true)

    Remove browser cache then reload the page a few times.



    I had the same request. I did make the change but it doesn’t work. With the suggested code the arrow where disabled.

    I did make something wrong?




    The arrow would only be disabled if there were no other posts within the same category.

    Best regards,


    have a look a this page.

    I have more than one items for categories but I cannot see the arrows.



    Thanks for the quick response. But that changed the code seems to have disabled the arrows completely. I have multiple posts in the same category, but now no arrows at all.


    Ismael & Devin,
    If you check this page:

    you will see that changing the code as you suggest seems to disable the arrows entirely. There are multiple portfolio posts in this category, but no arrows show. Is there a minimum number of posts required to trigger the arrows appearing? The code seems like it should work…



    It’s currently not possible to restrict the next/previous buttons to one category if you want to use it with portfolio entries. Basically it’s a wordpress limitation which will probably be fixed in 3.7 or 3.8 but for now it’s not possible. Also see:


Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Previous/Next buttons on Portfolio Items restrict to 1 category?’ is closed to new replies.