Blog
Latest Updates & Insights
Our Blog
Explore industry insights, manufacturing updates, and cap design trends from EASTLUCKY
“post”,
“posts_per_page” => 12,
“paged” => $paged,
“orderby” => “date”,
“order” => “DESC”
);
$query = new WP_Query($args);
ob_start();
if ($query->have_posts()) :
while ($query->have_posts()) : $query->the_post();
$thumb_id = get_post_thumbnail_id();
$alt = get_post_meta($thumb_id, “_wp_attachment_image_alt”, true) ?: get_the_title();
$categories = get_the_category();
?>
“w-full h-full object-cover group-hover:scale-105 transition-transform duration-300”,
“loading” => “lazy”,
“decoding” => “async”,
“alt” => esc_attr($alt),
“sizes” => “(max-width: 768px) 100vw, (max-width: 1024px) 50vw, 33vw”
]);
?>