Title: Featured Post Duplicated
Last modified: August 24, 2016

---

# Featured Post Duplicated

 *  Resolved [belenberrueta](https://wordpress.org/support/users/belenberrueta/)
 * (@belenberrueta)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/featured-post-duplicated/)
 * I wanted to know why My Featured Post displaying in the Slider also appears beneath
   it, duplicating the post and apparearing twice. How can I make it to appear only
   in the Slider?
 * Example:
    [http://eahdesigns.com.ar/prueba/](http://eahdesigns.com.ar/prueba/)
 * Thanks

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Theme Author [acosmin](https://wordpress.org/support/users/acosmin/)
 * (@acosmin)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/featured-post-duplicated/#post-5993540)
 * That’s how it works. You need to change the query to exclude them.
 *  Thread Starter [belenberrueta](https://wordpress.org/support/users/belenberrueta/)
 * (@belenberrueta)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/featured-post-duplicated/#post-5993541)
 * And how can I find that query?
 *  Theme Author [acosmin](https://wordpress.org/support/users/acosmin/)
 * (@acosmin)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/featured-post-duplicated/#post-5993558)
 * It’s a little late in my country, I will give you a solution tomorrow.
 * If you want to learn you can take a look here:
 * [https://codex.wordpress.org/Class_Reference/WP_Query](https://codex.wordpress.org/Class_Reference/WP_Query)
 *  Theme Author [acosmin](https://wordpress.org/support/users/acosmin/)
 * (@acosmin)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/featured-post-duplicated/#post-5993561)
 * Or here: [https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts](https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts)
 *  Theme Author [acosmin](https://wordpress.org/support/users/acosmin/)
 * (@acosmin)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/featured-post-duplicated/#post-5993684)
 * One way to do this is by opening your child theme’s index.php and finding:
 *     ```
       <?php
       			if ( have_posts() ) :
       				while ( have_posts() ) :
       					the_post();
       					get_template_part( 'post-templates/content' );
       				endwhile;
       			else :
       				get_template_part( 'post-templates/content', 'no-articles' );
       			endif;
       		?>
       ```
   
 * replace with:
 *     ```
       <?php
       			if ( have_posts() ) :
       				while ( have_posts() ) :
       					the_post();
       					$post_meta = get_post_meta($post->ID, 'ac_featured_article', true);
       					if ( ! $post_meta && is_home() ) {
       					get_template_part( 'post-templates/content' );
       					}
       				endwhile;
       			else :
       				get_template_part( 'post-templates/content', 'no-articles' );
       			endif;
       		?>
       ```
   

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Featured Post Duplicated’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/justwrite/2.0.3.6/screenshot.png)
 * JustWrite
 * [Support Threads](https://wordpress.org/support/theme/justwrite/)
 * [Active Topics](https://wordpress.org/support/theme/justwrite/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/justwrite/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/justwrite/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [acosmin](https://wordpress.org/support/users/acosmin/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/featured-post-duplicated/#post-5993684)
 * Status: resolved