1, 'post__in' => $sticky_posts, 'ignore_sticky_posts' => 1 ); $sticky_query = new WP_Query( $sticky_args ); if ( $sticky_query->have_posts() ) { while ( $sticky_query->have_posts() ) { $sticky_query->the_post(); /* * Include the Post-Type-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Type name) and that will be used instead. */ get_template_part( 'template-parts/content', 'sticky' ); } } ?>