Tagged: portfolio items
Here is the website in progress: http://rmcantiques.com/z
A typical page: http://rmcantiques.com/z/?portfolio=french-xix-postmans-desk&preview=true&preview_id=2394&preview_nonce=998c34c4e9
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.
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.
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: http://core.trac.wordpress.org/ticket/17807
The topic ‘Previous/Next buttons on Portfolio Items restrict to 1 category?’ is closed to new replies.