Add offset in the query and give value as 5 so, the first 5 will be skipped.
Below is code snippet for the same
$custom_args = array('post_type' => 'your custom post type name',
'posts_per_page' => '20',
'orderby' => 'id',
'offset'=>5,
'order' => 'ASC',);
$custom_query = get_posts($custom_args);
foreach ($custom_query as $value) {
//your data
}
Related Posts:
- How to Change Order of Posts in Admin?
- Get current menu_order
- Difference between an archive and a page listing posts
- Different post sort order within different categories
- has_archive=false on the default post type
- what types of order can I pass to get_posts() via orderby?
- Clear cache when a post is submitted [closed]
- Sort posts by popularity/page views
- How do I reorder (pop and push) items from WP_Query?
- How to put last edited entry on top of the blog-post list?
- Sort post by attributes ‘order’
- How to sort posts by last name (2nd word) on ONE category only?
- Create an “All Posts” or “Archives” Page with WordPress 3.0?
- Post Format Archive template name for theme folder?
- Query posts from current year
- Reverse chronology of post listing
- widget should display post archive by year and on click also by month
- Must permalinks always point to single post pages?
- Order Posts by Alphabetical for Each Letter
- Set number of article per number of page
- At my posts archive page, outside the loop, get_the_id() returns the top most post’s ID
- Display most recent post in category instead of archive?
- Single.php Active Category Class
- Problem ordering posts with numbers for titles numerically E.g. 1, 10, 100
- How to choose a sort order (for posts) per category? (ideally when creating a new category)
- Link for the page archive for posts, like using custom post types with get_post_type_archive_link
- Order post by year DESC and month ASC
- Display custom post types by date field
- get_post_type_archive_link(‘post’) returns current category archive
- How to get the latest posting time of archived pages in WordPress?
- orderby=meta_value_num creates duplicate posts
- change default post archive page link
- Change Order of Admin Posts Depending on Meta
- Display posts in alphabetical order for a particular category
- Display all months with posts and inside each month show the 5 latest posts
- post re-order on my site
- Category List (Archive) Page Template By Category
- Getting category posts from a certain year
- Yearly archive page for future year
- Why orderby=”date” does not support manually changed posts?
- Which URL to enter into browser to show all posts in archive.php?
- How to display data in archive page?
- Guest Author – How to display posts on /author/ archive page
- WP_Query orderby not working with meta_value_num and menu_order
- How can I sort posts by the date and a custom meta field?
- Archiving by academic year instead of calendar year
- Sort WP posts by span value
- List category posts alphabetically on archive.php
- How to sort posts inside categories
- Any way for get_next_post() to use the actual post order instead of publish order?
- Custom order for Mysql array
- How to order posts by meta_value and title
- How to display excerpt post on hamepage and archive pages?
- Increase 10 post limit per page
- Order posts alphabetically: how to set order=asc in mysql query?
- Automatically create a new page daily with last three posts
- how to get post order by post id wp_query?
- How Do I Get My Post Tags to Alphabetize?
- Archiving posts in wordpress
- show image gallery in archives or category page
- Prevent Archive URLs
- view a list of 3 future post, from the nearest to the most far
- Get posts from category from custom query
- How do I display posts ordered by a date custom field?
- WP_Query sort by meta_value_num or date
- How do I apply a wordpress function to something with no ID inside an archive page?
- Allow reader to reorder posts for themselves (oldest first)
- Random order of the 5 most popular posts
- Page 2 has no posts?
- My custom query is displaying random posts in random order
- Get query result according to merged array
- Disable archiving of old posts?
- How to make post button to a random post
- is_archive() not working on selected “Posts page”
- How to display term in archive page?
- Where is object, property or label in the database that controls the order of the posts being displayed?
- My posts section for logged in user
- How to organise post by category and date
- Daily posts like an archive
- How to set a link to custom archieve page
- How to get alphabetic listing x other posts, based on first letter post?
- How do I display the next 3 posts in the sidebar?
- Last three posts not being put in order by date. How to fix this?
- Order by ‘s’ using WP_Query()
- Display all posts from selected month
- How to get pagination working with “Pending” Posts
- Show all posts in category
- custom sort posts in archive/taxanomy page
- how to show all post with its contents
- Add author section on Author archive posts
- Custom Admin Post Column change order
- Display post count on archive page in reverse order
- Filter/Sort Post Form On Taxonomy page
- How to sort posts alphabetically based on a specific parent category
- Global $post value outside the loop
- Category and archive issue
- Remove Archive Posts Page
- Display posts on a custom page from only a specific category?
- Order by Post Title in WP Query not working
- Display post archive as a month table, show last three months