<?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[Modifiche impaginazione tema wordpress]]></title><description><![CDATA[<p dir="auto">Salve a tutti avrei dei problemi con l'impaginazione di un tema wordpress, in pratica vorrei che in home page si vedessero 4 post mentre in tutte le altre pagine (ES: pagina 2, categorie, tag, autore ect) si vedesse il numero standard impostato nelle opzioni di wordpress. Come fare? Qui il codice:</p>
<pre><code>&lt;?php/**
 * The default template for displaying content.
 *
 * @file      footer.php
 * @package   max-magazine
 * @author    Sami Ch.
 * @link       
 */
?&gt;


&lt;center&gt;&lt;!-- wdaily.eu_468X60_homepage --&gt;
&lt;div id='div-gpt-ad-1354522616695-5' style='width:468px; height:60px;'&gt;
&lt;script type='text/javascript'&gt;
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1354522616695-5'); });
&lt;/script&gt;
&lt;/div&gt;&lt;/center&gt;&lt;br&gt;
 
&lt;div id="posts-list"&gt;
    &lt;?php if (have_posts()) : ?&gt;
        &lt;?php while (have_posts()) : the_post(); ?&gt;    


&lt;?php if ($count == 2) : ?&gt;&lt;center&gt;&lt;!-- wdaily.eu_336X280_homepage --&gt;
&lt;div id='div-gpt-ad-1354522616695-3' style='width:336px; height:280px;'&gt;
&lt;script type='text/javascript'&gt;
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1354522616695-3'); });
&lt;/script&gt;
&lt;/div&gt;&lt;/center&gt;
&lt;br&gt;&lt;?php endif; $count++; ?&gt;    
            
            &lt;div class="post"&gt;                    
                &lt;div class="post-image"&gt;
                    &lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_post_thumbnail( 'thumbnail', array('title' =&gt; "") ); ?&gt;&lt;/a&gt;
                &lt;/div&gt;
                    
                &lt;div class="right"&gt;
            
                    &lt;?php if ( is_sticky() ) : ?&gt;
                        &lt;div class="sticky"&gt;&lt;?php _e( 'Important', 'max-magazine' ); ?&gt;&lt;/div&gt;
                    &lt;?php endif; ?&gt;
                    
                    &lt;h2&gt; &lt;a href="&lt;?php the_permalink(); ?&gt;" title="&lt;?php printf( __('Permalink to %s', 'max-magazine'), the_title_attribute('echo=0') ); ?&gt;" rel="bookmark"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
                    
                    &lt;div class="post-meta"&gt;
                        &lt;span class="date"&gt;&lt;?php the_time('F j, Y'); ?&gt;&lt;/span&gt; 
                        &lt;span class="sep"&gt; - &lt;/span&gt;                        
                        &lt;span class="category"&gt;&lt;?php the_category(', '); ?&gt;&lt;/span&gt;
                        &lt;?php the_tags( '&lt;span class="sep"&gt; - &lt;/span&gt;&lt;span class="tags"&gt;' . __('Tagged: ', 'max-magazine' ) . ' ', ", ", "&lt;/span&gt;" ) ?&gt;
                        &lt;?php if ( comments_open() ) : ?&gt;
                            &lt;span class="sep"&gt; - &lt;/span&gt;
                            &lt;span class="comments"&gt;&lt;?php comments_popup_link( __('no comments', 'max-magazine'), __( '1 comment', 'max-magazine'), __('% comments', 'max-magazine')); ?&gt;&lt;/span&gt;            
                        &lt;?php endif; ?&gt;        
                    &lt;/div&gt;                                
                        &lt;div clcss="exceprt"&gt;
                        &lt;?php 
                            /**
                             * the_excerpt() returns first 30 words in the post.
                             * length is defined in functions.php.
                             */
                            the_excerpt();
                        ?&gt;
                    &lt;/div&gt;                 
                    &lt;div class="more"&gt;
                        &lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php _e('Read Post &amp;rarr;', 'max-magazine'); ?&gt;&lt;/a&gt;
                    &lt;/div&gt; 
                &lt;/div&gt;    
            &lt;/div&gt;&lt;!-- post --&gt;        
        &lt;?php endwhile; ?&gt;   
        &lt;?php if ( function_exists('max_magazine_pagination') ) { max_magazine_pagination(); } ?&gt;        
        &lt;?php endif; ?&gt;    
&lt;/div&gt;
</code></pre>
<p dir="auto">Grazie mille a tutti</p>
]]></description><link>https://dev.connect.gt/topic/181213/modifiche-impaginazione-tema-wordpress</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 15:37:00 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/181213.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 03 Dec 2012 09:21:07 GMT</pubDate><ttl>60</ttl></channel></rss>