Every Business has a Story

post_name; $slug = "whatever"; $new_query = new WP_Query(); $new_query->query('category_name='.$slug.'&posts_per_page=3'); $idx = 0; while ($new_query->have_posts()) : $new_query->the_post(); $recipe_title[$idx] = get_the_title(); $recipe_excerpt[$idx] = get_the_excerpt(); $recipe_url[$idx] = get_permalink(); $recipe_photo[$idx] = get_the_post_thumbnail_url(get_the_id(),'myexcerptpics'); $idx++; endwhile; ?>