Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $current_page_year = get_the_time('Y');
- $current_page_month = get_the_time('n');
- var_dump($current_page_year);
- var_dump($current_page_month);
- /*Latest Featured post*/
- echo '<div class="newsletter-featured">';
- $args = array(
- 'cat' => 13,
- 'year' => $current_page_year,
- 'monthnum' => $current_page_month,
- 'showposts' => 1,
- 'orderby' => 'date',
- 'order' => 'ASC',
- );
- $lastposts = get_posts( $args );
- foreach ( $lastposts as $post ) :
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement