-
AuthorPosts
-
May 1, 2015 at 10:38 pm #438295
Is there anyway to control the previous / next order when viewing a portfolio entry inside a category? I have a category for televisions. But when viewing a television within the category, the next item might be a Radio because that is next item in the list of all portfolio items.
May 4, 2015 at 4:16 pm #439019Hi squarelight!
Please add following code to Functions.php file of your child theme in Appearance > Editor
add_filter( 'avia_post_nav_settings', 'enfold_customization_same_cat' ); function enfold_customization_same_cat( $s ) { $s['same_category'] = true; return $s; }
Cheers!
YigitMay 6, 2015 at 4:37 pm #440454It didn’t work. Is there something I’m missing?
May 7, 2015 at 8:39 am #440812Hey!
What happened when after you added the code? Could you please provide us with a temporary admin login so that we can take a closer look? You can post the details here as a private reply.
Regards,
RikardMay 10, 2015 at 3:58 am #442027This reply has been marked as private.May 11, 2015 at 12:14 pm #442388Hey!
The login credentials are not working. Please check. A link to the portfolio item wit the “tv” category will help.
Regards,
IsmaelMay 16, 2015 at 7:06 am #445245This reply has been marked as private.May 19, 2015 at 1:11 pm #446387Hi!
try to replace Yigit’s code in your child theme’s functions.php with this one:
add_filter('avia_post_nav_categories', 'use_same_category_filter'); function use_same_category_filter($same_category) { $same_category = true; return $same_category; }
Hope this helps.
Regards,
AndyMay 26, 2015 at 5:58 am #449806Hi Andy, your code broke my site. Is there something missing?
May 27, 2015 at 6:08 am #450426Hi!
Did you copy it straight from your email? Make sure that the single quotes are intact and not converted to html characters. Please use this:
add_filter( 'avia_post_nav_settings', 'enfold_customization_same_cat' ); function enfold_customization_same_cat( $s ) { $s['same_category'] = true; return $s; }
Cheers!
IsmaelMay 29, 2015 at 5:38 am #451526OK.. I was able to add this without it breaking the code but it still doesn’t seem to work. I have some portfolio items tagged across multiple categories. Is that the problem?
I gave some credentials in an earlier response. Is there anyway you log in and take a closer look?
thanks!
June 3, 2015 at 7:57 am #453585Hey!
I am trying your credentials, and I can not log in. Please confirm they are working
Regards,
BasilisJune 7, 2015 at 3:18 pm #455639Hi all, it works very well for me. Note that if you have an item of multi-category portfolio, it is displayed in its respective categories.
Thank you to integrate this hotfix into a furure update…Regards.
JeanJune 8, 2015 at 10:28 am #455898Hi!
@freepixelweb: Glad it is working your installation. You can leave the code in the child theme’s functions.php file.Best regards,
IsmaelJune 9, 2015 at 7:48 pm #456892This reply has been marked as private.June 10, 2015 at 12:24 pm #457141Hi!
I created two portfolio items in your installation and then applied the “Test” category on both. Please check the post navigation on this page: http://future-forms.com/portfolio-item/test-a/
It only filters Test A and Test B portfolio items.
Best regards,
IsmaelJune 20, 2015 at 2:27 am #462139Thanks, Ismael
I’m not sure you understand my problem. It works fine for one category as you have shown but all my portfolio items have multiple categories assigned to them. If I launch a portfolio-item from a specific category page, say “radios” then I would expect to only see radios when I navigate left or right.
June 21, 2015 at 1:08 pm #462341Hi!
Hmm.. Ok, that’s a problem. Unfortunately, the navigation will still filter portfolio items as long as they belong to the same category. The only workaround is to make sure that all “radio” portfolio items doesn’t have any category same as the “tv” portfolio items. If they have a common category, say “old” category, make it “old-radio” for “radio” and then “old-tv” for “tv” portfolio items. Or you can hire a freelance developer to modify the avia_post_nav function in the function-enfold.php file. Please contact codeable, I’m sure they can provide a better fix: http://kriesi.at/contact/customization
Cheers!
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.