Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/08/2013, 08:07
Avatar de Nekko
Nekko
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Buenos Aires
Mensajes: 3.141
Antigüedad: 16 años, 1 mes
Puntos: 656
Problema con permalinks y custom post types

Buenas!!! Tengo un problemón que me está rompiendo la cabeza.

Tengo un WordPress en donde funcionaban 3 custom post types y, tras una actualización y algunos plugins en el medio, dejaron de funcionar los permalinks.

Los CPT son accesibles usando la url "fea" ej.
midominio.com/?custom=un-bonito-custom

Pero cuando cambio a otros formatos, puff!!! blank page.

El CPT funciona en local sin inconvenientes. He probado desactivar todos los plugins, reactivar el theme, borrar y volver a crear el htaccess, flush_rewrite_rules, etc. Ahora me quedé sin cosas para probar, alguno tiene una sugerencia?

Código PHP:
    function register_anunciantes_posttype() {
        
$labels = array(
            
'name'                 => _x'anunciantes''post type general name' ),
            
'singular_name'        => _x'anunciante''post type singular name' ),
            
'add_new'             => __'Add New' ),
            
'add_new_item'         => __'anunciante' ),
            
'edit_item'         => __'anunciante' ),
            
'new_item'             => __'anunciante' ),
            
'view_item'         => __'anunciante' ),
            
'search_items'         => __'anunciante' ),
            
'not_found'         => __'anunciante' ),
            
'not_found_in_trash'=> __'anunciante' ),
            
'parent_item_colon' => __'anunciante' ),
            
'menu_name'            => __'anunciantes' )
        );
        
        
$taxonomies = array();

        
$supports = array('title','editor','thumbnail','revisions');
        
        
$post_type_args = array(
            
'labels'             => $labels,
            
'singular_label'     => __('anunciante'),
            
'public'             => true,
            
'show_ui'             => true,
            
'publicly_queryable'=> true,
            
'query_var'            => true,
            
'exclude_from_search'=> false,
            
'show_in_nav_menus'    => false,
            
'capability_type'     => 'post',
            
'has_archive'         => true,
            
'hierarchical'         => false,
            
'rewrite'             => array('slug' => 'anunciantes','with_front' => FALSE),
            
'supports'             => $supports,
            
'menu_position'     => 9,
            
'_builtin'                   => false,
            
'taxonomies'        => $taxonomies
         
);
         
register_post_type('anunciantes',$post_type_args);
    }
    
add_action('init''register_anunciantes_posttype');
flush_rewrite_rules(); // <- do this only once! 
__________________
Taller para crear themes wordpress desde cero | Presupuestos para trabajos particulares vía MP