Skip Navigation

[Resolved] Excerpt length not what I specify in Content Template

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user is using the [wpv-post-excerpt] shortcode with the length parameter e.g [wpv-post-excerpt length='200'] however the length attribute was not working.

Solution:

Upon investigating this issue for the custom I found that it was a plugin conflict with the "Organize Series" plugin.

If you are currently experiencing a similar issue I would recommend trying to disable all the non-toolset plugins and try again.

This support ticket is created 5 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 9 replies, has 2 voices.

Last updated by marcelO-2 5 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#1220176

I updated to the latest versions of the Toolset plugins (I think Forms & Views were updated recently)

Front-end of my Content now does not display the length of the excerpt as specific in the Template.

In my template, I have {!{wpv-post-excerpt length='500'}!} but that is being ignored, only about 100 characters are showing.

Examples:
hidden link
hidden link

#1220339

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Marcel,

Thank you for contacting our support forum.

You need to specify the count type.
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-excerpt

If not then it will default to 500 characters and not works.

Thanks,
Shane

#1220642

Default shortcode provided to me via Toolset on Admin Bar is:

{!{wpv-post-excerpt length='300'}!}

Now if count='char' is a requirement, as per the Shortcode Reference, why is this not included?

Now I've tested {!{wpv-post-excerpt length='280' count='char'}!} in the template, and it makes no difference. I'm no longer able to define how many characters (or words) are displayed.

A reminder: this worked until the most recent Toolset plugin updates.

#1220992

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Marcel,

Thank you for the further detail.

Would you mind allowing me to have access to the page so that I can check on this template for you?

The private fields will be enabled for your next response so that I can check to see what is happening here.

Thanks,
Shane

#1221087

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Marcel,

Would you mind if I took a copy of the website to test locally ?

I would like to go through the versions of views and see where it broke.

Thanks,
Shane

#1221391

You may. Do I need to do anything?

#1221731

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Marcel,

Creating the copy now.

Will post an update as soon as I can.

Thanks,
Shane

#1221984

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Marcel,

I did a bit of debugging on the local copy that I took and found that this plugin here "Organize Series" is interfering with the excerpt shortcode count value.

I've disabled this plugin and the excerpt should be respecting the settings now.

Thanks,
Shane

#1222168

Thank you Shane, that now makes sense.

Fortunately, it's not an important plugin.

Wow, Toolset is quite sensitive - I've never worked with a plugin that is so easily affected by other plugins. Oh well, it's worth it because it does the job no other plugin can do.

#1222170

My issue is resolved now. Thank you!