Changeset 2698724
- Timestamp:
- 03/24/2022 05:40:20 AM (4 years ago)
- File:
-
- 1 edited
-
avoid-duplicate-posts/trunk/index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
avoid-duplicate-posts/trunk/index.php
r2698721 r2698724 5 5 Description: Avoid all duplicate posts on homepage (applies to all posts, including widgets). 6 6 Author: MyThemeShop 7 Version: 1.0. 1-beta7 Version: 1.0.2-beta 8 8 Author URI: http://mythemeshop.com/ 9 9 */ 10 10 11 add_action( 'parse_query', 'mts_exclude_duplicates');11 add_action( 'parse_query', 'mts_exclude_duplicates' ); 12 12 function mts_exclude_duplicates( &$query ) { 13 13 if (!is_home()) return;
Note: See TracChangeset
for help on using the changeset viewer.