Skip Navigation

[Resolved] create variable in view

This support ticket is created 4 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 1 reply, has 2 voices.

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

Assisted by: Christian Cox.

Author
Posts
#1693241

Hello, how are you?

I would like to know if there is a way to create a variable within a view.

For example, if I want to add numbers from a custom field and display the total value on the screen, can I do this?

I'm waiting

thank you

#1693647

Hello, there's nothing straightforward built-in to the system that will perform calculations like this, but there are several other tickets here in the forum that discuss approaches for using custom shortcodes in the loop to add up simple numeric custom field values and display the sum total, like a spreadsheet. Here is a link where you can find more information about creating and implementing these custom shortcodes: https://toolset.com/forums/topic/nested-view-with-conditional-sums/

Hope this helps!