Without seeing your code, here’s a rundown that should work for you.
- At the top of your template file, start an array,
$featured_posts = array();
- In your featured posts loop, in each iteration, add the ID of the post to the array,
$featured_posts[] = get_the_ID();
- In your second loop, check to see if the post was already displayed, and if so, skip to the next iteration of the loop:
if ( in_array( get_the_ID(), $featured_posts ) ) continue;
Related Posts:
- display all posts in wordpress admin
- How to get Images included in Post
- When and Where is `global $post` Set and Available?
- Create an “All Posts” or “Archives” Page with WordPress 3.0?
- Post visibility on the basis of roles
- List only child categories a post is in, of a specific parent category
- Unattaching images from a post
- Is it possible to add a first and latest posts link?
- Setting post meta data to random value during post status transition / on publish
- Add link on the top menu of the post table?
- Get the object ID by URL
- How to allow slashes in single posts when i click in the edit permalink button
- Load post content into div with ajax
- Why does `url_to_postid` return 0 when testing `page_for_posts` Page?
- deleting terms programmatically
- wp_enqueue_media() slows down my WP site
- Edit menu item title from edit page/post
- Including new Javascript only after a comment is made
- Don’t post or draft if post already exists
- add filter to “quick edit menu” in wordpress admin
- posts_per_page doesnt work
- URL Rewriting if it is a single post / redirecting post – post type
- Archive Page for Custom Post Type is not Working
- Multisite – Get current post id
- Ajax posts filter by date, comments, top views, top likes
- Copying and pasting emoji in a wordpress post
- how to remove dash (-) post status from post title on posts listing page wordpress
- Static page does not show my posts
- Get latest posts from WordPress site without header, menu and sidebar
- How can I schedule a PAGE to go live at a future date/time?
- Counter of posts ever posted – even deleted ones
- Errors when uploading images in WP 3.5
- Most liked page not displaying posts
- How can I replace WordPress standard process of editing posts with making WordPress use a custom page? [duplicate]
- Post’s “Read More” redirects to wrong post
- 404 on paginated blog pages
- How to hide html tags on revision comparison pages?
- Blog page pagination is not working after using the offset argument
- how to change the number of posts returned in a specific loop without making it global?
- Related posts by category not working right
- custom post template file not shown, instead all the time 404.php
- Display post x of y within category
- WordPress Automatic Filename Changer
- 2 dynamic sidebars registered, not showing up
- How to save meta checkbox WordPress
- Sidebar show posts by current category also in single post
- Category Redirects to homepage [closed]
- Displaying post excerpt using wpdb query
- All posts display default index.html
- How to display Changing post link for 24 hours in x category
- Upload attachment from external site
- Disable posts generated from image uploads
- Custom permalink for each post
- Not all posts showing in query
- Related Posts: Changing Function For Posts Per Page
- Template for regular posts (no custom post types)
- WordPress query portfolio posts
- Rand post related question
- SQL Bulk Move old posts by one author to another category
- load more posts by category
- Import custom database into wp and keep the post id
- Retrieve a specific post’s featured image and show on a different page
- WordPress wp_editor to post and edit
- How to display Post title By ID and its Thumb Contents
- Is there a way to define the $post var outside the loop?
- How do I keep raw HTML in my RSS feed and not lose my paragraph breaks?
- How to show multiple posts thumbnail, title and date in widget
- Remove all external links from posts
- Only the most recent post is showing on my category page (working on localhost, not live site)
- Blog Posts – Scroll to view more
- After updating to 5.9, when the posts page is loaded in the browser it uses wp-includes/template-canvas.php?
- Show only posts with titles/permalinks that do not contain certain words
- Manipulated offset and pagination, can’t display last post anymore
- index.php not getting blog posts anymore
- Change of author not updating
- Mysql update menu_order problem
- Single post shows post three times
- Put page on Archived statut after end of publication date
- Change WordPress names duplicate titles (url)
- My posts page is missing the page title
- Blog Post slider not working
- WordPress template next_prev
- Point to a page when there is no results
- Remove All in One Seo from Posts for Contributors
- Add row after three columns
- My blog “page” used to show a list of posts, but now it’s just showing the page content?
- Show posts between two Custom Fields date
- Grab next post title in archive page
- How to store post rating system data post independent?
- Displaying different posts Via wp_list_categories()
- unused post IDs
- get_post_meta property of non object
- Which hooks are essential for post templates?
- First post in loop displays twice
- custom post type single page template not working
- WordPress posts [closed]
- Post UI Tabs plugin double fade effect
- Error 404 blog/page/2/
- website images getting corrupt automatically
- Posts Page in WordPress loading bare HTML of my homepage