Skip Navigation

[Resolved] Integrating custom fields in a template

This support ticket is created 3 years, 10 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 5 replies, has 3 voices.

Last updated by PatrickL9162 3 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#1953517

Hey dear support team,

it is a pure beginner question. I have created two custom fields (Brands and Material). Unfortunately, the other plugin manufacturer doesn't like to help me.

I would like to add these two custom fields to a template. Unfortunately, I am not that proficient in PHP and the like.

Can you give me a hint how I can add this?

Thanks a lot
best regards
Patrick

#1954009

Nigel
Supporter

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

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

Hi Patrick

You are editing the theme PHP templates?

Which template? The template to display a single post of some custom post type?

You may not need to do that. Do you know that you can create templates using the Block editor in the WordPress backend without having to touch PHP?

Please see the guides here: https://toolset.com/course-chapter/displaying-content-types/

#1955829

Hey,

yes thats true.
But that is a template for a specific plugin.

I've never done that before. But I thought to ask how I can do that.
Where I can find the specific key for my custom fields?

cheers

#1956183

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

But that is a template for a specific plugin.
==>
I'm not sure what template you are trying to make edits. However, Toolset also offers Types Fields API using which you can display the custom post field using types_render_field() function.

More info:
- https://toolset.com/documentation/customizing-sites-using-php/functions/

Where I can find the specific key for my custom fields?
==>
You can find all your custom fields at Toolset => Custom Fields => Edit your desired custom field group and where you will find the custom field slug. Screenshot: hidden link

#1961411

Thank you I will try it with your hints @Minesh

#1961415

My issue is resolved now. Thank you!