Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/06/2013, 05:16
nnggnzalez
 
Fecha de Ingreso: mayo-2013
Mensajes: 10
Antigüedad: 11 años
Puntos: 1
Respuesta: Error al enlazar custom post types con query post

Por si a alguien le ayuda, he encontrado yo misma la solución:

Código:
add_action('init', 'popup_custom_type');

function popup_custom_type(){
	register_post_type('popup_custom_type',
		array(
			'labels' => array(
				'name' => 'Popup Custom type',
				'menu_name' => 'Popup Posts'),
			'singular_label' => 'Popup Custom Type',
			'public' => true,
			'capability_type' => 'post',
			'has_archive' => true,
			'hierarchical' => false,
			'show_in_menu' => true,
			'supports' => array( 'title', 'editor', 'author', 'revisions', 'comments')
			)
		);
	 flush_rewrite_rules();
}
?>