Bug in the Portfolio display

Hello,

I’m helping a friend with her WordPress website and the portfolio display on a that site most likely has a bug. To see the page I’m referring to check my signature below.

When you select one of the Portfolio Categories, e.g. ‘Sculpture’ (last on the right) and click on the second item from the top-left (‘Ladder Dreams’) and once it opens, if you click on the ‘Next’ button in the top-right corner to view next item in the ‘Sculpure’ category, then completely unrelated item from ‘Artists Books’ category comes up - (‘My Bookhouse:…’). And if you click on ‘Previous’ button instead when viewing ‘Ladder Dreams’ then ‘Empty Nest – 1988’ which is from ‘Photography’ Category comes up. The right navigation should be that when you are in a ‘Sculpture’ Category, then the ‘Next’ or ‘Previous’ buttons will take you to the next/previous series of images in that Category.

I had a look at the code of the single-portfolio.php file which is part of that WP theme and which I guess is managing the display of the single portfolio item and the navigation on it. I guess the bug must be somewhere in the places where the ‘next’ and ‘prev’ appear, and where the assignment of the post’s id is set. But I don’t know anything about php coding so it’s not possible for me to determine where the changes have to be done.

Any idea what and where I have to make the changes?

The code is in the attached zip file and to see the page I’m referring to check my signature below.

Thanks
Marek


single-portfolio.zip (2.75 KB)

Sponsor our Newsletter | Privacy Policy | Terms of Service