Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/05/2012, 23:53
arg
 
Fecha de Ingreso: mayo-2009
Mensajes: 62
Antigüedad: 15 años
Puntos: 1
Funcion de wordpress para ingresar una entrada

Hola, el tema es el siguiente... tengo este script para ingresar entradas a mi wordpress.. la cosa va bien pero cuando ingreso palabras con acento y ñ se me ve mal

Por ejemplo en ves de atrás me pone atrás y asi

Esta es la funcion

// Create post object
$my_post = array();
$my_post['post_title'] = $texto;
$my_post['post_content'] = $contenido;
$my_post['post_status'] = 'publish';
$my_post['post_author'] = $user_id;
$my_post['post_category'] = array(106);

// Insert the post into the database
wp_insert_post( $my_post );

Que tengo que hacer para que funcione bien? y es recomendable usar este tipo de funciones?

Gracias