I am confused, look like is my themes functions.php
<?php
if ( function_exists('register_sidebar') )
register_sidebars(2, array(
'before_widget' => '<div id="%1$s" class="sb-bot"><div class="sb-top"><div class="sb-right"><div class="sb-left"><div class="sb-rb"><div class="sb-lb"><div class="sb-rt"><div class="sb-lt">',
'after_widget' => '</div></div></div></div></div></div></div></div>',
'before_title' => '<h2>',
'after_title' => '</h2>',
));
?>
<?php function widget_search() {
?><?php
}
if ( function_exists('register_sidebar_widget') )
register_sidebar_widget(__('Search'), 'widget_search');
?>
I need add this lines correct?
<?php
function ms_attachment_fields_to_edit($form_fields, $post) {
if ( substr($post->post_mime_type, 0, 5) == 'image' ) {
// align: (radio)
$form_fields['align']['value'] = 'aligncenter';
$form_fields['align']['input'] = 'hidden';
// image-size: (radio)
$form_fields['image-size']['value'] = 'thumbnail';
$form_fields['image-size']['input'] = 'hidden';
}
return $form_fields;
}
add_filter('attachment_fields_to_edit', 'ms_attachment_fields_to_edit', 11, 2);
?>
And:
<?php
include_once('wp-config.php');
include_once('wp-includes/wp-db.php');
?>
But i get a lot of erros.
I am trying resolve the 2 first lines.
No, i don´t modify the plugin flexive-upload yet with your instructions
I will try use photojar with your instructions.