I am not php developer and I need to modify a theme, concretely the area has different categories, for example: "Adopted cats" and "Adopted dogs" both are in the same page, at the moment with categories tag I can be able to filter correctly but When I navigate (I have next and previous post button) it is not filtering correctly.
I have found this code in the theme :
<div id="portfolio-full-width">
<?php
$args = array(
'number_of_columns' => 4,
'image_size' => 'large-thumb',
'posts_per_page' => 50,
'filterable' => true
);
mo_display_portfolio_content($args);
?>
and the mo_display_portfolio_content code:
function mo_display_portfolio_content($args) {
global $mo_theme;
$mo_theme->set_context('loop', 'portfolio'); // tells the thumbnail functions to prepare lightbox constructs for the image
$paged = (get_query_var('paged')) ? get_query_var('paged') : 0; // Do NOT paginate
$args['query_args'] = array('post_type' => 'portfolio', 'posts_per_page' => $args['posts_per_page'], 'filterable' => $args['filterable'], 'paged' => $paged);
mo_display_portfolio_content_grid_style($args);
$mo_theme->set_context('loop', null); //reset it
}
First question: How to modify and what is the code for this purpose??
Thank you in advance for your help.