I solved it myself. What I did, is adding this:
$loop = new WP_Query(array(
'offset' => 20,
));
And then changing:
if (have_posts()) : while (have_posts()) : the_post();
into:
if ($loop->have_posts() ) : while ( $loop->have_posts() ) : $loop->the_post();
Related Posts:
- How Can I Always Display A Particular Post First Using WP_Query?
- wp query custom orderby not custom field
- How to limit the number of posts that WP_Query gets?
- Should we trust the post globals?
- Random sort within an already sorted query
- Exclude drafts in all() view of edit.php
- Querying post from a multisite network
- How to know if get_posts() failed?
- WordPress Number of Posts Not Changing With posts_per_page
- Pagination not working on Custom Page Template
- How to add posts to wp_query result?
- Order post by year DESC and month ASC
- Should ‘setup_postdata()’ be reset with ‘wp_reset_postdata()’?
- Search query – exact post title match
- posts_per_page doesnt work
- Blogroll – Different layout for first post
- How to get most recent commented post above new submitted post in WordPress?
- Display page content AFTER a loop of posts
- wp_query ‘s’ parameter does not work with custom post type
- Exclude posts with empty post_content in wp_query
- Only display a certain number of posts, dependent on how many posts there are available in a query
- Improving WP_Query for performance when random posts are ordered
- Should $found_posts be returned as string in ‘found_posts’ filter hook?
- Get Posts that are in the current month or later
- recent posts for different categories
- Hiding Draft Post In Admin
- WordPress custom Query for Posts in Category display posts multiple times
- Exclude the first ‘n’ number of posts of a tag from home page?
- posts_per_page option limits the number of Gallery items
- Dynamically switch template on click
- Why Query is returning empty array?
- Inner join overrides Advanced Custom Fields plugin’s get_field [closed]
- meta_value timestamp older than now
- Do not show children of a category
- Query for first 3 posts to change the look and feel
- Why posts array is empty?
- How to give classname to post if post has no content?
- Exclude some posts from displaying in wp_query based on some condition
- Related Posts function not working
- How to retrieve certain number of images from a wordpress post?
- How to convert query sql to shortcode in wordpress?
- How to display only one category in a custom post type?
- Custom Select Query – Selecting the Year?
- Trying to exclude custom posts based on date, while sorting by custom field
- WordPress Query – Display 5 posts (same post type), each from a given tag
- Search results for ACF data
- How to invoke a HTML custom button based on a HTML dropdownlist menu
- The first post appears twice
- filter posts based on menu_order
- Show 5 posts and than 3 posts offset with pagination
- Custom Select Query pagination not working properly
- Sort / Filter Queries
- Advanced Post Display/Pagination/Ordering
- Why I obtain this WP_Query strange behavior trying to select posts having a specific tag?
- Why I have this strange behavior when I try to exlude the featured post from posts visualization?
- How to show the posts list into a static page? Problems to use the loop into a static page
- How do I control the fallback query after the original query returned cero posts?
- Displaying Results From Custom Taxonomy Query
- WP_Query retrieve custom posts but not the post showing
- Special Query: Title, Terms, Content – %LIKE%
- Display one post randomly from category on home page
- Wp_query WooCommerce products
- How edit footer copyright info? [closed]
- How do I get content of custom post type through post ID
- Need to show birthday of custom post type(Famous people in this case) in elementor. Date of birth set in custom fields
- How to make WP_Query faster when getting a post from one year ago?
- Sticky post appears twice
- do_shortcode within post query
- Ajax load more button in Recent posts widget
- Get posts of ONE taxonomy term of custom post type
- WordPress Custom Fields (Checkboxes with multiple values)
- How Can I Query a Specific Page From a MultiPage paginated Post
- WP_Query with ajax handler returns the same posts
- WP_Query orderby not working with meta_value_num and menu_order
- Why WP_Query(‘showposts=5’) shows only 1 post?
- Custom WP_Query with complex ‘post_status’ argument
- How can I sort posts by the date and a custom meta field?
- I want to display custom text widgets for each post in the sidebar?
- is there a way to show the the post title after the image?
- Get Meta Key Value While Saving Post
- Most liked page not displaying posts
- How to make number of blog posts a custom field?
- Query get post,how to add comment box
- Display posts styled exactly like default posts
- WordPress blog or WordPress website
- How to make classes for posts?
- Using custom post template
- Meta query for custom post type ignored in main query
- Custom Post Archive Page not working
- Search by post title and content in wp_query without order
- Print all the tags from a custom post type Please
- How do I correctly set up a WP-Query to only show upcoming event-posts?
- Display multiple custom taxonomy values on single custom post types page?
- WP Bakery Load More Button loads the same posts
- Blog post per page setting conflicting with custom WP_Query?
- Change post order random through out the entire WordPress
- How to insert 2 args into 1 Wp_Query for a slideshow
- Adding custom fields to bbpress reply form
- How to exclude latest x posts from a paginated query?
- Move first half of posts to one parent page, second half to the other page