Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // get all the categories from the database
- $cats = get_categories();
- // loop through the categries
- foreach ($cats as $cat) {
- // setup the cateogory ID
- $cat_id= 0;
- // Make a header for the cateogry
- // create a custom wordpress query
- query_posts("cat=$cat_id&posts_per_page=22");
- // start the wordpress loop!
- if (have_posts()) : while (have_posts()) : the_post();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement