/    Sign up×
Community /Pin to ProfileBookmark

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. The site is here: [URL=”http://terrybraunstein.com/portfolio1/”]http://terrybraunstein.com/portfolio1/[/URL]

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 [B]single-portfolio.php[/B] 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 ‘[B]next[/B]‘ and ‘[B]prev[/B]‘ 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 a separate post just following this one.

Thanks
Marek

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@mr108authorNov 17.2016 — You can download the code for my post above:

https://app.box.com/s/tnm76ns6e5jg4di78xcg5zzp18awwemy
Copy linkTweet thisAlerts:
@Rihan_sharmaNov 23.2016 — That should not be necessary and is not meant to be since in the old theme version (v.1.2.1) which you can see here http://nickstreet.com/ the images for the Categories are NOT displayed grouped together, they are randomly displayed or rather on the basis of preference what the site owner likes the viewers to see first.

For example the Category Editorial contains 4 Portfolio items: Calor LPG, Behavioral Mimicry, A Plus, and Google Packman. When you click on Editorial you'll see the selection of these 4 items in a group. When you click on each item and view in large display and then click on the Next button (in this theme version it's the Next on the right side between the cross and Previous buttons - the other 2 Next and Previous buttons to the left are for navigation between the images in that portfolio item itself) then you go to the next CATEGORY in one of the 4 of the EDITORIAL group and NOT to the next Portfolio item displayed under ALL. So the ordering of the Portfolio items under ALL does not matter - the 4 Categories under Editorial are NOT displayed together or in sequence or together.

Wooden Pen Drive | Promotional Power Bank
Copy linkTweet thisAlerts:
@mr108authorNov 23.2016 — That should not be necessary and is not meant to be since in the old theme version (v.1.2.1) which you can see here http://nickstreet.com/ the images for the Categories are NOT displayed grouped together, they are randomly displayed or rather on the basis of preference what the site owner likes the viewers to see first.

For example the Category Editorial contains 4 Portfolio items: Calor LPG, Behavioral Mimicry, A Plus, and Google Packman. When you click on Editorial you'll see the selection of these 4 items in a group. When you click on each item and view in large display and then click on the Next button (in this theme version it's the Next on the right side between the cross and Previous buttons - the other 2 Next and Previous buttons to the left are for navigation between the images in that portfolio item itself) then you go to the next CATEGORY in one of the 4 of the EDITORIAL group and NOT to the next Portfolio item displayed under ALL. So the ordering of the Portfolio items under ALL does not matter - the 4 Categories under Editorial are NOT displayed together or in sequence or together.
[/QUOTE]



Thanks Rihan,

I don't know at all [U]why [/U]you posted this text. It's part of my answer/clarification that I gave on a comment on another forum where I posted the question about the same bug. The thread at that forum is here http://www.dynamicdrive.com/forums/showthread.php?80630-Bug-in-the-Portfolio-display and if you read [B][U]carefully [/U][/B][U]the whole thread[/U] than you'll see that your "answer" here does not make any sense at all.

Cheers.
×

Success!

Help @mr108 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 11.14,
social: @webDeveloperHQ,
});

legal: ({
terms: of use,
privacy: policy
analytics: Fullres
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: Anonymous,
tipped: article
amount: 1000 SATS,

tipper: @aldoushuxley,
tipped: article
amount: 1000 SATS,

tipper: Anonymous,
tipped: article
amount: 1000 SATS,
)...