You need 2 queries e.g.
$query1 = new WP_Query( 'post_type=post&posts_per_page=1' );
// The Loop
while ( $query1->have_posts() ) {
$query1->the_post();
echo '<li>' . get_the_title() . '</li>';
}
wp_reset_postdata();
$query2 = new WP_Query( 'post_type=post&posts_per_page=100&offset=1' );
while( $query2->have_posts() ) {
$query2->next_post();
echo '<li>' . get_the_title( $query2->post->ID ) . '</li>';
}
wp_reset_postdata();
The first query gets the first post (which you can then do what you want) and the second query gets the rest of the posts but skips the first post (from the first query) using the offset tag.
Related Posts:
- Querying post from a multisite network
- How to hide a post from ‘Recent Posts’ widget?
- How to get most recent commented post above new submitted post in WordPress?
- Two posts are loaded instead of one?
- How to start with post number x?
- Display most recent post on homepage?
- recent posts for different categories
- WP Bakery Load More Button loads the same posts
- How to get date of post when using wp_get_recent_posts()?
- Latest posts by category — how to exclude current post?
- Add hero image to home page (blog format) via the dashboard
- Why aren’t paragraphs breaking on this page?
- Get x recent posts by author?
- Showing recent post of category in page
- How to show 3 most recent/viewed posts in a special tiles on home page using wordpress?
- Get WordPress post content by post id
- Get page ID of page that is set as the posts page
- How can I retrieve multiple get_post_meta values efficiently?
- Display Random Author with Details in Sidebar
- Get old values for post before saving new ones
- How to upload post thumbnail while wp_insert_post?
- Help! Turn php link data into url OR hide edit link in post admin OR hide drafts for all users except admin?
- How to load paginated post pages via ajax
- Get the current post ID as a variable in Javascript
- order posts by date like craigslist
- Syntax Highlighter XML striping
- What to use: wp_is_post_autosave( $post_id ) or DOING_AUTOSAVE?
- How to sort posts by last name (2nd word) on ONE category only?
- Query posts distinct authors
- Why do I need to use The Loop on pages (inside page.php etc)?
- How to get previous 10 days post from a specific date – WP Query
- Posts added with wp_insert_post are moved to trash automatically
- Developing a secure front end posting form
- Open WordPress Posts in Bootstrap Modal
- How to remove images from showing in a post with the_content()?
- Automatically added brs and paragraphs?
- Automatically create pages in a post based on number of words
- Show number of posts AND number on current page
- Remove Posts Quick Edit link for specific user role? WP 3.3
- Display All Sticky Post Before Regular Post
- At my posts archive page, outside the loop, get_the_id() returns the top most post’s ID
- Allowing a user to write a post from another website?
- Delete Post Link to delete post, its meta and attachments
- Change default screen option value for posts per page
- How to display an icon when a new post is published and then remove it when a specific time past?
- prevent showing posts of an specific category in admin posts section
- Repost post on specific date every year
- exclude particular posts in archive.php
- How to display post tags
- Sql syntax error
- Random post permalink
- Debugging WP routing
- Add custom fields to post programmatically
- How to get Advanced Custom Field Value According using POST ID? [closed]
- New blog template to display only one category
- wp_insert_post question [closed]
- Show the author’s count of total amount of posts assign to a custom taxonomy term
- WordPress menu that shows all posts in a certain category like w3schools
- Filter Posts by Excluding Categories
- publish_post conflicts with save_post
- post_date vs. post_modified – what’s the difference? [closed]
- Filter Posts By Tag
- Custom excerpt length filter doesn’t work
- Enabling post thumbnails for custom post type
- How do I render all posts of the same category in same layout?
- Custom Post Templates
- How to limit displayed posts on wordpress
- Custom Blog Post Page
- Contact form 7 post loop [closed]
- WordPress list posts from sub categories
- how can I put an image in a post with original size
- Dynamically generate child-URLs for posts or custom posts
- If Specific Post, Link Elsewhere
- Exclude newest post from category X but show rest
- post-page: reference to parent page?
- What structure should post_content have in the database?
- Dashboard :10 Last draft page and 10 last pending review page (metabox)
- Comma separated all attached image ID numbers except featured image ID number
- Why orderby=”date” does not support manually changed posts?
- Set terms in a custom post
- Post-ID in url differs from $post->ID
- post categories
- Format the Layout of Images In The Edit Post Textarea?
- Choose whether to automatically add a taxonomy with the same name as the post
- Which WordPress hook fires after post content loaded?
- Move first half of posts to one parent page, second half to the other page
- Check if checkbox is marked on publish/update post
- How to create a submenu that will navigate through different posts in the same page
- CSS: How can I show a photo beyond the template’s column, but contained within the browser window? [closed]
- Enable Comments Box On Custom Post Type
- Can I search posts and pages for css classes?
- minimum requirement to add posts via database
- Delete and perform a fresh install of WordPress
- Get Posts Under Custom Taxonomy
- Integrate OpenStreetMap on WordPress
- Need to remove duplication content on home page in wordpress theme
- How safe is renovating $wp_query when doing WP_Query pagination in Page Template
- How to show full post?
- how do i add posts-page slug before posts slug in permalinks
- Admin – create custom post status and display above table