try and add this before your code:
<?php if ( have_posts() && is_home() && !is_paged() ) : ?>
<?php the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endif; ?>
Related Posts:
- Using a custom WP_Query with get_template_part loop
- Query sticky posts with thumbnails
- WP_Query doesn’t get sticky post at the top, when used in a page template
- Show Sticky Post at the top but do not show again in the loop?
- get_template_part causes 500 error
- Check for the main query from the template
- How to remove only the latest sticky post from the loop
- Custom wp_query inside a conditional stament inside a template part doesn’t work: why?
- How can I have sticky posts while ALSO showing posts from a specific category using one WP_Query?
- WP_Query causing links to not work
- Continue loop after $queryObject
- Multiple loops on index page with sticky post and pagination
- Print post data inside loop using theme content template
- How can I display sticky posts at first in wp_query?
- Some doubts about how the main query and the custom query works in this custom theme?
- Loop within a loop?
- WP_Query: Why is sticky post not first item in loop?
- Use WP_Query with have_posts()?
- Display posts the match taxonomy term linked from wp_list_categoies?
- Merging a complex query with post_rewind and splitting posts into two columns
- wp_query for the first sticky, then display the rest of the posts excluding the first sticky
- Pagination Not working on Home Page with 2 Query
- meta_query not working properly
- Exclude post on loop by multiple meta key value
- Sort by meta key on archive page
- How to display 3 different loops in 3 columns on homepage
- Include Sticky Posts in Page Post Count for custom query
- Show all parents and children in custom post type in right order
- Why is this coming back as null? Thats wrong. There is one post
- Ignore post by meta value in the main query
- WP_Query to get posts in a specific category and post format
- Can’t get drafts with WP_Query using post_status parameter
- How to retrieve current page WP_Query arguments?
- How to limit WP_Query to one result on the loop?
- Sticky posts are not showing at the top of category posts
- Random loop with code to prevent duplicate output returns no output at all from time to time
- Storing query variable and then using wp_reset_query
- How to use offset in WP_Query
- Multiple loops without repeating content
- wp_query should show stickies first
- Group and list posts by custom taxonomy
- Show scheduled posts in main loop but not in WP_Query?
- Change query based on post type while staying in loop
- Filtering posts from different categories into different section by doing WP_Query only once
- Get a list of posts with associated meta_value
- $WP_Query: How to display excerpt on first post only
- Custom taxonomy.php not working
- different for loop if screen resolution < 1000px
- Transient api Caches confused
- how to use pre_gets_posts to exclude one queried ID from homepage loop
- sort and display posts by custom field (wp-query and the loop))
- WP_Query – Adding “offset” posts to the end of the loop
- wp_query is showing posts from other categories
- How to add sort order to incremented and paginated category loop
- inserting content of 1 Post to in another with a template hierarchy
- Pagination for custom loop on custom page template is not displaying anything
- Filtering by multiple conditions in the loop
- How to access $wp_query object from array of posts given by get_posts?
- Display all attached image of every post of custom post type and link to original post
- Get posts with no tags?
- wp-query, pull children of parent page
- Writing less unnecessary code with WordPress
- WordPress Queries Not Working?
- Filter subpages in while loop from WP Query object
- Use have_posts() with array of post results retrieved by $wpdb->get_results
- Custom query does not find pages
- How to sort by most watched in X days/months
- Magazine style frontpage with multiple categories/loops and no duplicate posts
- How can I use arrays and a foreach to generate many lists with WP_Query?
- How to use custom page for all posts with custom url, call another directory?
- display ACF repater field in archive page
- WP_Query breaking the loop in a nested loop
- ACF: How can I publish values of ACF fields in a loop while using wp_query?
- Show a message if there are no active posts in category
- Related posts queries
- How to display sticky post always at the top (before regular post) in wordpress?
- Problem with my loops
- display the children of the post using the current page as the main parent
- Display 3 levels of categories on page
- update_post_meta() not updating
- Paging works correctly on local version, but not live?
- How to add in WP_Query to every 3 posts displayed? [duplicate]
- why default wordpress loop not working outside index.php
- how to show more than 1 post into three columns query
- Display three sequential posts on each page load, without repeating previous
- active link for most recent post on vertical tabs
- custom query – offset to pagination
- Issue in If else condition [closed]
- Pagination not working with WP_QUERY
- wp_query pagination links producing 404
- How return normal search result using wp_ajax action for wordpress
- Display First posts without the default featured image
- How ‘secure’ are loops?
- Pagination problem with multiple loops on the same page
- How to do a loop inside a loop?
- Can’t seem to get an else statement correct? [closed]
- Main loop querying current template’s info only in custom category archive pages, not my posts
- How do I split a large query with a semi-expensive function included into multiple smaller queries
- Query All Posts: Either Display Most Recent or One with Particular ACF Value Chosen
- How to get rid of extra Untitled Article in html5 document outline when using new WP_Query?