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?
- 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’
- 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
- Must permalinks always point to single post pages?
- Order Posts by Alphabetical for Each Letter
- Set number of article per number of page
- Display most recent post in category instead of archive?
- 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)
- 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
- 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?
- 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
- How to order posts by meta_value and title
- 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
- Archiving posts in wordpress
- While loop articles – if statement order
- Make a vertical dynamic list of posts in alphabetically order and in columns [closed]
- Custom Post Type archive
- How can I add a box to edit Order on a regular post?
- Does WP automatically tag posts into the archive?
- get_previous_post() while accounting for sticky posts
- I want to show my post for limited time, how is it possible?
- Exclude a category of posts in author template
- How to edit the ‘
- Post-Archive like a page in a specific subdirectory
- Posts and order
- Display in category ( taxonomy) a number of post that I want
- Find out in which kind of archive am I
- Adjust the order for returned posts
- adding my posts (author posts) in menu
- Order posts by date
- Archieve page, Advertisement Every 3 Posts
- Highlighting Current Category in the Archive and Feeds page
- Permalink Short code showing unnecessary link text inside the loop
- How to hide protected posts from archive?
- blog post not accesible on click [closed]
- Redirect to custom post if custom archive page has just one result?
- Posts are not displaying on their category and tag page
- query posts with selected post ids first
- 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
- 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
- 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
- How to sort posts alphabetically based on a specific parent category