<?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[Problema modifica template wordpress PHP]]></title><description><![CDATA[<p dir="auto">Salve, sto modificando un template wordpress ma ho un problema, il primo articolo ha come classe "alignleft"<br />
il secondo e il 3 articolo ereditano la stessa classe. Voglio che il 2° e il 3° invece abbiano "alignleft2"<br />
Potete aiutarmi ?<br />
Vi posto il codice della struttura dei 3 articoli:</p>
<pre><code class="language-php">&lt;div class="storycontent"&gt;
        &lt;?php 
            if(function_exists('has_post_thumbnail') &amp;&amp; has_post_thumbnail()) { 
                echo '&lt;a href="'.get_permalink().'"&gt;';
                the_post_thumbnail('thumbnail', array('class'=&gt;'alignleft'));
                echo '&lt;/a&gt;';
            } else { 
                echo resize(get_option('thumbnail_size_w'),get_option('thumbnail_size_h')); 
            }
            if(theme_option('excerpt_content')=='2') { 
                theme_content(__('Read more &amp;raquo;', "magazine-basic"));
            } else {
                theme_excerpt(theme_option('excerpt_one'));
            }        
        ?&gt;
    &lt;/div&gt;
&lt;?php $x++; ?&gt;
&lt;?php } elseif($x &gt;= 2 &amp;&amp; $x &lt; 4) { ?&gt;
&lt;?php if($x == 2) { $i=1; ?&gt;&lt;/div&gt;&lt;div id="twocol"&gt;&lt;?php } ?&gt;
    &lt;div class="twopost twopost&lt;?php echo $i; $i++; ?&gt;"&gt;
        &lt;h1&gt;&lt;a href="&lt;?php the_permalink() ?&gt;" title="&lt;?php printf(__("Permanent Link to %s", "magazine-basic"), the_title_attribute('echo=0')); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h1&gt;
        &lt;div class="meta"&gt;
        &lt;?php if(theme_option('dates_index')=='on') { echo '&lt;div class="date"&gt;'; the_time(get_option('date_format')); echo '&lt;/div&gt;'; } ?&gt;
         &lt;?php if(theme_option('authors_index')=='on') { _e("By", "magazine-basic"); echo ' '; the_author_posts_link(); } ?&gt;
        &lt;/div&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/topic/137483/problema-modifica-template-wordpress-php</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 05:44:06 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/137483.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 20 Oct 2010 23:33:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problema modifica template wordpress PHP on Thu, 21 Oct 2010 21:56:15 GMT]]></title><description><![CDATA[<p dir="auto">Nessuno?</p>
]]></description><link>https://dev.connect.gt/post/943508</link><guid isPermaLink="true">https://dev.connect.gt/post/943508</guid><dc:creator><![CDATA[manuslash89]]></dc:creator><pubDate>Thu, 21 Oct 2010 21:56:15 GMT</pubDate></item></channel></rss>