<?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[Featured category]]></title><description><![CDATA[<p dir="auto">Salve, sto modificando un template gratuito per il sito <a href="http://sporteconomy24.it" rel="nofollow ugc">sporteconomy24.it</a> e funziona tutto molto bene. Questo template però è impostato di default a mostrare 3 categorie featured in home, ovvero 3 categorie che posso scegliere io dal pannello di amministrazione. C'è qualche modo per aumentare il numero di categorie da mostrare, magari agendo sul file home.php ?</p>
]]></description><link>https://connect.gt/topic/127802/featured-category</link><generator>RSS for Node</generator><lastBuildDate>Sat, 07 Nov 2026 17:27:27 GMT</lastBuildDate><atom:link href="https://connect.gt/topic/127802.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 May 2010 20:26:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Featured category on Wed, 19 May 2010 20:52:46 GMT]]></title><description><![CDATA[<p dir="auto">Perfetto, grazie mille. <img src="https://connect.gt/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=cne14qcbr9u" class="not-responsive emoji emoji-android emoji--wink" title=";)" alt="😉" /></p>
]]></description><link>https://connect.gt/post/912028</link><guid isPermaLink="true">https://connect.gt/post/912028</guid><dc:creator><![CDATA[antonio.webdesigner]]></dc:creator><pubDate>Wed, 19 May 2010 20:52:46 GMT</pubDate></item><item><title><![CDATA[Reply to Featured category on Wed, 19 May 2010 20:43:21 GMT]]></title><description><![CDATA[<p dir="auto">Il principio è identico, ma ovviamente dovrai effettuare le modifiche sul codice relativo a Homepage Featured Top Left, e Homepage Featured Top Right, anziché il bottom.</p>
]]></description><link>https://connect.gt/post/912025</link><guid isPermaLink="true">https://connect.gt/post/912025</guid><dc:creator><![CDATA[xevious]]></dc:creator><pubDate>Wed, 19 May 2010 20:43:21 GMT</pubDate></item><item><title><![CDATA[Reply to Featured category on Wed, 19 May 2010 20:11:48 GMT]]></title><description><![CDATA[<p dir="auto">E come dovrebbe essere il codice per metterli come blocchi laterali ?</p>
]]></description><link>https://connect.gt/post/912031</link><guid isPermaLink="true">https://connect.gt/post/912031</guid><dc:creator><![CDATA[antonio.webdesigner]]></dc:creator><pubDate>Wed, 19 May 2010 20:11:48 GMT</pubDate></item><item><title><![CDATA[Reply to Featured category on Wed, 19 May 2010 19:46:57 GMT]]></title><description><![CDATA[<p dir="auto">Esatto, puoi aggiungere tutti i blocchi che ritieni opportuno. <img src="https://connect.gt/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=cne14qcbr9u" class="not-responsive emoji emoji-android emoji--wink" title=";)" alt="😉" /> Naturalmente se aggiungi un'altra categoria, o comunque un numero pari di categorie, puoi inserirli anche come blocchi laterali, e non necessariamente come featured_bottom, il principio è lo stesso.</p>
<p dir="auto">Per il discorso delle thumb, installo i plugin e ti faccio sapere appena ho un attimo per testare il tutto. <img src="https://connect.gt/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=cne14qcbr9u" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":)" alt="🙂" /></p>
]]></description><link>https://connect.gt/post/912026</link><guid isPermaLink="true">https://connect.gt/post/912026</guid><dc:creator><![CDATA[xevious]]></dc:creator><pubDate>Wed, 19 May 2010 19:46:57 GMT</pubDate></item><item><title><![CDATA[Reply to Featured category on Wed, 19 May 2010 18:49:27 GMT]]></title><description><![CDATA[<p dir="auto">Funziona tutto alla grande, grazie mille dell'aiuto. Volevo chiederti solo se per aggiungere altre categorie ancora devo ripetere il procedimento mettendo** featured_bottom_2 -3-4-5...'** e così via ?</p>
<p dir="auto">PS: ti invio in privato il link per scaricare i plugin</p>
]]></description><link>https://connect.gt/post/912029</link><guid isPermaLink="true">https://connect.gt/post/912029</guid><dc:creator><![CDATA[antonio.webdesigner]]></dc:creator><pubDate>Wed, 19 May 2010 18:49:27 GMT</pubDate></item><item><title><![CDATA[Reply to Featured category on Wed, 19 May 2010 11:04:41 GMT]]></title><description><![CDATA[<p dir="auto">Ciao, grazie mille sei davvero gentilissimo. Tra un po' provo tutto e ti faccio sapere. Per quanto riguarda i plugin mi devo accordare un attimo con l'admin del sito per farteli avere <img src="https://connect.gt/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=cne14qcbr9u" class="not-responsive emoji emoji-android emoji--wink" title=";)" alt="😉" /> grazie di cuore per la disponibilità...</p>
]]></description><link>https://connect.gt/post/912027</link><guid isPermaLink="true">https://connect.gt/post/912027</guid><dc:creator><![CDATA[antonio.webdesigner]]></dc:creator><pubDate>Wed, 19 May 2010 11:04:41 GMT</pubDate></item><item><title><![CDATA[Reply to Featured category on Wed, 19 May 2010 07:39:00 GMT]]></title><description><![CDATA[<p dir="auto">Ho fatto alcuni tentativi in locale, e sembra funzionare (visto che ho installato il tuo tema per quell'altra cosa che avevi chiesto in merito alle thumb, tra l'altro ho risposto al tuo pm chiedendo altre info sui plugin che usi, ma ancora non me le hai mandate).</p>
<p dir="auto">Innanzitutto apri il file "<strong>theme_options.php</strong>", che è quello che gestisce le opzioni del tuo tema nel pannello di amministrazione. Cerca questo codice:</p>
<pre><code>&lt;input type="text" name="&lt;?php echo $settings; ?&gt;[featured_bottom_thumb_width]" value="&lt;?php echo get_theme_mod('featured_bottom_thumb_width'); ?&gt;" size="3" /&gt; x &lt;input type="text" name="&lt;?php echo $settings; ?&gt;[featured_bottom_thumb_height]" value="&lt;?php echo get_theme_mod('featured_bottom_thumb_height'); ?&gt;" size="3" /&gt;&lt;/p&gt;
            &lt;/div&gt;
        &lt;/div&gt;
```E subito dopo inserisci questo codice:

</code></pre>
<p dir="auto">&lt;div class="postbox"&gt;<br />
&lt;h3&gt;&lt;?php _e("Homepage Featured Bottom 2", 'studiopress'); ?&gt;&lt;/h3&gt;<br />
&lt;div class="inside"&gt;<br />
&lt;p&gt;&lt;?php _e("Select which category you want displayed", 'studiopress'); ?&gt;:&lt;br /&gt;<br />
&lt;?php wp_dropdown_categories(array('selected' =&gt; get_theme_mod('featured_bottom_2'), 'name' =&gt; $settings.'[featured_bottom_2]', 'orderby' =&gt; 'Name' , 'hierarchical' =&gt; 1, 'hide_empty' =&gt; '0' )); ?&gt;&lt;/p&gt;</p>
<pre><code>            &lt;p&gt;&lt;?php _e("Number of posts to show", 'studiopress'); ?&gt;:&lt;br /&gt;
            &lt;input type="text" name="&lt;?php echo $settings; ?&gt;[featured_bottom_num]" value="&lt;?php echo get_theme_mod('featured_bottom_num'); ?&gt;" size="3" /&gt;&lt;/p&gt;
            
            &lt;p&gt;&lt;?php _e("Thumbnail dimensions", 'studiopress'); ?&gt; (&lt;?php _e("Width x Height", 'studiopress'); ?&gt;)&lt;br /&gt;
            &lt;input type="text" name="&lt;?php echo $settings; ?&gt;[featured_bottom_thumb_width]" value="&lt;?php echo get_theme_mod('featured_bottom_thumb_width'); ?&gt;" size="3" /&gt; x &lt;input type="text" name="&lt;?php echo $settings; ?&gt;[featured_bottom_thumb_height]" value="&lt;?php echo get_theme_mod('featured_bottom_thumb_height'); ?&gt;" size="3" /&gt;&lt;/p&gt;
        &lt;/div&gt;
    &lt;/div&gt;
</code></pre>
<pre><code class="language-A">
Non è ancora finita, ora devi modificare il file "**home.php**". Cerca questo codice:

</code></pre>
<pre><code>&lt;?php $cat = get_category(get_theme_mod('featured_bottom')); ?&gt;
            &lt;strong&gt;&lt;a href="&lt;?php echo get_category_link(get_theme_mod('featured_bottom')); ?&gt;" rel="bookmark"&gt;&lt;?php echo __("Read More Posts From ", 'studiopress')." ".$cat-&gt;name; ?&gt;&lt;/a&gt;&lt;/strong&gt;
        
        &lt;/div&gt;
    
    &lt;/div&gt;
</code></pre>
<pre><code class="language-E">
</code></pre>
<p dir="auto">&lt;div id="homepagebottom"&gt;</p>
<pre><code>        &lt;div class="hpbottom"&gt;
        &lt;h3&gt;&lt;?php echo cat_id_to_name(get_theme_mod('featured_bottom_2')); ?&gt;&lt;/h3&gt;
            
            &lt;?php $recent = new WP_Query("cat=".get_theme_mod('featured_bottom_2')."&amp;showposts=".get_theme_mod('featured_bottom_num')); while($recent-&gt;have_posts()) : $recent-&gt;the_post();?&gt;
            &lt;?php if( get_post_meta($post-&gt;ID, "thumb", true) ): ?&gt;
            &lt;a href="&lt;?php the_permalink() ?&gt;" rel="bookmark"&gt;&lt;img class="thumb" src="&lt;?php bloginfo('template_directory'); ?&gt;/tools/timthumb.php?src=&lt;?php echo get_post_meta($post-&gt;ID, "thumb", $single = true); ?&gt;&amp;amp;h=&lt;?php echo get_theme_mod('featured_bottom_thumb_height'); ?&gt;&amp;amp;w=&lt;?php echo get_theme_mod('featured_bottom_thumb_width'); ?&gt;&amp;amp;zc=1" alt="&lt;?php the_title(); ?&gt;" /&gt;&lt;/a&gt;    
            &lt;?php else: ?&gt;
            &lt;?php endif; ?&gt;                
            
            &lt;strong&gt;&lt;a href="&lt;?php the_permalink() ?&gt;" rel="bookmark"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/strong&gt;
            &lt;?php the_content_limit(350, __("[Read more of this review]", 'studiopress')); ?&gt;
                
            &lt;hr/&gt;
                
            &lt;?php endwhile; ?&gt;
                    
            &lt;?php $cat = get_category(get_theme_mod('featured_bottom_2')); ?&gt;
            &lt;strong&gt;&lt;a href="&lt;?php echo get_category_link(get_theme_mod('featured_bottom_2')); ?&gt;" rel="bookmark"&gt;&lt;?php echo __("Read More Posts From ", 'studiopress')." ".$cat-&gt;name; ?&gt;&lt;/a&gt;&lt;/strong&gt;
        
        &lt;/div&gt;
    
    &lt;/div&gt;
</code></pre>
<pre><code class="language-Voilà,"></code></pre>
]]></description><link>https://connect.gt/post/912024</link><guid isPermaLink="true">https://connect.gt/post/912024</guid><dc:creator><![CDATA[xevious]]></dc:creator><pubDate>Wed, 19 May 2010 07:39:00 GMT</pubDate></item></channel></rss>