Php code cornerstone

Hi smart people!

I have tables with auto-populated fields using php and I am trying to implement them through cornerstone, but the fields are not populating. I don’t think the php code is being read.

Does anyone know a workaround for this?

Hello Rob,

Thanks for writing in!

You can’t run PHP codes in Cornerstone. You can instead create Shortcodes and call tha block of PHP codes using Shortcodes by adding the same in Cornerstone Text or Raw Content Element.

You can take a look at following resources to get started.

https://codex.wordpress.org/Function_Reference/add_shortcode

https://wordpress.org/support/topic/php-code-inside-shortcodes/

https://wordpress.org/support/topic/php-inside-shortcode/

As this is all custom development, regretfully we won’t be able to assist further. Custom development is outside the scope of our support. I have tried my level best to advice you and get you started in the right direction, but you would still be responsible for the implementation.

Thank you for your understanding.

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