Tell us what you are trying to do?
Add field not just value
Is there any documentation that you are following?
Yes the advice to add the code <?php echo(types_render_field( 'franchise_initial ', array( 'show_name' => true ) )); ?>
to single.php is not working when I try to respond to support I receive an error please supply an email to respond to issue
I've tested the same code in the same location in the "single.php" file on my test website and it worked as expected.
Can you please test this again after removing the opening PHP tag?
( screenshot: hidden link )
In case the issue still persists, you're welcome to share temporary admin login details in reply to this message.
Note: Your next reply will be private and please make a complete backup copy, before sharing the access details.
To reply to an existing support ticket, please make sure that you're logged in using the same Toolset account that was used to start the ticket. We can continue this investigation through this new ticket and you can mark the earlier ticket as resolved.
( ref: https://toolset.com/forums/topic/show-field-name-not-just-value/ )
Thank you for sharing these details and I apologize for the delay.
I see that the code for the custom field is added in the theme's "single.php" file after the "get_footer()" function.
( screenshot: hidden link )
If you'll check any single "Find a Franchises" post, for example {yourwebsite.com}/find_a_franchise/school-rock/ you'll see that the field's name and the value is showing below the footer, as expected.
( screenshot: hidden link )
This confirms that the code is bringing in not just value but also the field name.
( for example in "Initial Fee: $49,900". "Initial Fee" is the field name and "$49,900" is the value ).
Note: the content in the single "Find a Franchises" post pages, is managed by the content template named "Template for Find a Franchises":
{yourwebsite.com}/wp-admin/post.php?post=9555&action=edit
You can edit the content area of those pages through this content template without having to add the code directly in the "single.php" file.
Thank you for the information.
I am new to toolset and am trying to understand If I want the multiple field information in the template for find a franchises inside the main text boxes where exactly should I put that code provided to include the field and the value?
In the content template "Template for Find a Franchises", I noticed that you've already added this shortcode to show the "franchise_initial" field value:
[types field='franchise_initial'][/types]
I've updated that shortcode to include the show_name='true' attribute and it is now showing the field name and the value:
( screenshot: hidden link )
I am also wanting to bold just the field not the value I have inserted the code <span style="font-weight: bold;">[franchise_invest="Minimum Investment"]</span> but it is bolding the field and the value how to you separate the field to be bold the value to normal font weight.
If you'd like to bold just the field's name and not the value, then you'll need to add the field name manually and use the type's field shortcode, only to show the value.