Reply To: Sort categories on Front page

Homepage Community Forums Skope Theme Support Sort categories on Front page Reply To: Sort categories on Front page

#11485
stig
Customer

    Yes that’s true. There is a code in the end of home.php that’s build an portfolie look of the post. And there is an “custom loop” that get the categories and show post, It also seems that it have some code to exclude categories, but I am not sure how to configure it.

    Here is the code.
    // Add custom loop
    add_action(‘genesis_loop’, ‘skope_home_loop’);
    function skope_home_loop() {
    $paged = get_query_var(‘paged’) ? get_query_var(‘paged’) : 1;

    $include = genesis_get_option(‘skope_home_cat’);
    $exclude = genesis_get_option(‘skope_home_cat_exclude’) ? explode(‘,’, str_replace(‘ ‘, ”, genesis_get_option(‘skope_home_cat_exclude’))) : ”;

    $cf = genesis_get_custom_field(‘query_args’);
    $args = array(‘cat’ => $include, ‘category__not_in’ => $exclude, ‘showposts’ => genesis_get_option(‘blog_cat_num’), ‘paged’ => $paged);
    $query_args = wp_parse_args($cf, $args);

    genesis_custom_loop( $query_args );
    }