Display new posts categories in separated divs
You should first make a query to retrieve all your categories. This can be done using: $categories = get_categories(array(‘hide_empty’=> 0,)); Now that you have a list of your categories as object, you have to run a foreach to output their content: foreach ($categories as $category) { $params = array( ‘posts_per_page’ => -1, ‘post_type’ => ‘product’, … Read more