Add 2 numbers together that are being pulled from an ACF custom field

Hi,

I am having trouble figuring out how to use Twig to add two numbers together that are being pulled through from a custom field inside a looper.

So I have a Raw content element with this looper provider - {{dc:acf:post_field field="drivers"}}, it is also set to consume all. I then have this as the content inside the Raw Content:

{% set points = acf.post_field({"field":"points"}) %}

{{ points }}

This returns 2 numbers which Is correct but I want to add them together somehow. Can you help?

Thanks

Hello @stevenburles,

Thanks for writing to us.

To help you with your concerns, we need to check your settings. I would request you please share the admin login details. Please share your details in a secure note. Please provide the following details

  • WordPress Login URL
  • Admin-level username and password
  • Exact page URL

You can find the Secure Note button at the bottom of your posts

Thanks

Hi @prakash_s

Here are the settings.

Thanks