-
AuthorPosts
-
April 8, 2016 at 11:18 am #610165
Hello
i renew the support to help me on this problem :
i create a lot of categories for portfolio . and i create at the end of page i display the item portfolio like :but when i open a item .. i have the navigation on the right and left… but it not respect the category but all items in portfolio..
in this case, i have 8 portfolio but i can skip all.. Is it possible to filter only this category ?
Hope you undesrtand my question ?
thanksApril 8, 2016 at 12:06 pm #610192Hi,
Can you please create us a WordPress administrator account? post it here as a private reply.
Regards,
JosueApril 8, 2016 at 2:23 pm #610260Yes.. of course
thanks a lotApril 9, 2016 at 12:42 am #610462Hey!
Can you post a screenshot/mockup of what would you want to achieve?
Best regards,
JosueApril 11, 2016 at 8:47 am #611044Hi,
Yes when i’m visiting this page..we have 3 items of portfolio : this portfolio is the category : http://deveden.com/caregeneva/portfolio_entries/lipofilling/
with ONLY 3 pictures..
BUT the problem, is when i open a item to display the details. we have the arrows to display the next items but we can display previious or next one but of ALL categories.. My client want to display only the items of the category..
you see what i mean ?
thanks
screenshot :
http://www.awesomescreenshot.com/image/1154757/4f18ed9343ccfc187fa0745caaae9c20April 11, 2016 at 11:19 am #611121Hey!
Try adding this at the very end of your theme / child theme functions.php file:
add_filter('avia_post_nav_settings','avia_same_category_filter', 10, 1); function avia_same_category_filter($settings) { $settings['same_category'] = true; return $settings; }
Cheers!
JosueApril 11, 2016 at 1:59 pm #611262Hello
So i copy the function but it seems that is not working :-(
thanksfunctions.php
<?php/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*/
add_theme_support(‘avia_template_builder_custom_css’);add_filter(‘avf_builder_boxes’,’enable_boxes_on_posts’);
function enable_boxes_on_posts($boxes) {
$boxes[] = array( ‘title’ =>__(‘Avia Layout Builder’,’avia_framework’ ), ‘id’=>’avia_builder’, ‘page’=>array(‘portfolio’, ‘page’, ‘post’, ‘CTP SLUG’), ‘context’=>’normal’, ‘expandable’=>true );
$boxes[] = array( ‘title’ =>__(‘Layout’,’avia_framework’ ), ‘id’=>’layout’, ‘page’=>array(‘portfolio’, ‘page’, ‘post’, ‘CTP SLUG’), ‘context’=>’side’, ‘priority’=>’low’);
$boxes[] = array( ‘title’ =>__(‘Additional Portfolio Settings’,’avia_framework’ ), ‘id’=>’preview’, ‘page’=>array(‘portfolio’, ‘page’, ‘post’, ‘CTP SLUG’), ‘context’=>’normal’, ‘priority’=>’high’ );return $boxes;
}
add_filter(‘avia_post_nav_settings’,’avia_same_category_filter’, 10, 1);
function avia_same_category_filter($settings)
{
$settings[‘same_category’] = true;
return $settings;
}
?>April 12, 2016 at 10:41 am #611783Hello Josue
Hope you found a solution for us …
regardsApril 12, 2016 at 12:50 pm #611830Hi!
It is working but make sure you select only the children category in each portfolio item – http://screencast.com/t/a4n0kn9E
Cheers!
JosueApril 12, 2016 at 1:30 pm #611844Exact !! i don’t saw that my collaborator click also on the parent category !!! ..so perfect it s working
thanks so muchApril 13, 2016 at 12:51 am #612255You are welcome, glad to help :)
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.