Title: JetPack Featured Content
Last modified: August 24, 2016

---

# JetPack Featured Content

 *  [Quin](https://wordpress.org/support/users/quin452/)
 * (@quin452)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/jetpack-featured-content/)
 * Hi guys
 * I’m using Jetpack’s Featured Content feature, and I cannot seem to get it to 
   work.
 * It is being used in a Parent-Child theme, and neither theme (Parent nor Child)
   is showing the post tagged “featured”; it seems to be showing the first ever 
   post in the category (if not the first one ever) and that post is in the Trash!
 * The funny thing is, it was working with the old theme, which has been replaced
   since it is not responsive.
 * Jetpack Support couldn’t help and told me to check out here.
 * **Within theme setup**
 *     ```
       add_theme_support( 'featured-content', array(
       		'filter'     => 'classic_get_featured_posts',
       		'max_posts'  => 1,
       		'post_types' => array( 'post', 'page' ),
       	) );
       ```
   
 * **EOF functions.php**
 *     ```
       function classic_get_featured_content( $num = 1 ) {
       		global $featured;
       		$featured = apply_filters( 'classic_featured_content', array() );
   
       		if ( is_array( $featured ) || $num >= count( $featured ) )
       			return true;
       		return false;
       	}
       ```
   
 * **HTML on archive page**
 *     ```
       <div class="featured">
           <?php
       		if (classic_get_featured_content()) {
       			$featured_posts = classic_get_featured_content();
       			foreach ( (array) $featured_posts as $order => $post ) :
       				setup_postdata( $post );
       				get_template_part( 'content', 'featured-post' );
       			endforeach;
       			wp_reset_postdata();
       		}
           ?>
           </div>
       ```
   
 * **content-featured-post.php**
 *     ```
       <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
       		<div class="featured-thumbnail">
       			<?php the_post_thumbnail(); ?>
       		</div>
   
       		<div class="featured-title">
       			<?php the_title('<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>'); ?>
       		</div>
   
       		<div class="featured-excerpt">
       			<?php the_excerpt(); ?>
       		</div>
   
       		<div class="featured-more">
       		<?php
       			echo '<div class="post-link">'; ?>
       				<a class="more-link" href="<?php the_permalink(); ?>"><?php _e('Continue reading'); ?></a>
       			<?php echo '</div>'; ?>
       		</div>
       	</article><!-- #post-## -->
       ```
   

Viewing 1 replies (of 1 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/jetpack-featured-content/#post-6167828)
 * I recommend asking at [https://wordpress.org/support/plugin/jetpack#postform](https://wordpress.org/support/plugin/jetpack#postform)
   so the plugin’s developers and support community can help you with this.

Viewing 1 replies (of 1 total)

The topic ‘JetPack Featured Content’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/jetpack-featured-content/#post-6167828)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
