Skip Navigation

[Resolved] Name of Types field still does not show after Types v3.0.3

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

Problem: I am trying to display the name of a WYSIWYG custom field using the types_render_field shortcode, but it is not working.

Solution: Update to Types 3.0.7

This support ticket is created 6 years, 6 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 12 replies, has 2 voices.

Last updated by Christian Cox 6 years, 6 months ago.

Assisted by: Christian Cox.

Author
Posts
#953181

In this thread i described my problem.
https://toolset.com/forums/topic/name-of-types-field-does-not-show/

You told me
1. Showing field names is not supported
2. OK, it´s bug, it should be supported
3. Take the fix -> but it did not fix my problem
4. Will be fixed with Types v 3.0.3 -> Now Im running 3.0.5, and it´s still not fixed.

Even if I closed my first thread on this issue (too quick) it´s still an issue and I ask you to fix that and tell me when this will be. It will make a difference in my efforts and in planning for a customer´s site-launch.

#953213

Hi, I can see that our developers and QA team have made progress on this issue, and plan to include the fix in an upcoming release very soon. Unfortunately I cannot give you a date yet or confirm that it will be ready in the next release, because deployment schedules are difficult to estimate. I will be glad to keep you up-to-date as I receive more information, and if I hear that the fix will be added to the next release I will let you know as soon as possible.

#953610

I received information this morning that the show_name attribute for WYSIWYG fields has been fixed in Types 3.0.6, which is now available for download and automatic update. Please update to the latest version and let me know if you continue to experience problems displaying the WYSIWYG field name by passing the show_name attribute into the types_render_field function.

#955747

thx, got 3.0.6 via auto update, names are shown now.
thx for fixing it so fast, you helped me the most, christian.

#955750

Christian, i learned, that in this version the output is not supported by a css class.

Earlier Types version output - where i can adress the Name in the front end by css styles:
<div class="wpcf-field-name wpcf-field-wysiwyg wpcf-field-praxisbeispiele-name">Aus unserer Praxis:</div>

3.0.6 - where i have no classes i can refer to in css:
Aus unserer Praxis:

Naturally, i need to style the Output of the Field Name with CSS.

My second learning: No show name is always true, no matter if i stat false or true:
<?php echo(types_render_field('praxisbeispiele', array('show_name' => 'false','output' => 'html'))); ?>
generates the same as:
<?php echo(types_render_field('praxisbeispiele', array('show_name' => 'true','output' => 'html'))); ?>

So, thanks one more time for the quick fix, but i think it might be just a half fix.
Is there a chance to get 3.0.7 also quick, delivering the classes like in earlier version and the option to select, which name i show and which i hide?

Thanks in advance,
Laszlo

#955751

live example, earlier types version:
hidden link

dev example, current version:
hidden link

#956521

Okay thanks for the update. A patch file has been released to address some issues with rendering fields:
https://toolset.com/errata/types-fields-are-not-displayed-properly-using-types_render_field/

In my local testing, it seems to resolve the problem where CSS classes are not applied as expected. I'm asking for some additional feedback on show_name now. It seems that you can remove this attribute completely, but I'm trying to find out if it should be possible to pass a false value. I'll let you know what I find out.

#958270

Christian, thanks for the patch.

It does not solve the "show name false/true" issue, but it puts tags around the value, so i can design the appearance on the frontend and i can display:none with css as workaround.

another "finding":
in the earlier version "show name true" has shown the name only, when a value was set. if it was empty, the name has not been shown. not sure if there was an option to set, like: "show names of empty fields: true/false"

i think this is of major value for the developers, cause different usecases/different customer's standards leads to different solutions.

#958300

Thanks for the additional information, I will pass that along as well. I'm still waiting to receive feedback on the show_name = 'false' question.

#958309

i have to add an edit to my last post:
this one is behaving like show name false:
<?php echo(types_render_field('zustandige-anwalte', array('output' => 'html'))); ?>

these two are behaving like show name true:
<?php echo(types_render_field('zustandige-anwalte', array('show_name' => 'false','output' => 'html'))); ?>
<?php echo(types_render_field('zustandige-anwalte', array('show_name' => 'true','output' => 'html'))); ?>

for my case it works now.
i can show or hide the name (of wysiwyg fields too) and i can style them with css.

looking forward for the fixed version, meanwhile i can go forward, ...
thanks

#1072715

I have to add, that the String Translation with WPML does not work anymore since 3.0.5.
I have implemented a workaround, so it does not urge.
... still not happy 🙁

#1074276

Thanks for your feedback regarding the show_name issue. Our developers have assured me that the problems you mentioned will be fixed in the next release of Types. I will let you know when the new version is ready to download.

#1076302

Hi, Types 3.0.7 is now available for download or automatic update. Please install the latest version and let me know if the issues with show_name are not fully resolved.