You can exclude posts from the recent posts widget via the widget_posts_args filter:
add_filter( 'widget_posts_args', 'exclude_posts_wpse_103570');
function exclude_posts_wpse_103570( $args ){
// post ID's to exclude:
$args['post__not_in'] = array( 123, 234, 345 );
return $args;
}
Related Posts:
- Querying post from a multisite network
- 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?
- Have latest post and recent posts display differently
- How to get posts published between a date and today?
- How to detect single.php (but not single-portfolio.php)?
- Connection lost. Saving has been disabled… (Updating Posts/Pages)
- Get first post from wp_query
- How can I retrieve multiple get_post_meta values efficiently?
- How to add a new tab to page editor
- Change permalinks for post type ‘post’ only
- wp_insert_post is automatically modifying my post content
- 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
- How to query serialized array by comparing greater than (>=)?
- How to limit user to publish post per day and per role?
- How to change post to page
- Syntax Highlighter XML striping
- Restrict users from editing post based on the age of the post
- How to Load Scripts and CSS for Admins Only When Editing or Adding Posts
- Query posts distinct authors
- when returns wp_errors or 0 , how to set conditional tag
- widget should display post archive by year and on click also by month
- Change padding to text indent in “Increase indent” TinyMCE
- Determining Slug Before and After Edit
- 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()?
- Set font size automatically according to number of words in post
- 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
- Filter post before *editing*
- How to display an icon when a new post is published and then remove it when a specific time past?
- How to change bulk post status
- exclude particular posts in archive.php
- How to display post tags
- WP_Query in functions.php overrides global $post object, even with wp_reset_query()
- If specific user role then sticky post
- How to Add ‘Post Categories’ to the Dashboard Sidebar
- WP rest api returns 404 only when author param is used
- How to add a custom field after wp post
- Link post permalinks to subdirectory /post
- What Is meta_id In wp_postmeta?
- the_posts filter been called multiple time
- Submitting POST data to a custom page template triggers a 404, why?
- How do I add a custom body class to the admin area of a page?
- Reset/Reorder posts ID in the MySQL wp_posts table
- Remove the Edit button in posts for permalinks on certain user roles? WP 3.3
- Encrypt / Decrypt Post Title and Details
- How to prevent WordPress from updating the modified time?
- Custom WP_QUERY $args
- how to set beforsend option in wordpress ajax methods
- Dynamic carousel on individual posts
- Can’t get the_content of the parent page from its single post?
- How do I Show ALL posts for Catagories and Tags?
- Get the most repeated post contents from a search?
- Prepend or add an Image to the content of a Post
- Remove all links in post content
- pre_get_posts query between 2 dates (date stored in custom post meta)
- How to add pagination in between post and comments?
- Posts not showing on page
- Select a specific post to display in a news box
- Add Word Limit to Posts
- Having trouble with the_post_thumbnail to display thumbnail with custom size
- How to Programmatically add an empty Block to every post on wordpress site?
- Classic editor throws 403 error based on post content
- How to build a site with a map that shows where people offer and need help?
- Get the number of posts shown in the current page
- Get all attachment by post excluding featured and content inside
- I get this error message when I try to add a module to a course on my website using Sensei plugin
- Post categories to pages
- Getting value from get_post_custom
- Publish post’s date is set to Nov 30 -0001
- WP_Query: Mixing category__in and tag__in together
- Fix existing media names with accents
- Any way for get_next_post() to use the actual post order instead of publish order?
- If in_category not working for multiple single.php pages
- How to monitor the first publish date?
- Site ‘Categories’: save an admin global setting with post metadata [closed]
- Exclude posts by date – related post
- How to get post ID after removing that post?
- I cannot see the pagination in /wp-admin posts page
- Twenty Twenty-Four: Static Front Page with Post Links
- Insert Tag in WordPress Post