Skip Navigation

[Résolu] Hide Default Title in Post Relationship

This support ticket is created Il y a 6 années et 3 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Ce sujet contient 3 réponses, a 2 voix.

Dernière mise à jour par Beda Il y a 6 années et 3 mois.

Assisté par: Beda.

Auteur
Publications
#1090080
err_or.png

I have Created One to Many Relationship between Obituaries and Services. So At the time of adding services it is taking "Title" in child Post. I don't want that.
How can i hide or remove from the Child Post?
PFA of Image.

#1090108

It's not possible yet, what you can do is hide the entire Metabox only (the entire "Add/connect related posts" GUI)

I have however filed a internal report for this to be added with urgency as I see the immediate need for it.

I assigned myself to the ticket and will notify you on the progress.

#1091845

Hi I still need help. If it is not possible to remove title then is it possible to change the text of "Title". Instead of "Title" I want to display "Service Type"

#1091854

No, that value is hardcoded in Types.
It is a Post Field (not a Custom Field) and rendered with:

{% if field.type == 'post' %}
					<div class="js-wpt-field-item wpt-field">
						<label class="wpt-form-label wpt-form-textfield-label" for="types-new-post-type-title">{{ __( 'Title', 'wpcf' ) }}</label>
						<input class="wpt-form-textfield" id="types-new-post-type-title" name="wpcf[post][post-title]" value="" type="text" data-bind="value: newAssociationTitle, valueUpdate: 'keyup'">
					</div>
				{% endif %}

The title is hardcoded, but localized.
This means you could translate that value to other languages (and hence change it), but not change it's original.

What you try to achieve will be possible in future, I personally filed the request with urgency.