• Resolved mygcdev

    (@mygcdev)


    I’m trying to stop archived posts from displaying on the front end of my website when being logged in for the all roles if possible. I’ve tried separately being logged in as an Editor and Administrator and the archived posts still display on the front end. They do not appear when not logged in.

    I have added the following to the themes functions.php (we are running a child), however archived posts are still displaying. Am I missing a step? Thanks.

    >>>>>>

    function my_aps_default_read_capability( $capability ) {
    $capability = ‘read’;

    return $capability;
    }
    add_filter( ‘aps_default_read_capability’, ‘my_aps_default_read_capability’ );

    add_filter( ‘aps_status_arg_public’, ‘__return_false’ );
    add_filter( ‘aps_status_arg_private’, ‘__return_false’ );

    [ No bumping please. ]

The topic ‘Archived Posts still displaying after adding filter’ is closed to new replies.