wp section of stackexchange really seems half dead.
you rarely get issue sorted.
have_posts checks whether there is any post, so add another condition that checks whether the post is featured or not.
if(have_posts()) : while(have_posts()) : the_post();
replace above with below
if(have_posts() && the_post() != $featured) : while(have_posts()) : the_post();
Related Posts:
- What is the use of to_ping and pinged column?
- SQL Query for getting all posts in their latest revised state
- Listen to Post action
- How to add post count to wp_nav_menu?
- Posting From Apple Aperture?
- how to show all post in my page-grid.php template page
- How to add padding between posts
- Remove whitespace at the end of posts?
- How can I make existing custom fields easier to edit/add in my theme?
- Code Blocks with WYSIWYG in blog post
- What Can I Use To Add A Custom Button Between Publish button and Move To Trash?
- generate unique slug while inserting post
- Add filter-by-tag in the all posts admin console page
- How to show post(excerpt) from specific category on wp page?
- get posts and postmetas in assoc array
- user contributed content as custom post types
- Is 30 posts/sec considered slow for wp_delete_post?
- How to load a different header based on post format?
- Get all images out of the posts content
- How to Use PHP Code In-Page?
- Getting current post ID in functions.php
- Understand post type
- Getting content from a single *page* of a post
- How can I show wordpress posts based on author?
- Remove certain post-formats from showing in blog?
- Avoid duplicate post from same Taxonomy
- Email Post Attachment on wp_insert_post Action
- Can I divide the pages into categories?
- Are private posts visible to search engines?
- Setting posts_per_page for taxonomy term template
- Posts gathered from WPEMatico feeds are being mixed in different languages. Polylang is used for language separation
- Turn On Comments On Custom Post Types in Directory Theme
- Automatically attach image to post if they have the same title
- Shortcode and whitespace formatting problem
- Using wp_list_pages() after calling query_posts()
- Delete pubished and unpublished posts with wp_delete_post?
- How to remove in-line style of WordPress’s post content only?
- How to Get Posts, Including Private Ones?
- Proper way of establishing custom landing pages in WordPress
- Query posts by Author and/or by Tag
- How do I show posts from another wordpress installation?
- How can I determine where I want to edit in the backend (server)
- Archive template combined with post slider and regular posts
- Is there a way to add the list of recent posts into the admin sub menu on hover?
- Create a custom posts page
- How to show a custom taxonomy in the theme?
- How to import nested categories from XML file?
- Exclude some posts from displaying in wp_query based on some condition
- Restrict displaying posts to the poster itself (in Back-end)
- Removing all post tags except a given list
- Bootsrap carousel for post
- Create a frontpage.php and static page template
- Grab value of excerpt_length
- Defining ‘last’ class on foreach blog posts
- Deleting old posts
- How To Use Custom Tax of a Post Type
- How-to show last 5 posts
- Is it possible to modify posts table to only read for more recent ones?
- search form for custom fields
- posts_per_page is not working on my end
- How to draft posts after being published with x days
- Find most used words in post titles
- $post->post_content empty while all other properties are correct
- How to highlight or show new to the particular posts list
- Display latest posts from a specific categories
- wp_insert_post() Add and specific ID to the body of that
- out of nowhere
- Ajax: load content from post I clicked
- How to copy a specific piece of the post to another page
- Make current post the homepage
- Display images of related posts
- Submit New Post
- Display all tags even if they are not assigned to a post
- No comments allowed
- Ajaxify Post Sort
- Page Template Drop down disappears when static front page is selected
- How to create REST Based JSON API(how to modify the code below)?
- Get current user, change users post status to published
- Posts on Sidebar only
- Hide Admin posts & pages in Dashboard
- Post & Category Archives URL structure
- How to get post count including nested categories
- structure of posts and pages
- GUID to related post not in current language
- Advanced Post Display/Pagination/Ordering
- Sorting Posts by Date – get_blogs_of_user_id()
- About number of posts in selected category
- Can I hide only one category from admin post list?
- Woocommerce – custom post type of checkout page
- ho can I get the number of the current post instead of the post id?
- Category page shows “No Posts” but I do have two assigned
- The post order is different for logged-in and non-logged-in users? [closed]
- Display one post randomly from category on home page
- Change a div background color on Post ID
- How to show all Posts Image, Title and 3 line description on main page?
- append $_GET parameters to post
- CSS code for “inserting a custom post divider” after each post
- website images getting corrupt automatically
- Posts Page in WordPress loading bare HTML of my homepage
- Output number of WordPress posts remaining until a post milestone is reached