-
-
Save brichards/d7d03843d0e419542b6b to your computer and use it in GitHub Desktop.
Sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="clearer"></div> | |
<div id="beforefooter"> | |
<?php | |
if ( is_page( array( 'legal-services', 'employee-benefits', 'legal-update' ) ) ) { | |
$recent_posts = wp_get_recent_posts( array( | |
'numberposts' => 2, | |
'category' => 3, | |
) ); | |
foreach ( $recent_posts as $recent_post ) { | |
setup_postdata($post); | |
?> | |
<div class="poster"> | |
<h3>Latest Legal News</h3> | |
<p class="feat_headline"> | |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> | |
</p> | |
<p> | |
<?php the_excerpt(); ?> | |
<a href="<?php the_permalink(); ?>">read more</a> | |
</p> | |
</div> | |
<?php | |
} | |
wp_reset_postdata(); | |
} | |
?> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment