Skip Navigation

[Resolved] Output field group automatically?

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.

This topic contains 2 replies, has 2 voices.

Last updated by thomasS-11 6 years, 10 months ago.

Assigned support staff: Luo Yang.

Author
Posts
#273218

Hi.

I have a Staff post type that uses custom fields for the staffs skills.
(HTML), (SEO) etc. and the field group is named Staff-fields

I want to display all fields in Staff-fields automatically, is that possible?
Further more, i want to display the calculated values too. Here is an example:
Staff person 1 has 40 in HTML
Staff person 2 has 20 in HTML
-----
So the question is:
- Can i output a calculated value of this? = 60 in html

Also, if i add a new custom field to that group, will it output the field automatically, without having to go to views and setting up the new field?.

This topic is about: Calculation and Output.

Thank you.

#273426

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (įŽ€äŊ“中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

1) Q: I want to display all fields in Staff-fields automatically, is that possible?
This is not possible within Types, I suggest you create a content template for it:
Designing WordPress Content with Content Templates
https://toolset.com/documentation/user-guides/view-templates/

2) Can i output a calculated value of this?
It is not possible within Views shortcode, you can try create another shortcode for it, for example this thread:
https://toolset.com/forums/topic/calculating-with-field-values/

#273696

Thanks alot 🙂