<?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[Menu a Discesa]]></title><description><![CDATA[<p dir="auto">Ciao a <strong>Tutti</strong>...</p>
<p dir="auto">uso <strong>WordPress 2.9.2</strong>, ma non ho ancora abbastanza confidenza.:x</p>
<p dir="auto">Ho creato delle <strong>categorie</strong> con <strong>sottocategorie</strong>,  ma quando vado a controllare e chiedo la visualizzazione lato utente della <strong>categoria,</strong> mi viene visualizzato <strong>il  contenuto (i vari post)</strong> delle varie <strong>sottocategorie</strong> inserite nella <strong>categoria</strong> tutte insieme.</p>
<p dir="auto">E' possibile visualizzare solo i <strong>nomi delle sottocategorie</strong>, e poi quando si fa il <strong>click</strong> sulla sottocategoria, gli eventuali <strong>post</strong> inseriti dentro la <strong>sottocategoria</strong>   ?</p>
<p dir="auto">Esempio:</p>
<p dir="auto">Categoria</p>
<ul>
<li>sottocategoria
<ul>
<li>sottocategoria 1</li>
</ul>
</li>
<li>sottocategoria 2
<ul>
<li>sottocategoria 3</li>
</ul>
</li>
</ul>
<p dir="auto">In altre parole, volevo creare (oppure installare qualche plugin) per un <strong>menù a discesa</strong> della  <strong>categoria</strong>.</p>
<p dir="auto">Il menù creato dal mio template è <strong>verticale</strong> a sinistra.</p>
<p dir="auto">Spero di aver reso l'idea.</p>
<p dir="auto"><img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/54a3bffb-5e4a-4eb8-81dc-99b2072e5d05-175.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--ciauz" style="height:1.4em;width:auto;vertical-align:middle" title=":ciauz:" alt="" /> è ringrazio per il prezioso aiuto.</p>
<p dir="auto"><em>Giorgio</em>.</p>
]]></description><link>https://dev.connect.gt/topic/124933/menu-a-discesa</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 21:04:25 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/124933.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 06 Apr 2010 15:56:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Menu a Discesa on Wed, 07 Apr 2010 10:06:26 GMT]]></title><description><![CDATA[<p dir="auto">Grazie <strong>geggiot</strong> .....</p>
<p dir="auto">perdona la mia ignoranza: a quale file devo effettuare la modifica ?</p>
<p dir="auto">Il file Archive.php del template è questo:</p>
<blockquote>
<p dir="auto">&lt;?php get_header(); ?&gt;<br />
&lt;div class="art-content-layout"&gt;<br />
&lt;div class="art-content-layout-row"&gt;<br />
&lt;?php include (TEMPLATEPATH . '/sidebar1.php'); ?&gt;&lt;div  class="art-layout-cell art-content"&gt;<br />
&lt;?php is_tag(); ?&gt;<br />
&lt;?php if (have_posts()) : ?&gt;<br />
&lt;div class="art-post"&gt;<br />
&lt;div class="art-post-body"&gt;<br />
&lt;div class="art-post-inner art-article"&gt;<br />
&lt;div class="art-postcontent"&gt;<br />
&lt;!-- article-content --&gt;<br />
&lt;?php $post = $posts[0]; // Hack. Set $post so that the_date() works.  ?&gt;<br />
&lt;?php /* If this is a category archive <em>/ if (is_category()) { ?&gt;<br />
&lt;h2 class="pagetitle"&gt;&lt;?php printf(__('Categoria ?%s?',  'kubrick'), single_cat_title('', false)); ?&gt;&lt;/h2&gt;<br />
&lt;?php /</em> If this is a tag archive <em>/ } elseif( is_tag() ) { ?&gt;<br />
&lt;h2 class="pagetitle"&gt;&lt;?php printf(__('Posts Tagged ?%s?',  'kubrick'), single_tag_title('', false) ); ?&gt;&lt;/h2&gt;<br />
&lt;?php /</em> If this is a daily archive <em>/ } elseif (is_day()) { ?&gt;<br />
&lt;h2 class="pagetitle"&gt;&lt;?php printf(_c('Archive for %s|Daily  archive page', 'kubrick'), get_the_time(__('F jS, Y', 'kubrick')));  ?&gt;&lt;/h2&gt;<br />
&lt;?php /</em> If this is a monthly archive <em>/ } elseif (is_month()) {  ?&gt;<br />
&lt;h2 class="pagetitle"&gt;&lt;?php printf(_c('Archive for %s|Monthly  archive page', 'kubrick'), get_the_time(__('F, Y', 'kubrick')));  ?&gt;&lt;/h2&gt;<br />
&lt;?php /</em> If this is a yearly archive <em>/ } elseif (is_year()) { ?&gt;<br />
&lt;h2 class="pagetitle"&gt;&lt;?php printf(_c('Archive for %s|Yearly  archive page', 'kubrick'), get_the_time(__('Y', 'kubrick')));  ?&gt;&lt;/h2&gt;<br />
&lt;?php /</em> If this is an author archive <em>/ } elseif (is_author()) {  ?&gt;<br />
&lt;h2 class="pagetitle"&gt;&lt;?php _e('Author Archive', 'kubrick');  ?&gt;&lt;/h2&gt;<br />
&lt;?php /</em> If this is a paged archive */ } elseif  (isset($_GET['paged']) &amp;&amp; !empty($_GET['paged'])) { ?&gt;<br />
&lt;h2 class="pagetitle"&gt;&lt;?php _e('Blog Archives', 'kubrick');  ?&gt;&lt;/h2&gt;<br />
&lt;?php } ?&gt;<br />
&lt;?php<br />
$prev_link = get_previous_posts_link(<strong>('Newer Entries »',  'kubrick'));<br />
$next_link = get_next_posts_link(</strong>('« Older Entries',  'kubrick'));<br />
?&gt;<br />
&lt;?php if ($prev_link || $next_link): ?&gt;<br />
&lt;?php endif; ?&gt;<br />
&lt;!-- /article-content --&gt;<br />
&lt;/div&gt;<br />
&lt;div class="cleared"&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;div class="cleared"&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php while (have_posts()) : the_post(); ?&gt;<br />
&lt;div class="art-post"&gt;<br />
&lt;div class="art-post-body"&gt;<br />
&lt;div class="art-post-inner art-article"&gt;<br />
&lt;h4 class="art-postheader"&gt;<br />
&lt;a href="&lt;?php the_permalink() ?&gt;" rel="bookmark"  title="&lt;?php printf(__('Permanent Link to %s', 'kubrick'),  the_title_attribute('echo=0')); ?&gt;"&gt;<br />
&lt;?php the_title(); ?&gt;<br />
&lt;/a&gt;<br />
&lt;/h4&gt;<br />
&lt;div class="art-postcontent"&gt;<br />
&lt;!-- article-content --&gt;</p>
<pre><code>      &lt;?php if (is_page() or is_single())  wp_link_pages(array('before' =&gt;  '&lt;p&gt;&lt;strong&gt;Pages:&lt;/strong&gt; ', 'after' =&gt;  '&lt;/p&gt;', 'next_or_number' =&gt; 'number')); ?&gt;

&lt;!-- /article-content --&gt;
</code></pre>
<p dir="auto">&lt;/div&gt;<br />
&lt;div class="cleared"&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;div class="cleared"&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php endwhile; ?&gt;<br />
&lt;?php if ($prev_link || $next_link): ?&gt;<br />
&lt;div class="art-post"&gt;<br />
&lt;div class="art-post-body"&gt;<br />
&lt;div class="art-post-inner art-article"&gt;<br />
&lt;div class="art-postcontent"&gt;<br />
&lt;!-- article-content --&gt;<br />
&lt;div class="navigation"&gt;<br />
&lt;/div&gt;<br />
&lt;!-- /article-content --&gt;<br />
&lt;/div&gt;<br />
&lt;div class="cleared"&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;div class="cleared"&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php endif; ?&gt;<br />
&lt;?php else : ?&gt;<br />
&lt;div class="art-post"&gt;<br />
&lt;div class="art-post-body"&gt;<br />
&lt;div class="art-post-inner art-article"&gt;<br />
&lt;div class="art-postcontent"&gt;<br />
&lt;!-- article-content --&gt;<br />
&lt;?php<br />
if ( is_category() ) { // If this is a category archive<br />
printf("&lt;h2 class='center'&gt;".<strong>("Sorry, but there aren't  any posts in the %s category yet.", "kubrick").'&lt;/h2&gt;',  single_cat_title('',false));<br />
} else if ( is_date() ) { // If this is a date archive<br />
echo('&lt;h2&gt;'.</strong>("Sorry, but there aren't any posts with  this date.", "kubrick").'&lt;/h2&gt;');<br />
} else if ( is_author() ) { // If this is a category archive<br />
$userdata = get_userdatabylogin(get_query_var('author_name'));<br />
printf("&lt;h2 class='center'&gt;".<strong>("Sorry, but there aren't  any posts by %s yet.", "kubrick")."&lt;/h2&gt;",  $userdata-&gt;display_name);<br />
} else {<br />
echo("&lt;h2 class='center'&gt;".</strong>('No posts found.',  'kubrick').'&lt;/h2&gt;');<br />
}<br />
if(function_exists('get_search_form')) get_search_form();<br />
?&gt;<br />
&lt;!-- /article-content --&gt;<br />
&lt;/div&gt;<br />
&lt;div class="cleared"&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;div class="cleared"&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php endif; ?&gt;<br />
&lt;/div&gt;<br />
&lt;?php include (TEMPLATEPATH . '/sidebar2.php'); ?&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;div class="cleared"&gt;&lt;/div&gt;<br />
&lt;?php get_footer(); ?&gt;</p>
</blockquote>
<p dir="auto">Devo inserirlo in questo <strong>file</strong> ?</p>
<p dir="auto">Sinceramente non ho proprio idea su come muovermi.</p>
<p dir="auto"><img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/54a3bffb-5e4a-4eb8-81dc-99b2072e5d05-175.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--ciauz" style="height:1.4em;width:auto;vertical-align:middle" title=":ciauz:" alt="" /> e grazie ancora ....</p>
]]></description><link>https://dev.connect.gt/post/903253</link><guid isPermaLink="true">https://dev.connect.gt/post/903253</guid><dc:creator><![CDATA[giorgio1972]]></dc:creator><pubDate>Wed, 07 Apr 2010 10:06:26 GMT</pubDate></item><item><title><![CDATA[Reply to Menu a Discesa on Wed, 07 Apr 2010 08:37:56 GMT]]></title><description><![CDATA[<p dir="auto">Ok ora ho capito allora devi modificare il codice del tuo template e inserire</p>
<blockquote>
<p dir="auto">&lt;?php<br />
if (is_category()) {<br />
$this_category = get_category($cat);<br />
}<br />
?&gt;<br />
&lt;?php<br />
if($this_category-&gt;category_parent)<br />
$this_category = wp_list_categories('orderby=id&amp;show_count=0<br />
&amp;title_li=&amp;use_desc_for_title=1&amp;child_of='.$this_category-&gt;category_parent.<br />
"&amp;echo=0"); else<br />
$this_category = wp_list_categories('orderby=id&amp;depth=1&amp;show_count=0<br />
&amp;title_li=&amp;use_desc_for_title=1&amp;child_of='.$this_category-&gt;cat_ID.<br />
"&amp;echo=0");<br />
if ($this_category) { ?&gt;</p>
</blockquote>
<p dir="auto">per mostrare la lista di sottocategorie dopo aver cliccato sulla categoria principale.</p>
]]></description><link>https://dev.connect.gt/post/903250</link><guid isPermaLink="true">https://dev.connect.gt/post/903250</guid><dc:creator><![CDATA[geggiot]]></dc:creator><pubDate>Wed, 07 Apr 2010 08:37:56 GMT</pubDate></item><item><title><![CDATA[Reply to Menu a Discesa on Wed, 07 Apr 2010 05:19:47 GMT]]></title><description><![CDATA[<p dir="auto">Grazie1000 <strong>geggiot</strong> per la risposta ....</p>
<p dir="auto">scusa ma mi sono spiegato male (:x): quando apro la <strong>categoria</strong> mi vengono elencati <strong>tutti i post</strong> presenti nelle <strong>sottocategorie</strong>.</p>
<p dir="auto">Io vorrei che mi venisse elencato solo il <strong>nome delle</strong> <strong>sottocategorie</strong> e basta.</p>
<p dir="auto">Dopo con il link sul <strong>nome della sottocategoria</strong> è possibile visualizzare eventualmente i vari <strong>post</strong>.</p>
<p dir="auto">Ringrazio ancora dell'aiuto.</p>
<p dir="auto"><img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/54a3bffb-5e4a-4eb8-81dc-99b2072e5d05-175.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--ciauz" style="height:1.4em;width:auto;vertical-align:middle" title=":ciauz:" alt="" /></p>
]]></description><link>https://dev.connect.gt/post/903252</link><guid isPermaLink="true">https://dev.connect.gt/post/903252</guid><dc:creator><![CDATA[giorgio1972]]></dc:creator><pubDate>Wed, 07 Apr 2010 05:19:47 GMT</pubDate></item><item><title><![CDATA[Reply to Menu a Discesa on Tue, 06 Apr 2010 20:40:00 GMT]]></title><description><![CDATA[<p dir="auto">Intendi una cosa del genere <a href="http://www.w3cgallery.com/w3c-blog/wordpress-hack/wordpress-subcategories-as-dropdown-menu-by-css-help" rel="nofollow ugc">http://www.w3cgallery.com/w3c-blog/wordpress-hack/wordpress-subcategories-as-dropdown-menu-by-css-help</a> ?</p>
]]></description><link>https://dev.connect.gt/post/903251</link><guid isPermaLink="true">https://dev.connect.gt/post/903251</guid><dc:creator><![CDATA[geggiot]]></dc:creator><pubDate>Tue, 06 Apr 2010 20:40:00 GMT</pubDate></item></channel></rss>