0 ) { $aleanta_archive_perpage = $aleanta_portfolio_perpage; } else { $aleanta_archive_perpage = -1; } $args = array( 'post_type' => 'portfolio', 'orderby' => array( 'menu_order' => 'ASC', 'date' => 'DESC' ), 'paged' => $paged, 'posts_per_page' => $aleanta_archive_perpage ); $wp_query = new WP_Query( $args ); if ( $wp_query->have_posts() ) : ?>
have_posts() ) : $wp_query->the_post(); $aleanta_portfolio_post_type = ( class_exists( 'RW_Meta_Box' ) && rwmb_meta('post_types_select') != '' ) ? rwmb_meta('post_types_select') : 'image'; $cats = wp_get_object_terms(get_the_id(), 'portfolio_category'); $aleanta_cat_slugs = ''; if ( ! empty($cats) ) { foreach ( $cats as $cat ) { $aleanta_cat_slugs .= $cat->slug . " "; } } $aleanta_portfolio_thumbnail = get_the_post_thumbnail(get_the_id(), 'aleanta-portfolio-thumb', array('class' => 'img-responsive')); // potfolio category list linked $aleanta_portfolio_linked_list_cats = aleanta_get_post_terms( array( 'taxonomy' => 'portfolio_category', 'items_wrap' => '%s' ) ); if ( $aleanta_portfolio_type == 'type_without_icons' || $aleanta_portfolio_type == 'type_without_space' ) : ?>
  • $slide ) : if ( $key > 0 ) : ?>
    <?php echo esc_attr($slide['alt']); ?>
max_num_pages ) ) { echo '
' . get_next_posts_link( wp_kses_post($aleanta_portfolio_loadmore), $wp_query->max_num_pages) . '
'. esc_html__("Loading...", "aleanta") .'
'; } ?>