'aump_portfolio',
'posts_per_page' => $posts_per_page,
'paged' => $paged,
];
if (!empty($category)) {
$args['tax_query'] = [
[
'taxonomy' => 'aump_portfolio_category',
'field' => 'term_id',
'terms' => [$category],
'operator' => 'IN',
]
];
}
$query = new WP_Query($args);
$has_more = ($paged < $query->max_num_pages);
if ($query->have_posts()) {
while ($query->have_posts()) {
$query->the_post();
$image_size = get_option('aump_thumbnail_size', 'full');
$image_url = wp_get_attachment_image_url(get_post_thumbnail_id(), $image_size);
$desc_limit = get_option('aump_desc_word_limit', 15);
$description = get_the_excerpt();
$short_description = esc_html(wp_trim_words($description, $desc_limit, '...'));
$displaybtn = get_option('aump_show_open_button') ? 'block' : 'none';
$details_button_text = get_option('aump_open_button_text', 'See Details');
echo '';
echo ' ' . esc_html($short_description) . '';
}
echo ' ';
echo ' ' . esc_html($details_button_text) . '';
if (get_option('aump_show_title')) {
echo '
' . esc_html(get_the_title()) . '
';
}
if (get_option('aump_show_description') && !empty($short_description)) {
echo '