Use Sticky Posts.
In the Post editor find the “Publish” section.
Next to “Visibility” click on edit and then check the “Stick this post to the front page” option there.
Click save and you’re done.
In the loop, you can check if a post is_sticky()
.
To loop them, you can use the post__in
or post_not__in
keys for your query with a value of get_option( 'sticky_posts' );
.
There are also some Plugins in case you don’t want to dig in code.
Other options…
…would be to assign
- a special category
- a tag
- …or a custom field.
Edit:
Combine categories/tags + sticky posts.
Fetch »all get_option( 'sticky_posts' )
with a Tag of “Featured” (or inside Category “Featured”), then: ORDER BY post_last_modified_date LIMIT 10
«.
Related Posts:
- Is it possible to Schedule Attachments in WordPress?
- Hiding by default specific post status on backend list?
- How can I display a specific user’s first published post?
- What differences are there between a Privately Published post and a Draft post?
- Post: how to set created date after post has been published [closed]
- How to set a Post’s default visibility to ‘Private’ in Gutenberg?
- How publish post from pending status
- I am creating a front end dashboard where I need to show all the posts by the current user. So, I need to show posts in publish
- How to get posts published between a date and today?
- How to get post creation date?
- Changing the post date and time with function
- How to prevent posts from being published too close to each other?
- Let private posts stay in status “private” after edit through “editors”
- Post publish only hook?
- Publish pending article from front end with a button?
- How to add a “publish” link to the quick actions
- How to limit user to publish post per day and per role?
- When a user creates a post (pending), send a confirmation link that allows them to publish
- Restrict the Number of Posts an Author can Publish (over time)?
- Setting post meta data to random value during post status transition / on publish
- How to change post status from publish to draft using hook in wordpress?
- How to display an icon when a new post is published and then remove it when a specific time past?
- How to output comments number of a post per day?
- Display custom post types by date field
- Detect Post Type when publish_post is ran
- Custom Post Status Posts viewable to the public
- Does WordPress remove draft status automatically?
- What Can I Use To Add A Custom Button Between Publish button and Move To Trash?
- Can wordpress differentiate between added and updated posts?
- Limit number of posts a user can make per minute?
- publish_post conflicts with save_post
- How do I batch create revisions of all posts?
- ‘transition_post_status’ only fires when pressing “Add New”
- Notification to Admin or Author upon new post [duplicate]
- Update post status from “publish” to “trash” for half of posts
- XML-RPC and post_date
- Automatically republish old posts
- How can I set a Post’s default visibility to private and pending review checked
- Automatically Updating Publish Date Bug
- Replace ‘published on date’ with ‘modified on date’ on Posts
- pre_get_posts query between 2 dates (date stored in custom post meta)
- How can I show many posts an author has per week?
- How to give capability (publish contributors posts) to author role?
- Print a message if excerpt is empty after posts have been publish/update!
- Check if checkbox is marked on publish/update post
- Prevent scheduled post being published if date/time is past current date/time
- WordPress Sidebar menu for posts based on date – guidance needed
- Calling Different Custom Post Timestamps in a table
- Admin – create custom post status and display above table
- WordPress capabilities on pending post status
- date issue with category post retrival
- Do action on publish or update?
- transition_post_status hook doesn’t have any POST data when publish with Gutenberg [closed]
- How to get date of post when using wp_get_recent_posts()?
- Worpdress function for difference dates
- $post->post_type not working
- how can i allow users to view their own pending posts in a front-end page
- Stop wordpress from creating empty/null entries
- What date to use as a post date? date_gmt or modified_date_gmt
- How to update all posts at once?
- Assigning Two Different Post Dates For Single Post
- Using system date format
- How can I tell if a post has been published at least once?
- Send email for pending post
- Add “Posted on” to post date
- Auto update post title and slug when post status is changed
- Add delay to publish post
- Retrieving posts by their date and category
- Date is wrong on ‘all posts’ page
- Publish a Silent Post without updating Feed
- Getting an extra post’s meta data?
- Plotting posts on a graph
- show div only if have a related post inside
- Post date automatically +100 years into the future
- Show Last Revision Of Post That Has A Published Status On Single Page
- How can I restore posts from ‘trash’ with their previous post_status? – WordPress
- Delete media from the post but keep my featured image and post
- Change Old WordPress Post Date Year
- WordPress doesn’t save or publish new posts
- My posts are getting to Auto draft when I try to Publish
- How to publish a post if condition is met?
- WordPress get tags in “publish_post” hook
- Need to display a Jan 1st post as the site’s front page on Jan 1st, and Jan 2nd post as front page on Jan 2nd etc
- Set a post expiration and delete a post when expirate
- Display Updated Date Instead of Published Date
- How do you update post date (year only) in a separate custom field?
- Bulk Post update_post_meta
- How to hide meta from search result only on pages?
- How do I display posts ordered by a date custom field?
- Create blog post from external source and set publication date
- Modify loop to include all post statuses not just ‘published’
- Compare date of user’s last posts
- Query post for today, if no post get the previous one
- I want to send push notification just after publish a new post
- Function/filter or plugin to change post status based on custom field value
- How to Test a Blog Post for Update vs. Publish Status — Unique
- How to handle a post before publishing?
- Display metabox with date
- How to display a certain template element only for posts published within certain time range?
- the_time() cannot be placed correctly