Okay
  Public Ticket #1772336
Feature Request: filter for "Nectar Recent Posts Extra" widget
Closed

Comments

  • Martin started the conversation

    Hello,

    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,998
    Tahir replied

    Hey Again,

    Have noted it in the Wishlist . 

    Best


    ThemeNectar Support Team