Excluding Author from Post Slider

accounts's Avatar


04 Jun, 2020 09:49 PM

Hi there,
Is there a way to exclude certain author(s) from having their posts appear in the post slider carousel? I searched on here and didn't see a way that I can find.

  1. Support Staff 1 Posted by Dmitry Semenov on 05 Jun, 2020 04:19 AM

    Dmitry Semenov's Avatar


    You may modify query via filter http://help.dimsemenov.com/kb/wordpress-royalslider-advanced/wp-mod... Something like:

    function newrs_exclude_authors($args, $index) {
        $args['author__not_in'] = array( 7, 3, 4 ),
        return $args;
    add_filter('new_royalslider_posts_slider_query_args', 'newrs_exclude_authors', 10, 2);

    (where 7, 3, 4 are IDs of authors that you want to exclude)

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac