Custom Post Type: modificare lo slug

felino

Utente Attivo
12 Dic 2013
940
10
18
Aci Catena (Catania)
Salve a tutti,
sto utilizzando il theme free Adapt theme.

Vorrei modificare lo SLUG di un Custom Post Type esistente nel theme:
Codice:
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 );

Ho provato a
1) modificarlo, ma niente
2) modificarlo, aggiornare i permalink, niente, rimane quello originale

Suggerimenti?

Grazie.
 
Discussioni simili
Autore Titolo Forum Risposte Data
felino [Wordpress] Custom Post Type: plugin per creare uno slider nei widget WordPress 0
felino Archive.php per Custom Post Type WordPress 0
felino [WordPress] QTranslate, Permalink, Custom Post WordPress 2
felino [Wordpress] Import post da un file sql custom WordPress 1
felino [C#] Ordinare un livello specifico di un custom tree .NET Framework 0
I [WordPress] pagine custom all'interno di un tema WordPress 0
L [WordPress] Creazione pagina archivio custom WordPress 0
HolidaySoft.it WCF Custom Security con User e Password .NET Framework 2
felino Query custom in un articolo WordPress 0
B Filtro per advanced custom fields WordPress 0
A Modulo custom Drupal e applicazione java CMS (Content Management System) 0
felino Google Maps - Custom Street View panoramas HTML e CSS 1
felino Samsung S2 GT-I9100...Rom Custom? Smartphone e tablet 0
felino Host su Aruba e PHP.ini custom? Hosting 2
M Problema custom errors ASP.NET 1
S passare un valore da un form a un file .php con metodo post PHP 4
D [COMPRO/CERCO] GUEST POST o scambio link per sito di Spiritualità ed Esoterismo. Vendere e Acquistare pubblicita' online 0
J [Vendo] Guest post a fini Posizionamento organico Vendere e Acquistare pubblicita' online 0
T [VENDO] Guest Post su siti di Proprietà Offerte e Richieste di scambio links 0
T [VENDO] Guest Post su siti di Proprietà Vendere e Acquistare pubblicita' online 0
A Vendo Guest post Offerte e Richieste di scambio links 0
T [VENDO] Guest Post su siti di Proprietà con IP diversi Offerte e Richieste di scambio links 0
T Segnalazione post PHP 4
P inserire due voci in un titolo post wp WordPress 1
S Variabile in post su altra pagina PHP 2
A recuperare i dati passati nel post PHP 1
R [C#] Scrivere un post in grassetto con Selenium su FB Mobile .NET Framework 0
T Vendo Guest Post Offerte e Richieste di Lavoro e/o Collaborazione 1
G cerco: traffico sito, pubblicità condividente post su pagine gruppi Vendere e Acquistare pubblicita' online 0
R Distribuire uno Script "Facebook Auto Post" PHP 0
D VENDO Guest Post ZA 45 su sito dedicato agli influencer italiani Vendere e Acquistare pubblicita' online 0
D [VENDO] Guest Post/Banner su sito Offerte e Richieste di scambio links 0
R [C#] Automatizzare un inserimento di un Post su un Gruppo Facebook .NET Framework 0
MarcoGrazia Se non sai se riceverai da GET o da POST, puoi verificarlo e far scegliere allo script. Snippet PHP 0
A php metodo post jquery non da mai errore jQuery 4
Fendo59 Passare parametri con metodo POST a una pagina in un frame PHP 0
T [VENDO] Guest post su 16 siti ZA 39 Vendere e Acquistare pubblicita' online 0
F Post [VENDO] articoli in vari siti tematici e testate giornalistiche Vendere e Acquistare pubblicita' online 0
moustache text box + post php con IE si comporta in modo strano PHP 16
L Richieste HTTP get post PHP 1
G Passare path directory in POST PHP 2
S come togliere un post dai risultati di google? Supporto Mr.Webmaster 5
Web93 CAMBIARE TAG POST TITOLO DA H2 A H1 WordPress 1
S (VENDO) Guest post Vendere e Acquistare pubblicita' online 0
WebmasterFioriniAndrea [PHP] Method POST PHP 3
R [COmpro] Guest post settore turismo Vendere e Acquistare pubblicita' online 3
Michelebozzo Cerco guest post Annunci servizi di Social Media Marketing 0
G Inserire "Leggi il resto dell'articolo" con link al post sul sito preso via RSS Email Marketing 0
T [VENDO] Guest Post su un sito di tecnologia iscritto a GNews a 20 euro Vendere e Acquistare pubblicita' online 0
WorldWideWeb Ajax POST con risposta JSON Ajax 2

Discussioni simili