Comments Martin started the conversationNovember 5, 2018 at 4:01pmHello,as far as I can understand, we can't yet filter the WP_Query arguments for the Necatar Recent Posts Extra widget. if(!empty($category) && $category != 'All') { $r = new WP_Query(array( 'post_type' => 'post', 'category_name' => $category, 'showposts' => $number, 'nopaging' => 0, 'post_status' => 'publish')); } else { $r = new WP_Query(array('showposts' => $number, 'nopaging' => 0, 'post_status' => 'publish')); }So it is not possible to exclude a post if it is currently being displayed. Am I correct?If so, I'd like to make a feature request as to add a filter here for the arguments. So posts can be excluded as with the default WordPress widget (https://wordpress.stackexchange.com/questions/109484/how-to-exclude-posts-on-current-page-from-recent-posts-sidebar-widget).Thanks 8,998Tahir repliedNovember 5, 2018 at 6:32pmHey Again,Have noted it in the Wishlist . Best ThemeNectar Support Team Sign in to reply ...
Hello,
as far as I can understand, we can't yet filter the WP_Query arguments for the Necatar Recent Posts Extra widget.
So it is not possible to exclude a post if it is currently being displayed. Am I correct?
If so, I'd like to make a feature request as to add a filter here for the arguments. So posts can be excluded as with the default WordPress widget (https://wordpress.stackexchange.com/questions/109484/how-to-exclude-posts-on-current-page-from-recent-posts-sidebar-widget).
Thanks
Hey Again,
Have noted it in the Wishlist .
Best
ThemeNectar Support Team