Allow PHP in cornerstone element fields

I’m looking to insert data from my woocmmerce products into some of the Cornerstone elements. My initial goal is to insert these values into the “counters” but ideally would be able to place into any value area of a cornerstone element.

I would like to either do this via a shortcode into the value or php–but, as everyone knows, those strip out any tags. I have both the PHP I would like to insert as well as functioning shortcode–it is just a matter of getting these fields to allow php (or honor the shortcode, although I think the PHP insert is more appropriate for these).

Any chance there is a method to enable php for these areas?

Example would be the Classic Counter > Ending Number

Thanks so much

Hello @speckledjay,

Thanks for asking. :slight_smile:

You can not add PHP code inside the Cornerstone. You need to use shortcodes as they are intended such as:

Thanks.

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