Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author htmlBurger

    (@htmlburger)

    Hey @jivedig,

    Yes, Carbon Fields administration forms can be implemented in the frontend, however it is not natively supported. It can be done with some custom code to allow rendering and saving in the frontend.

    Thread Starter JiveDig

    (@jivedig)

    Thanks. Can you point me to the file (and possibly hook/function/method) to give me a head start? I’m curious to try it. I’m a dev with coding experience already with ACF/CMB2/Piklist so I’d love to give Carbon a spin. I won’t blow up your support, I promise ??

    Plugin Author htmlBurger

    (@htmlburger)

    Hey @jivedig,

    The most essential methods are in /core/Helper/Helper.php. Some of the necessary methods will already be hooked in the frontend, with the exception of the init_scripts one, which is usually hooked on admin_footer.

    In addition, you will notice that both each Container and each Field enqueue the main Container and Field scripts and styles. You might want to enqueue these manually, as they’re currently included only in the frontend.

    Finally, each container (post meta, term meta, options, etc.) is using the native WordPress APIs for registering, attaching and rendering the containers in the administration. For example, for the post meta container, the add_meta_box() is used. You will have to build your own functions here for rendering your own containers. Any container is basically rendered by its render() method, which you can render anywhere you want.

    Hope that should be enough for you to start. Don’t hesitate to head back here if you need any further information ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Carbon based front end forms?’ is closed to new replies.