Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $post;
- $args = array( 'posts_per_page' => 4, 'post_type'=> 'post','category_name' => 'sports');
- $myposts = get_posts( $args );
- foreach( $myposts as $post ) : setup_postdata($post); ?>
- <?php
- $promotions_icon = get_post_meta($post->ID, 'promotions_icon', true);
- ?>
- // Put your content here
- <?php endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement