<?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[Articoli suddivisi per categorie]]></title><description><![CDATA[<p dir="auto">Salve ragazzi, ho provato tanto ma non riesco, il problema è semplice, mostrare articoli per determinate categorie.</p>
<p dir="auto">Incollo il codice dove non riesco ad inserire la giusta stringa per impostare il parametro della categoria:</p>
<pre><code>	global $image_thing_tags;					$image_thing_tags = 'main-image-post2';
				endif;
				
				$limit = 40;
                                
				 global $wpdb;	
				 $querystr = "
					SELECT distinct wposts.* 
					FROM $wpdb-&gt;posts wposts, $wpdb-&gt;postmeta wpostmeta
					WHERE wposts.ID = wpostmeta.post_id
					AND wpostmeta.meta_key = 'closed' 
					AND wpostmeta.meta_value = '0' AND 
					wposts.post_status = 'publish' 
					AND wposts.post_type = 'product'
					ORDER BY wposts.post_date DESC LIMIT ".$limit;
				
				 $pageposts = $wpdb-&gt;get_results($querystr, OBJECT);
				 
				 ?&gt;
					


					 &lt;?php $i = 0; if ($pageposts): ?&gt;
					 &lt;?php global $post; ?&gt;
                     &lt;?php foreach($pageposts as $post): ?&gt;
                     &lt;?php setup_postdata($post); ?&gt;
                     
                    
                     &lt;?php //Walleto_get_post(); 
					 
					
					 
					 if($view != "grid")
						 walleto_get_post_list_view();
					 else
					 	Walleto_get_post();
					 
					 ?&gt;
                     
                     
                     &lt;?php endforeach; ?&gt;
                     &lt;?php else : ?&gt; &lt;?php $no_p = 1; ?&gt;
                       &lt;div class="padd100"&gt;&lt;p class="center"&gt;&lt;?php _e("Sorry, there are no posted products yet","Walleto"); ?&gt;.&lt;/p&gt;&lt;/div&gt;
                        
                     &lt;?php endif; ?&gt;
</code></pre>
<p dir="auto">Grazie</p>
]]></description><link>https://dev.connect.gt/topic/202674/articoli-suddivisi-per-categorie</link><generator>RSS for Node</generator><lastBuildDate>Sun, 29 Nov 2026 08:48:31 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/202674.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 May 2014 18:45:30 GMT</pubDate><ttl>60</ttl></channel></rss>