Add php to own module?

I wonder if it is possible to add php in a “section” within Pro X, really need it to work with ACF to 100%.

Is there a possibility to make/build a own “module” to insert into the interface. And place the php code there?

Hi There,

The PHP code will not work but you can try adding the ACF shortcode to the text element.

[acf field="{$field_name}"]

For more information, please take a look at this: https://www.advancedcustomfields.com/resources/displaying-custom-field-values-in-your-theme/.

Regards!

Yes, the shordcode I know about, the problem is that we tend to build somewhat very advanced ACF-fields, and need the php-function.

So is there a way to build our own modules that could handle php, that vi maybe can add to a child theme?

Hi there,

You can create your own custom elements that you can use in Cornerstone.

Please refer to this link for more information:

Hope this helps.

That’s great!

Glad we were able to help :slight_smile:

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.