Skip Navigation

[Resolved] Customize post name, title, content and excerpt

This support ticket is created 6 years, 3 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 3 replies, has 2 voices.

Last updated by Luo Yang 6 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1115650

AJ
Capture.PNG

Tell us what you are trying to do?
I'm trying to change the default names for "Post Name", "(Post) Title", "(Post) Content" and "(Post) Excerpt" labels but to no avail I couldn't find the settings, not even under Form Messages settings. I wish I could change the text labels so it would appear customized on the form front-end along with other custom fields but I do not know to achieve that.

I tried to find under Post Types and Custom Fields, still no luck. I was thinking if there is code snippets that could change those default labels that I could paste as custom code.

Here's the image example I posted below marked with numbered red box that I wish to rename to any label I want.

Maybe Toolset development teams can produce these feature in the future. It would be amazing if user can change those default wordpress label under Form Messages too. Thank you.

#1116190

Hello,

1) "Post Name" in error message, it is hardcoded in the Toolset form plugin, file \plugins\cred-frontend-editor\application\controllers\form_rendering.php, line 1116:

		$message = str_replace( "post_title", "Post Name", $message );

I don't think there is an easy way to change it, if you agree we can take it as a feature request, our developers will evaluate it.

2) "(Post) Title", "(Post) Content" and "(Post) Excerpt" labels ...
Please edit your post form, in section "Content", you should be able to change those label text manually, for exmaple:

<label>My custom Post Title</label>
[cred_field field="post_title" class="form-control" output="bootstrap"]
#1116216

AJ
Capture.PNG

1) I don't think there is an easy way to change it, if you agree we can take it as a feature request, our developers will evaluate it.

Yes, please forward it as a feature request in the future. I guess I have to use "Post Name" for now. I wish there is other way to change that.

2) "(Post) Title", "(Post) Content" and "(Post) Excerpt" labels ...
Please edit your post form, in section "Content", you should be able to change those label text manually, for exmaple:

Sorry for not very specific, what I meant originally was those marked yellow highlighted red text(see image above) is the "error message" that I was aiming for to rename or change. It would appear as "default" names eventhough I've changed the Form Labels.

It would be great if I could rename the "default" error message which is "CPT - Pemilik Perniagaan Title" into something more label-friendly like "Pemilik Perniagaan Name" , etc and so on. Also, I hope this can be achieved using custom code and it would be applied to other Forms too. Thank you.

#1117086

Thanks for the details, for the text "Post Title" in your screenshot
hidden link

There isn't option to change it, see our document:
https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_field

Same as above, we can take it as a feature request.