yanick64
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Super, works! Thanks!
Only if you want to use the param name content it doesn’t work. Just so you know and maybe you can fix it.
Oops, it says resolved but still it isn’t fixed? If I use the example from your documents it doesn’t work either.
Hi, thanks for your quick response.
<?php if (!defined('ABSPATH')) die('Forbidden'); global $kc; $kc->add_map( array( 'cs_text' => array( 'name' => __('Text', 'cs'), 'description' => __('Add a simpel textarea', 'cs'), 'icon' => 'fa-align-left', 'category' => 'Content', 'is_container' => true, 'params' => array( array( 'name' => 'content', 'type' => 'textarea_html', ) ) ) ) ); add_shortcode('cs_text', 'cs_text'); function cs_text($atts) { return $atts['content']; }Somehow it still doesn’t work, when I enter text and click on “Save” in the popup and “Update” afterwards, the text isn’t saved. If I use another element with just a textfield parameter it works.
Am I really dumb or is it a bug?
Viewing 3 replies - 1 through 3 (of 3 total)