Post length when no exceprt
Hi,
I've used the following code to limit exceprts, see https://www.plc.freshhq.co.uk/knowledge-hub/
function custom_excerpt_length( $length ) {
return 20;
}
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
The problem we are having is that a lot of the clients posts don't use excerpts so it's adding Continue reading after the exceprt.
Additionaly, and it might not be related it's messing with the navigation which keeps appearing within the posts. See attached for what I mean.
Any thoughts on what's happening?
Thanks,
Darren

-
Hi Darren,
Kindly try the plugin Advanced Excerpt instead of the code and see if that makes a difference.
If you want to implement it using code, kindly look at the recommendations in this article https://www.wpbeginner.com/plugins/how-to-customize-wordpress-excerpts-no-coding-required/
0 -
Hi KC,
So i've tried Afvanced Excerpt and within that set the Excerpt Length to 15, then viewed the page and if there's no Excerpt, the excerpt lengh is 73 words.
Also tried some code but it's not changing at all.
Thanks,
Darren0 -
Hi Darren,
It is possible that you have an Excerpt length setting in your theme and it is overriding the setting in the Advanced Excerpt plugin. Kindly check Appearance - Customize menu.
The credentials you had provided does not work and hence could not check your WordPress Dashboard. Now your website is showing SSL error and redirecting to another URL
0 -
Hi KC,
We've just made the site live so the URL is https://paramountlegalcosts.co.uk/
In Customize > Excerpts it's set to Summary.
Thanks,
Darren0 -
Hi Darren,
The WordPress excerpt length setting appears to be ignored by the Brizy excerpt element. It does, however, take into account the custom excerpts added to every blog post.
"Read More" or "Continue Reading" options at the end of the excerpt are typically not displayed in Brizy Excerpt element. This may be occurring in your project as a result of code modifications or another WordPress Dashboard configuration. Some investigation is required to troubleshoot the cause.
Do you have a test/staging environment we can access to troubleshoot this issue?
0 -
Sure. How can I get login details to you?
0 -
Hi Darren,
Kindly add a new user to your WordPress Dashboard and send the following details to our email: communitysupport@brizy.io
- Community Post link: https://support.brizy.io/hc/en-us/community/posts/18893875570066
- WordPress Admin URL:
- Username
- Password
Please let us know in this forum when you send us the email.
0 -
Hi Darren,
The Twenty Twenty One theme appears to add the "Continue Reading" at the end of excerpts by default. To get rid of it, kindly consider switching your theme to Blocksy. The Blocksy theme also has customizer setting for the length for Excerpts and hence you don't need a plugin to set excerpt maximum length.
0 -
Thanks KC. We'll take a look at Blocksy.
TBH we just use Twenty Twenty One for ease as we do most things with Brizy.
0
Please sign in to leave a comment.
Comments
9 comments