Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Reply To: [Assigned] limit number of posts for user with access

$
0
0
Dear ingrid,

The Access is not ready to work with the limit parameter. However you can use the "post_limits" filter to control it. You can do something like this:

add_filter( 'post_limits', 'my_post_limits' );
function my_post_limits( $limit ) {
    if ( is_search() ) {
        return 'LIMIT 0, 25';
    }
    return $limit;
}

Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.


Viewing all articles
Browse latest Browse all 20145

Trending Articles