Salve a tutti,
sto utilizzando il theme free Adapt theme.
Vorrei modificare lo SLUG di un Custom Post Type esistente nel theme:
Ho provato acodice:function portfolio_init() { /** * Enable the Portfolio custom post type * http://codex.wordpress.org/Function_Reference/register_post_type */ $labels = array( 'name' => __( 'Prodotti', 'wpex' ), 'singular_name' => __( 'Prodotti Item', 'wpex' ), 'add_new' => __( 'Aggiungi nuovo prodotto', 'wpex' ), 'add_new_item' => __( 'Add New Portfolio Item', 'wpex' ), 'edit_item' => __( 'Modifica prodotto', 'wpex' ), 'new_item' => __( 'Add New Portfolio Item', 'wpex' ), 'view_item' => __( 'Vedi Prodotto', 'wpex' ), 'search_items' => __( 'Search Prodotto', 'wpex' ), 'not_found' => __( 'No portfolio items found', 'wpex' ), 'not_found_in_trash' => __( 'No portfolio items found in trash', 'wpex' ) ); $args = array( 'labels' => $labels, 'public' => true, 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'comments', 'custom-fields', 'revisions', 'post-formats' ), 'capability_type' => 'post', 'rewrite' => array("slug" => "portfolio-item"), // Permalinks format 'has_archive' => false, 'menu_icon' => 'dashicons-hammer', ); $args = apply_filters( 'wpex_portfolio_args', $args); register_post_type( 'portfolio', $args );
1) modificarlo, ma niente
2) modificarlo, aggiornare i permalink, niente, rimane quello originale
Suggerimenti?
Grazie.



Rispondi quotando
