Ver Mensaje Individual
  #5 (permalink)  
Antiguo 02/08/2013, 12:45
Avatar de ArturoGallegos
ArturoGallegos
Moderador
 
Fecha de Ingreso: febrero-2008
Ubicación: Morelia, México
Mensajes: 6.774
Antigüedad: 16 años, 2 meses
Puntos: 1146
Respuesta: Problema con permalinks y custom post types

Como dijo metacortex vamos descartando
borra todo esto
Código PHP:
Ver original
  1. $labels = array(
  2.             'name'                 => _x( 'anunciantes', 'post type general name' ),
  3.             'singular_name'        => _x( 'anunciante', 'post type singular name' ),
  4.             'add_new'             => __( 'Add New' ),
  5.             'add_new_item'         => __( 'anunciante' ),
  6.             'edit_item'         => __( 'anunciante' ),
  7.             'new_item'             => __( 'anunciante' ),
  8.             'view_item'         => __( 'anunciante' ),
  9.             'search_items'         => __( 'anunciante' ),
  10.             'not_found'         => __( 'anunciante' ),
  11.             'not_found_in_trash'=> __( 'anunciante' ),
  12.             'parent_item_colon' => __( 'anunciante' ),
  13.             'menu_name'            => __( 'anunciantes' )
  14.         );

y en la parte de abajo solamente agregas esto
Código PHP:
Ver original
  1. 'label' => __('anunciantes', 'ThemeName'),




O bien prueba con esta estructura, la utilice en mi ultimo proyecto y me funciona bien con WP 3.5 y 3.6 sin problemas
Código PHP:
Ver original
  1. add_action('init', 'create_ProjectPost');
  2. function create_ProjectPost() {
  3.     $create_ProjectPost_args = array(
  4.         'label' => __('Projects', 'NuInfinity'),
  5.         'singular_label' => __('Projects', 'NuInfinity'),
  6.         'public' => true,
  7.         'show_ui' => true,
  8.         'capability_type' => 'post',
  9.         'hierarchical' => false,
  10.         'rewrite' => true,
  11.         'supports' => array('title', 'thumbnail'),
  12.         'menu_icon' => IMAGES . "/projects.png",
  13.         'show_in_nav_menus' => true,
  14.     );
  15.     register_post_type('projects',$create_ProjectPost_args);
  16. }

Última edición por ArturoGallegos; 02/08/2013 a las 12:51