Skip Navigation

[Resolved] Cannot find “Field Options” under the Single Field setting

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

Problem:

Control the character limit of post title.

Solution:

You can try with custom codes, for example:

https://toolset.com/forums/topic/cannot-find-field-options-under-the-single-field-setting/#post-1886537

Relevant Documentation:

This support ticket is created 3 years, 10 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 5 replies, has 3 voices.

Last updated by cynthiaH 3 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#1885587
Video screenshot.png
My site.png

Hi, I watched below video on your site and the host shows that when you use "Single Field", there is a "Field Options" control on the right bar so you can set the character limit.
However, when I followed exact the same steps, I cannot see the "Field Options" so I cannot set up character limit. Do you know why?
If it helps, my single field is using dynamic resource from "Post Title".
Here is the link of the video and you can see the screenshot I taken in attachment
https://toolset.com/lesson-placement/lesson-placements-1824661-1622283/#video-box-04_04_Pagination_and_Infinite_Scrolling

#1885767

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

The character limit is an option available for the Post Excerpt only (for when you automatically generate an excerpt and need to specify its length).

It's not an option that is available for other fields. The Post Title field will output the whole title.

#1886371

Hi Nigel, thanks for the quick response! Is there any workaround so I can limit the words of post title?

#1886537

Hello,

You can try with custom codes, for example:
1) Add below codes in your theme file "functions.php":

add_shortcode('mb_strim_title', function($atts, $content){
  	$atts = shortcode_atts( array(
        'length' => '20',
    ), $atts);
	$content = mb_strimwidth(do_shortcode($content), 0, $atts['length'], "..");
	return $content;
});

2) Use above shortcode like this:

[mb_strim_title length="20"][wpv-post-title][/mb_strim_title]
#1886701

Thank you guys. This is very helpful. I'm surprised that you replied so quickly even during Christmas time. I'm really impressed.
Hope you all have a great holiday time!

#1886703

Thank you guys. This is very helpful. I'm surprised that you replied so quickly even during Christmas time. I'm really impressed.
Hope you all have a great holiday time!