Tagged: portfolio items
October 17, 2013 at 6:16 pm #177097
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.October 18, 2013 at 3:15 am #177254
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.
IsmaelOctober 18, 2013 at 12:26 pm #177357
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?
MatteoOctober 18, 2013 at 4:08 pm #177449
The arrow would only be disabled if there were no other posts within the same category.
DevinOctober 18, 2013 at 4:54 pm #177482
have a look a this page.
I have more than one items for categories but I cannot see the arrows.
MatteoOctober 18, 2013 at 5:36 pm #177512
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.October 19, 2013 at 2:25 pm #177885
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…
Thanks!October 19, 2013 at 3:28 pm #177888
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
You must be logged in to reply to this topic.