<?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[div in RANDOM]]></title><description><![CDATA[<p dir="auto">Ciao a tutti,<br />
sono un giovanissimo autodidatta alle prese con un problema.<br />
Per me è una montagna ma per gli esperti forse no e spero di imparare da loro attraverso i consigli e le soluzioni che mi proporrete.</p>
<p dir="auto">Allora:</p>
<p dir="auto">Sto studiando questo theme di Wordpress</p>
<p dir="auto"><a href="http://elegantthemes.com/preview/MyCuisine/" rel="nofollow ugc">elegantthemes.com/preview/MyCuisine/</a></p>
<p dir="auto">Vorrei che i profili dei "testimonial" in basso a dx vengano mandati in loop (anche non in maniera randomica ma in ordine così come li pesca).</p>
<p dir="auto">Adesso, Ogni volta che aggiorno la pagina si carica un testimonial diverso.<br />
Come posso fare che si carichino anche senza aggiornare? Cioè mandarli in "slider" cosi come fanno le foto in alto?</p>
<p dir="auto">credo che debba agire in questo pezzo di codice...ma nn è ancora di mio dominio e nn so proprio come fare. Grazie ancora!</p>
<pre><code class="language-html">&lt;?php if ( $i == 3 ) { ?&gt;
						&lt;?php if ( get_option('mycuisine_use_area3') != 'on' ) { ?&gt;
							&lt;h3 class="title"&gt;&lt;?php _e("AUTHORS - random profiles",'MyCuisine'); ?&gt;&lt;/h3&gt;
							&lt;?php 
								$testimonials_args = array(
									'post_type' =&gt; array('testimonial'),
									'showposts' =&gt; '1',
									'orderby' =&gt; 'rand'
								);
								$testimonials_query = new WP_Query( $testimonials_args );
								while ( $testimonials_query-&gt;have_posts() ) : $testimonials_query-&gt;the_post(); ?&gt;
									&lt;div class="testimonials-item"&gt;
										&lt;div class="testimonials-item-bottom"&gt;
											&lt;div class="testimonials-item-content"&gt;
												&lt;?php 
													$thumb = '';
													$width = 56;
													$height = 56;
													$classtext = 'item-image';
													$titletext = get_the_title();
													$thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,false,'Testimonial');
													$thumb = $thumbnail["thumb"];
												?&gt;
												&lt;?php if ( $thumb &lt;&gt; '' ) { ?&gt;
													&lt;div class="thumb"&gt;
														&lt;?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?&gt;
														&lt;span class="overlay"&gt;&lt;/span&gt;
													&lt;/div&gt; &lt;!-- end .thumb --&gt;
												&lt;?php } ?&gt;
												&lt;p class="author"&gt;&lt;?php the_title(); ?&gt;&lt;/p&gt;
												&lt;?php the_content(''); ?&gt;
											&lt;/div&gt; 	&lt;!-- end .testimonials-item-content --&gt;
										&lt;/div&gt; &lt;!-- end .testimonials-item-bottom --&gt;
									&lt;/div&gt; &lt;!-- end .testimonials-item --&gt;
							&lt;?php endwhile; wp_reset_postdata(); ?&gt;
						&lt;?php } else { ?&gt;
							&lt;?php 
								$service_query = new WP_Query('page_id=' . get_pageId(html_entity_decode(get_option('mycuisine_home_page_3'))));
								while ( $service_query-&gt;have_posts() ) : $service_query-&gt;the_post(); ?&gt;
							&lt;?php 
								global $more; $more = 0;
							?&gt;
									&lt;h3 class="title"&gt;&lt;?php the_title(); ?&gt;&lt;/h3&gt;
									&lt;?php the_content(''); ?&gt;
							&lt;?php endwhile; wp_reset_postdata(); ?&gt;
						&lt;?php } ?&gt;
					&lt;?php } ?&gt;
				&lt;/div&gt; &lt;!-- end .home-block --&gt;
			&lt;?php } ?&gt;
		&lt;?php } ?&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/topic/155891/div-in-random</link><generator>RSS for Node</generator><lastBuildDate>Sun, 29 Nov 2026 01:54:46 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/155891.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 30 Jul 2011 06:58:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to div in RANDOM on Tue, 23 Aug 2011 00:39:17 GMT]]></title><description><![CDATA[<p dir="auto">Purtroppo non credo esista una soluzione semplice al tuo problema, che non è nel codice, ma nell'attitudine con la quale stai affrontando il problema. Ti conviene più probabilmente affrontare un problema alla volta:</p>
<ol>
<li>
<p dir="auto">Come posso caricare <em>tutti</em> i testimonial dentro il div?<br />
[devi agire lato php e database]</p>
</li>
<li>
<p dir="auto">Come posso animare i testimonial con uno slide?<br />
[è un comportamento lato client, percui javascript, o meglio ancora jquery]</p>
</li>
</ol>
<p dir="auto">Sperando di averti dato spunti di riflessione <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=2190ae3dadd" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
]]></description><link>https://dev.connect.gt/post/1017606</link><guid isPermaLink="true">https://dev.connect.gt/post/1017606</guid><dc:creator><![CDATA[marco.panichi 0]]></dc:creator><pubDate>Tue, 23 Aug 2011 00:39:17 GMT</pubDate></item></channel></rss>