diff --git a/library/custom-posts.php b/library/custom-posts.php
index 618e9c6..9f006e6 100644
--- a/library/custom-posts.php
+++ b/library/custom-posts.php
@@ -3,7 +3,7 @@
// create the new custom fields for this custom post type
add_action("admin_init", "admin_init");
-
+
function admin_init(){
add_meta_box("dades_artistes", "Dades artista i obra", "dades_obres_autor", "page", "normal", "high");
add_meta_box("dades_activitats", "Dades activitats", "dades_cal_activitats", "post", "side", "low");
@@ -24,20 +24,20 @@ function dades_obres_autor() {
$data_obra = $custom['data_obra'][0];
$autor_data_resid = $custom['autor_data_resid'][0];
$autor_tipo_resid = $custom['autor_tipo_resid'][0];
-
- //here we construct the fields for the backend user interface
+
+ //here we construct the fields for the backend user interface
?>
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
+
+
+
+
ID);
$Inici = $custom['Inici'][0];
$Ordre_inici = $custom['Ordre_inici'][0];
- //here we construct the fields for the backend user interface
+ //here we construct the fields for the backend user interface
?>
-
- />
-
-
+
+ />
+
+
ID;
-
+
// verify if this is an auto save routine. If it is our form has not been submitted, so we dont want
// to do anything
- if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE )
+ if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE )
return $post_id;
if ($post->post_type == 'page') :
update_post_meta($post_id, "autor_obra", $_POST['autor_obra']);
@@ -129,7 +129,7 @@ function save_details(){
update_post_meta($post_id, "telefon", $_POST['telefon']);
else :
update_post_meta($post_id, "Inici", $_POST['Inici']);
- update_post_meta($post_id, "Ordre_inici", $_POST['Ordre_inici']);
+ update_post_meta($post_id, "Ordre_inici", $_POST['Ordre_inici']);
update_post_meta($post_id, "data_activitat", $_POST['data_activitat']);
update_post_meta($post_id, "data_activitatES", $_POST['data_activitatES']);
update_post_meta($post_id, "data_activitatEN", $_POST['data_activitatEN']);
@@ -137,4 +137,4 @@ function save_details(){
update_post_meta($post_id, "horari_activitat", $_POST['horari_activitat']);
endif;
} //end function
-?>
\ No newline at end of file
+?>