Many Genesis themes use a widgetized front page. This is usually a magazine-style layout with multiple loops (series of posts) instead of the traditional blog layout with just a single loop.
An issue that can arise with widgetized front pages is the same post appearing in more than one loop. Genesis addresses this with a feature that prevents posts appearing more than once per page. You can use this feature when making your widgetized front page or in any other custom loop with Genesis.
The function responsible for preventing posts from appearing more than once is
This function is called up at the end of each post in the loop and adds each post ID to a list. This list can be used in a custom loop to ensure that no post that was previously output is output again. The only default loop that uses this list is the Genesis Featured Post widget that is commonly used for widgetized front pages.
genesis_add_id_to_global_exclude is hooked to
genesis_after_entry (HTML5) or
genesis_after_post (XHTML) at the default priority 10.
Example 1: prevent posts appearing more than once across all loops on your site (by default, this only happens for loops produced by the Genesis Featured Post widget).
Example 2: only prevent the first post in each loop from appearing more than once.
Example 3: unhook this function to allow any post to be displayed more than once.
Genesis Simple Hooks
This function is not unhookable via Genesis Simple Hooks.
There are no filters on the output of this function.
genesis_add_id_to_global_exclude has been included since version 2.0.0.
genesis_add_id_to_global_exclude is located in lib/structure/loops.php.