'portfolio', 'posts_per_page' => mfn_opts_get( 'portfolio-posts', 6 ), 'paged' => $paged, 'order' => mfn_opts_get( 'portfolio-order', 'DESC' ), 'orderby' => mfn_opts_get( 'portfolio-orderby', 'date' ), 'ignore_sticky_posts' => 1, ); // demo if( $_GET && key_exists('mfn-iso', $_GET) ) $portfolio_args['posts_per_page'] = -1; if( $_GET && key_exists('mfn-p', $_GET) && $_GET['mfn-p']=='list' ) $portfolio_args['posts_per_page'] = 5; if( $_GET && key_exists('mfn-pp', $_GET) ) $portfolio_args['posts_per_page'] = esc_html( $_GET['mfn-pp'] ); $portfolio_query = new WP_Query( $portfolio_args ); echo '
    '; echo mfn_content_portfolio( $portfolio_query ); echo '
'; echo mfn_pagination( $portfolio_query, $load_more ); wp_reset_query(); ?>