<?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[Mostrare un solo l'ultimo Post]]></title><description><![CDATA[<p dir="auto">Salve, ho un sito fatto in wordpress, vorrei visualizzare solo l'ultimo post in home page; non ho trovato widget adatto e non so dove modificare il codice potreste gentilmente indicarmi come modificare il seguente codice?</p>
<p dir="auto">&lt;?php if (have_posts()) : ?&gt;</p>
<pre><code>	&lt;?php while (have_posts()) : the_post(); ?&gt;


	&lt;div class="post"&gt;
		&lt;div class="post-date"&gt;
    &lt;span class="post-month"&gt;&lt;?php the_time('M') ?&gt;&lt;/span&gt; 
  	&lt;span class="post-day"&gt;&lt;?php the_time('j') ?&gt;&lt;/span&gt;
  &lt;/div&gt;
		&lt;div class="post-title"&gt;
			&lt;h2&gt;&lt;a href="&lt;?php the_permalink() ?&gt;" rel="bookmark" title="Permanent Link to &lt;?php the_title_attribute(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
			&lt;span class="post-cat"&gt;&lt;?php the_category(', ') ?&gt;&lt;/span&gt; 


		&lt;/div&gt;
		&lt;div class="entry"&gt;
			&lt;?php the_content('Read the rest of this entry &amp;raquo;'); ?&gt;
		&lt;/div&gt;
	&lt;/div&gt;


	&lt;?php endwhile; ?&gt;


	&lt;div class="navigation"&gt; 
		&lt;span class="previous-entries"&gt;&lt;?php next_posts_link('Older Entries') ?&gt;&lt;/span&gt;
		&lt;span class="next-entries"&gt;&lt;?php previous_posts_link('Newer Entries') ?&gt;&lt;/span&gt; 
	&lt;/div&gt;


&lt;?php else : ?&gt;


	&lt;h2&gt;Not Found&lt;/h2&gt;
	&lt;p&gt;Sorry, but you are looking for something that isn't here.&lt;/p&gt;


&lt;?php endif; ?&gt;
</code></pre>
<p dir="auto">Grazie</p>
]]></description><link>https://dev.connect.gt/topic/191988/mostrare-un-solo-l-ultimo-post</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 16:21:38 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/191988.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 22 Jul 2013 17:00:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mostrare un solo l'ultimo Post on Tue, 23 Jul 2013 09:07:07 GMT]]></title><description><![CDATA[<p dir="auto">Funge!!! Grazie tante!</p>
]]></description><link>https://dev.connect.gt/post/1132536</link><guid isPermaLink="true">https://dev.connect.gt/post/1132536</guid><dc:creator><![CDATA[karlthagain]]></dc:creator><pubDate>Tue, 23 Jul 2013 09:07:07 GMT</pubDate></item><item><title><![CDATA[Reply to Mostrare un solo l'ultimo Post on Tue, 23 Jul 2013 08:43:39 GMT]]></title><description><![CDATA[<p dir="auto">Prova ad inserire prima dell'istruzione</p>
<blockquote>
<p dir="auto">if (have_posts()) :</p>
</blockquote>
<p dir="auto">la seguente riga:</p>
<blockquote>
<p dir="auto">query_posts('posts_per_page=1');</p>
</blockquote>
<p dir="auto">Ciao</p>
]]></description><link>https://dev.connect.gt/post/1132535</link><guid isPermaLink="true">https://dev.connect.gt/post/1132535</guid><dc:creator><![CDATA[mariolone]]></dc:creator><pubDate>Tue, 23 Jul 2013 08:43:39 GMT</pubDate></item></channel></rss>