Skip Navigation

[Resolved] Displaying Post Field "Description" property on frontend using Layouts

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 7 years ago.

Assisted by: Nigel.

Author
Posts
#599648

I've created a CPT and defined Post Fields using Toolset. Now I am creating a layout for editing that CPT on the frontend.

I can display all of the form fields and their Post Field "Placeholder" configurations work, but I don't see any examples or documentation on how to output the Post Field's "Description" property.

I'm using standard example code to output labels and fields:

<div class="form-group">
<label>Receptions</label>
[cred_field field='receptions' post='myproperty' value='' urlparam='' class='form-control' output='bootstrap']
</div>

Is there a way of accessing the Description setting for each field?

#599792

Nigel
Supporter

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

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

Hi Robert

Firstly, please note that you are posting in the Community Forum for users of the free Types plugin. As a Toolset customer you can and should post in the Technical Support forum which we prioritise and where you should receive speedier service.

The only place the description field is used within Toolset is on the post edit screens, where you enter the fields when editing a post.

If you want the description to appear someplace else, you'll need to access it with PHP, it is stored in the wp_options table.

See this related thread for details: https://toolset.com/forums/topic/get-custom-field-description-in-php/

To use it in a CRED form you would probably want to create a custom shortcode that had the field name as an attribute.

Let me know if you try that and have problems.

The forum ‘Types Community Support’ is closed to new topics and replies.