Problem/question using filter
-
Thank you for this excellent plugin
I am trying to prevent the archived posts from showing on the front end — even to logged in administrators — so I followed the instructions in the FAQ – and put this code, exactly, in my functions.php file:
function my_aps_default_read_capability( $capability ) { $capability = 'read'; return $capability; } add_filter( 'aps_default_read_capability', 'my_aps_default_read_capability' );But the archived posts still show up. My goal is to have them disappear entirely from front-end view– no links, no searches, etc.
Is there something else I need to add to the filter to make that happen. My coding skills are pretty rudimentary, so I am guessing there might be some basic step that I’m missing.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Problem/question using filter’ is closed to new replies.