<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Inserire Tassonomia]]></title><description><![CDATA[<p dir="auto">Ho trovato <a href="http://www.lobaedesign.com/usare-le-tassonomie-in-wordpress/" rel="nofollow ugc">questo</a>  interessante articolo che sembra funzionare anche se risale a settembre  2013 ma di più recenti ne ho trovati pochi e non funzionano...</p>
<p dir="auto">Mi funziona tutto con questo codice</p>
<pre><code class="language-php">function add_custom_taxonomies() {     register_taxonomy('genre', 'post', array(         'hierarchical' =&gt; true,         'labels' =&gt; array(             'name' =&gt; _x('Genres', 'taxonomy general name' ),             'singular_name' =&gt; _x('Genre', 'taxonomy singular name' ),             'search_items' =&gt; __('Search Genres' ),             'all_items' =&gt; __( 'All Genres' ),             'parent_item' =&gt; __( 'Parent Genre' ),             'parent_item_colon' =&gt; __( 'Parent Genre:' ),             'edit_item' =&gt; __( 'Edit Genre' ),             'update_item' =&gt; __( 'Update Genre' ),             'add_new_item' =&gt; __( 'Add New Genre' ),             'new_item_name' =&gt; __( 'New Genre Name' ),             'menu_name' =&gt; __( 'Genres' ),         ),     'rewrite' =&gt; array(         'slug' =&gt; 'Genres',         'with_front' =&gt; false,         'hierarchical' =&gt; true     ),    )); }  add_action( 'init', 'add_custom_taxonomies', 0 );
</code></pre>
<p dir="auto">Unica cosa che non ho capito è come fare per inserire più tassonomie...  Con questo codice inserisco la tassonomia <strong>Genres</strong>,  per inserire <strong>Genres2</strong> come devo modificare il codice?  Grazie</p>
]]></description><link>https://dev.connect.gt/topic/212647/inserire-tassonomia</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 19:32:09 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/212647.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 29 Mar 2015 09:56:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Inserire Tassonomia on Thu, 13 Aug 2015 09:12:08 GMT]]></title><description><![CDATA[<p dir="auto">Se ne hai tanti si, se no puoi usare semplicemente delle categorie.</p>
]]></description><link>https://dev.connect.gt/post/1194359</link><guid isPermaLink="true">https://dev.connect.gt/post/1194359</guid><dc:creator><![CDATA[ricsca5]]></dc:creator><pubDate>Thu, 13 Aug 2015 09:12:08 GMT</pubDate></item><item><title><![CDATA[Reply to Inserire Tassonomia on Mon, 03 Aug 2015 10:03:13 GMT]]></title><description><![CDATA[<p dir="auto">Sono molto interessato all'argomento.</p>
<p dir="auto">Devo sistemare un sito wordpress in cui nelle categorie ho genere e luogo.<br />
Ad esempio un articolo può parlare di agricoltura in Lombardia; Agricoltura e Lombardia sono 2 categorie distinte.</p>
<p dir="auto">Quindi vorrei dividere le categorie in due gruppi: genere e luogo.</p>
<p dir="auto">La soluzione sopracitata fa al caso mio?</p>
]]></description><link>https://dev.connect.gt/post/1194350</link><guid isPermaLink="true">https://dev.connect.gt/post/1194350</guid><dc:creator><![CDATA[Lazzo85s]]></dc:creator><pubDate>Mon, 03 Aug 2015 10:03:13 GMT</pubDate></item><item><title><![CDATA[Reply to Inserire Tassonomia on Mon, 30 Mar 2015 07:32:11 GMT]]></title><description><![CDATA[<p dir="auto">Ciao risca5,<br />
puoi aggiungere semplicemente una nuova tassonomia, direttamente nella funzione. Ipotizzando Genre2 la aggiungi in questo modo:</p>
<pre><code class="language-php">&lt;?php
function add_custom_taxonomies() {
	register_taxonomy('genre', 'post', array(
		'hierarchical' =&gt; true,
		'labels' =&gt; array(
			'name' =&gt; _x('Genres', 'taxonomy general name' ),
			'singular_name' =&gt; _x('Genre', 'taxonomy singular name' ),
			'search_items' =&gt; __('Search Genres' ),
			'all_items' =&gt; __( 'All Genres' ),
			'parent_item' =&gt; __( 'Parent Genre' ),
			'parent_item_colon' =&gt; __( 'Parent Genre:' ),
			'edit_item' =&gt; __( 'Edit Genre' ),
			'update_item' =&gt; __( 'Update Genre' ),
			'add_new_item' =&gt; __( 'Add New Genre' ),
			'new_item_name' =&gt; __( 'New Genre Name' ),
			'menu_name' =&gt; __( 'Genres' ),
		),
		'rewrite' =&gt; array(
			'slug' =&gt; 'Genres',
			'with_front' =&gt; false,
			'hierarchical' =&gt; true
		),
	)
	);
	
	register_taxonomy('genre2', 'post', array(
		'hierarchical' =&gt; true,
		'labels' =&gt; array(
			'name' =&gt; _x('Genres2', 'taxonomy general name' ),
			'singular_name' =&gt; _x('Genre2', 'taxonomy singular name' ),
			'search_items' =&gt; __('Search Genres2' ),
			'all_items' =&gt; __( 'All Genres2' ),
			'parent_item' =&gt; __( 'Parent Genre2' ),
			'parent_item_colon' =&gt; __( 'Parent Genre2:' ),
			'edit_item' =&gt; __( 'Edit Genre2' ),
			'update_item' =&gt; __( 'Update Genre2' ),
			'add_new_item' =&gt; __( 'Add New Genre2' ),
			'new_item_name' =&gt; __( 'New Genre2 Name' ),
			'menu_name' =&gt; __( 'Genres2' ),
		),
		'rewrite' =&gt; array(
			'slug' =&gt; 'Genres2',
			'with_front' =&gt; false,
			'hierarchical' =&gt; true
		),
	)
	);
}
add_action( 'init', 'add_custom_taxonomies', 0 );
</code></pre>
]]></description><link>https://dev.connect.gt/post/1194351</link><guid isPermaLink="true">https://dev.connect.gt/post/1194351</guid><dc:creator><![CDATA[ultima]]></dc:creator><pubDate>Mon, 30 Mar 2015 07:32:11 GMT</pubDate></item></channel></rss>