add_shortcode('aggregate_list', function () { $args = array( 'post_type' => 'aggregate', 'posts_per_page' => -1 ); $query = new WP_Query($args); ob_start(); if ($query->have_posts()) { echo '
'; while ($query->have_posts()) { $query->the_post(); $bag = get_post_meta(get_the_ID(), '_bag_price', true); $yard = get_post_meta(get_the_ID(), '_yard_price', true); $truck = get_post_meta(get_the_ID(), '_truck_load_price', true); echo '
'; if (has_post_thumbnail()) { echo get_the_post_thumbnail(null, 'medium'); } echo '

' . get_the_title() . '

'; echo '

Bag: $' . number_format($bag) . '

'; echo '

Yard: $' . number_format($yard) . '

'; echo '

Truck Load: $' . number_format($truck) . '

'; echo '
'; } echo '
'; wp_reset_postdata(); } else { echo '

No aggregate items found.

'; } return ob_get_clean(); }); Promotion - Total tools

Total tools

Search

Reserve Yours Today

Submit the form below to have one set aside just for you. It’s quick, easy, and takes less than 30 seconds. Don’t miss your chance to lock in this limited-stock offer — while supplies last!