[seoText]
type = textarea
rows = 10
cols = 40
tinyMCE = true
htmlEditor = true
but I really need CKEditor to load into or, at least, to let tinyCME doing it. Is it possible?
Thanks
my CFT code
[cft_group_fieldset]
type = fieldset_open
multiple = true
multipleButton = true
mediaRemove = true
[cft_group_photo]
label = select a photo
type = file
hideKey = true
mediaButton = true
mediaLibrary = true
relation=true
[cft_group_alt]
type= text
label= alt text
hideKey = true
[cft_group_fieldset]
type = fieldset_close
in functions.php and in single.php I used the code proposed here:
if( !function_exists('get_cft_repeating_data') ){
function get_cft_repeating_data( $like_item ){
global $post, $wpdb;
$sql = "SELECT * FROM $wpdb->postmeta WHERE post_id = $post->ID AND meta_key LIKE '%" . $like_item . "%' ORDER BY meta_id ASC";
$data_objects = $wpdb->get_results($sql);
$project = array();
$i = 0;
$fieldset = $like_item . '_fieldset';
foreach($data_objects as $data) {
// the name of the fieldset:
if ( $data->meta_key == $fieldset ) {
$limit = $data->meta_value - 1;
}
$i = ( $i <= $limit ) ? $i : 0;
if( $data->meta_key != $fieldset && $data->meta_value !='' ) {
$project[$i]["$data->meta_key"] = $data->meta_value;
}
$i++;
}
if(!$limit && is_user_logged_in() )
echo 'Could not establish Custom Field Limit. The $like_item set was ' .$like_item . '<br /> SQL query was ' . $sql;
return $project;
}
}
Everything works well till the moment I try to delete an image previously uploded.
As I refresh/reload my post the img is still there, and I have an error message in my site page (frontend).
Could not establish Custom Field Limit. The $like_item set was cft_group
SQL query was SELECT * FROM lmyrph0_postmeta WHERE post_id = 101 AND meta_key LIKE ‘%cft_group%’ ORDER BY meta_id ASC
In addition Media picker is buggy and doesn’t work
Any suggestions please?
]]>Currently, I’m running the site on my localhost until it’s fully ready to go online. Therefore, please help me with this problems.
Thanks ahead. ^_^
iya
]]>Now I bumped in to this Textarea problem.
If I select a word in the Textarea text editor to make it bold ( tag), the and tags are shown in to the actual output.
Of course I don’t want these tags to show up in to the output.
Can anybody help me with tis issue?
Is there maybe a setting which I forgot?
Already much appreciated!
This is the code I used for the Textarea object.
[text_col1]
type = textarea
rows = 4
cols = 30
htmlEditor = true
tinyMCE = true
]]>When I first create the post & set the custom fields through this plugin, everything goes how it should. Post custom fields and their values are written to the DB, and I can retrieve and manipulate them how I want to.
However, if I were to go back to that same post to edit it again, the values I initially set don’t carry over into the CFT plugin’s module in the post editor. So, essentially, everything appears to be ‘wiped out’ — as if it doesn’t remember what I wrote the first time. And if I go ahead and click “update” without going back and setting the values again, they are erased.
I should mention I’m using about 4 different templates within the Custom Fields Template plugin itself. Sometimes the editor will “remember” values from whichever template is displayed at first – but if I change to one of the other CFT templates I have, those values are always gone.
Anyone know of a solution? Or where I should look in the plugin PHP to address this?
Thanks
]]>