Tag Info

New answers tagged

0

There is a build in meta box to handle custom excerpts. You just need to check the excerpt option box under screen options in your post screen, once checked, you will see the excerpt editor box below your WYSIWYG editor metabox. For custom post types, make sure that you set the excerpt as support feature in your arguments when registering your post type ...


0

Add a custom field in your backend named excerpt_length (really simple, if you have issues, see this video). In your functions.php add this: global $wp_query; $postid = $wp_query->post->ID; $excerpt_length = get_post_meta($postid, 'excerpt_length', true); function custom_excerpt_length( $length ) { return $excerpt_length; } ...



Top 50 recent answers are included