wpdevco
11/28/2014 - 11:19 PM

Limit Tags Per Post

Limit Tags Per Post

//* Limit tags to three per post...
add_filter( 'term_links-post_tag', 'wpdevco_limit_post_tags' );
function wpdevco_limit_post_tags( $terms ) {

    return array_slice( $terms, 0, 3, true );
}