The textarea field type is used to store texts that are a bit longer and that may require linebreaks. Example of usage areas is author bios, product fact boxes.
The field can also use the TinyMCE-editor, making the field a fully WYSIWYG-capable field.
Example
// Field slug is "textareaExample"
$text = simple_fields_value('textareaExample');
echo $text;
Output of above:
Elit ipsum placerat accumsan dui nunclorem. Nostrud cum laboris ut lacus morbi.
Pulvinar risus mi minim.
When i use textarea field with html editor enabled i’m unable to add any groups in the post.In the debug it says tinymce not defined.How to overcome this?
meant more tag …
Hi, Tag does not work, has anyone a solution for that?
Thanks
would be great if you implement shortcodes ability to add in your field WYSIWYG
Right now I use it to get the result shortcode:
$text = simple_fields_value(‘textareaExample’);
echo do_shortcode($text);
but I think it’s not quite right
Thanks.
Please help me with php function. In need to add the code in a php page. Where can I find the code? I need to add a diferent content for each page. Thanks a lot.
problem solved!
where do you put the php tags based on the above example?
It depends on where you want to use the fields. For example in your single.php file if it’s on a regular page you want to show them.