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
- Add a checkbox to post screen that adds a class to the title
- post__in for get_posts with a dynamic array
- Attach pdf file to custom post type
- Duplicate posts
- Looping through posts per category gives same posts for each category
- How to hide a post from ‘Recent Posts’ widget?
- Remove custom posts that match taxonomy value
- Check if post exists
- Post Type Label Name
- WP_Query get posts from custom posts by category
- Accessing post->ID outside of the loop for listing child pages
- List posts in a given category
- I want to display custom text widgets for each post in the sidebar?
- Search by post title and content in wp_query without order
- Enable Comments Box On Custom Post Type
- Admin – create custom post status and display above table
- wp_query random post
- Customize rel=canonical tag for single blog post
- Every second post different class in blog view
- Display posts of specific category term
- Run query_posts if SESSION is empty?
- l accidentally permanently deleted a Draft. There’s any way I can recover it?
- Getting post and attached image from subdomain
- Trim posts from WP-Query?
- Help on conditional statement to accompany wp_insert_post function please?
- Merge get_comments & get_posts into a single query
- Numbered Pagination Showing The Same Posts After Altering WP_Query
- Multiple posts in one page
- delete post hook not being fired when deling in wordpress dashboard admin
- Bulk Post update_post_meta
- Random order of the 5 most popular posts
- Hook To Get All Posts Deleted
- Query Posts From Multiple Post Types
- WordPress strips some attributes for author posts
- How to have 2 posting pages on a blog