I Saw version 1.1.2 released and in the changelog the content length issue was fixed, but it is not fixed on my end. I have the latest wordpress version installed and so the latest plugin version
Hello @vertigoooo
Actually,this excerpt more with link settings automatically applies from your active theme.
In order to fix this problem,Please add the below mentioned filter hook and callback function in your active child theme .
function pp_custom_excerpt_length($length) {
global $post;
// Set content length only of process posts
if ($post->post_type == 'process_posts' && !is_single()) {
//change it according to your requirement
return 100;
}
return $length;
}
add_filter('excerpt_length', 'pp_custom_excerpt_length', 999);
[ Signature deleted ]
-
This reply was modified 8 years, 6 months ago by
kiranpreet.
-
This reply was modified 8 years, 6 months ago by
kiranpreet. Reason: tag added
-
This reply was modified 8 years, 4 months ago by
Jan Dembowski.
@kiranpreet Hi the excerpt solution seems reasonable, thanks for that, but onto my next question is how can I disable the archive pages and the single pages generated for this post type?