Neutica featured-post hover-color support


/ Published in: HTML
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php get_header() ?>
  2.  
  3. <div id="container">
  4. <div id="content">
  5. <?php $feature_post = get_posts( 'category_name=feature&numberposts=1' ); ?>
  6. <?php foreach( $feature_post as $post ) : setup_postdata( $post ); ?>
  7.  
  8. <div id="featured" style="background:#241C0F url('<?php the_post_image_url('full'); ?>') center center repeat;">
  9. <div class="featured-post">
  10. <small>Feature:</small>
  11. <h2 class="entry-title"><a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to %s', 'sandbox'), wp_specialchars(get_the_title(), 1)) ?>" rel="bookmark"><?php the_title() ?></a></h2>
  12. <p class="featured-content">
  13. <?php the_content_rss('', TRUE, '', 20); ?><a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to %s', 'sandbox'), wp_specialchars(get_the_title(), 1)) ?>" rel="bookmark">Read More</a>
  14. </p>
  15.  
  16. <!-- END featured-content -->

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.