Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $all_the_posts = get_posts( $args );
- $count = 0;
- foreach ( $all_the_posts as $post ) {
- $count++;
- // Output a post
- if ( $count % 6 ) {
- // This happens after every 6th post
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement