<?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[Widget logic]]></title><description><![CDATA[<p dir="auto">Salve a tutti, ho installato il plugin in oggetto per escludere un link da tutte le pagine di un blog, tranne che nella home page.</p>
<p dir="auto">Dal file readme del plugin:</p>
<p dir="auto"><code>is_home()</code> -- just the main blog page</p>
<ul>
<li><code>!is_page('about')</code> -- everywhere EXCEPT this specific WP 'page'</li>
<li><code>is_category(array(5,9,10,11))</code> -- category page of one of the given category IDs</li>
<li><code>is_single() &amp;&amp; in_category('baked-goods')</code> -- single post that's in the category with this slug</li>
<li><code>current_user_can('level_10')</code> -- admin only widget</li>
<li>
<pre><code>`strpos($_SERVER['HTTP_REFERER'], "google.com")!=false` -- widget to show when clicked through from a google search
</code></pre>
</li>
<li><code>is_category() &amp;&amp; in_array($cat, get_term_children( 5, 'category'))</code> -- category page that's a descendent of category 5</li>
<li><code>global $post; return (in_array(77,get_post_ancestors($post)));</code> -- WP page that is a child of page 77</li>
<li><code>global $post; return (is_page('home') || ($post-&gt;post_parent=="13"));</code> -- home page OR the page that's a child of page 13</li>
</ul>
<p dir="auto">Qual è il codice da inserire? Dovrebbere essere !is_single() , ma non funziona.</p>
<p dir="auto">Qualcuno può aiutarmi?</p>
<p dir="auto">Grazie in anticipo</p>
]]></description><link>https://dev.connect.gt/topic/169651/widget-logic</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 23:09:45 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/169651.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 14 Apr 2012 20:50:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Widget logic on Mon, 16 Apr 2012 13:31:39 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><strong>giapox</strong></p>
<p dir="auto">In pratica vuoi caricare un widget solo nella home page?</p>
<p dir="auto">Se è così, devi utilizzare il seguente codice:</p>
</blockquote>
<p dir="auto">Ok, grazie. Avevo comunque risolto...</p>
]]></description><link>https://dev.connect.gt/post/1063747</link><guid isPermaLink="true">https://dev.connect.gt/post/1063747</guid><dc:creator><![CDATA[extrabyte]]></dc:creator><pubDate>Mon, 16 Apr 2012 13:31:39 GMT</pubDate></item><item><title><![CDATA[Reply to Widget logic on Mon, 16 Apr 2012 13:01:06 GMT]]></title><description><![CDATA[<p dir="auto">In pratica vuoi caricare un widget solo nella home page?</p>
<p dir="auto">Se è così, devi utilizzare il seguente codice:</p>
<blockquote>
<p dir="auto">is_home()</p>
</blockquote>
]]></description><link>https://dev.connect.gt/post/1063749</link><guid isPermaLink="true">https://dev.connect.gt/post/1063749</guid><dc:creator><![CDATA[Giapox]]></dc:creator><pubDate>Mon, 16 Apr 2012 13:01:06 GMT</pubDate></item></channel></rss>