Home Forums Bee WordPress Theme Adding filters to Ajax portfolio

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8764
    nadyawell
    Participant

    On http://www.danielfazio.com/ the home page uses Ajax portfolio option, I would like to add filters to it as available it=n the other portfolio layouts. Please let me know if it’s possible and if so, how to do it.

    Thanks,
    Kate

    #8773
    SeaTheme
    Keymaster
    Purchased
    Expired

    Hi, we didn’t test filter function on liquid module.

    You could try to test it, plz try to add the filter code(line 1796-1801 of functions-view-module.php ), add filter class name (line 690, 705 of functions-view-module.php ) into liquid(refer:functions-part4.php)

    #8790
    nadyawell
    Participant

    I’ve copied the following

                <?php 
    
    	 $portfolio_categories = get_the_category($portfolio->ID);
                $separator = ' ';
                $output = '';
                if($portfolio_categories){
                    foreach($portfolio_categories as $category) {
                        $output .= 'filter_'.$category->slug.$separator;
                    }
                }
    
    	?>
    
                        <!--Filter-->
                        <ul class="clearfix filters <?php echo $filter_class; ?>">
                            <li class="active"><a href="#" data-filter="*"><?php _e('All','ux'); ?></a></li>	
                            <?php foreach($get_categories as $cate): ?>		
                            <li><a data-filter=".filter_<?php echo $cate->slug; ?>" href="#"><?php echo $cate->name; ?></a></li>
                            <?php endforeach; ?> 
                        </ul><!--End filter-->

    But i get the Warning: Invalid argument supplied for foreach() in /web/htdocs/www.danielfazio.com/home/wp-content/themes/bee-child/functions/functions-part4.php as value for $get_categories does not seem to be set. Do I need some extra parts of code? I will be very grateful for help.

    #8801
    SeaTheme
    Keymaster
    Purchased
    Expired

    Hi, Sorry, it(feature custom) is beyond support services range. I suggest you hire a developer to do it.
    I can only give you a general direction. I will not troubleshoot your custom code.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.