<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress &#8250; Support Topic: ad-minister and working with categories</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Topic: ad-minister and working with categories</description>
<language>en</language>
<pubDate>Tue, 24 Nov 2009 12:02:29 +0000</pubDate>

<item>
<title>xcded on "ad-minister and working with categories"</title>
<link>http://wordpress.org/support/topic/219821#post-1072281</link>
<pubDate>Tue, 12 May 2009 18:42:01 +0000</pubDate>
<dc:creator>xcded</dc:creator>
<guid isPermaLink="false">1072281@http://wordpress.org/support/</guid>
<description>&#60;p&#62;This code adds two &#60;strong&#62;&#34;Template Positions&#34;&#60;/strong&#62; to &#60;strong&#62;&#34;Ad-Minister/Options/Positions&#34;&#60;/strong&#62;.&#60;br /&#62;
One called &#60;strong&#62;&#34;ads-sports&#34;&#60;/strong&#62; and other called &#60;strong&#62;&#34;ads-general&#34;&#60;/strong&#62;.&#60;br /&#62;
Put the code in your template.&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;&#60;code&#62;&#38;lt;?php if (in_category('sports')) { ?&#38;gt;&#60;br /&#62;
&#38;lt;!-- Some HTML --&#38;gt;&#60;br /&#62;
&#38;lt;?php $args = array('position' =&#38;gt; 'ads-sports', 'description' =&#38;gt; 'Ads for Sports');&#60;br /&#62;
      do_action('ad-minister', $args); ?&#38;gt;&#60;br /&#62;
&#38;lt;!-- Some HTML --&#38;gt;&#60;br /&#62;
&#38;lt;?php } elseif (in_category('general') { ?&#38;gt;&#60;br /&#62;
&#38;lt;!-- Some HTML --&#38;gt;&#60;br /&#62;
&#38;lt;?php $args = array('position' =&#38;gt; 'ads-general', 'description' =&#38;gt; 'Ads for General');&#60;br /&#62;
      do_action('ad-minister', $args); ?&#38;gt;&#60;br /&#62;
&#38;lt;!-- Some HTML --&#38;gt;&#60;br /&#62;
&#38;lt;?php } ?&#38;gt;&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;Next you must refresh the page in which you put the code, and go to your &#60;strong&#62;&#34;Ad-Minister/Options/Positions&#34;&#60;/strong&#62; to see these &#60;strong&#62;&#34;Template Positions&#34;&#60;/strong&#62;.&#60;br /&#62;
Finally you can create any ad in &#60;strong&#62;&#34;Ad-Minister/Options/Content&#34;&#60;/strong&#62; and assign it to the &#34;Template Positions&#34;.&#60;/p&#62;
&#60;p&#62;Sorry im from Argentina, and my English is not good.&#60;br /&#62;
I hope it will be useful.
&#60;/p&#62;</description>
</item>
<item>
<title>rubikwizard on "ad-minister and working with categories"</title>
<link>http://wordpress.org/support/topic/219821#post-1036304</link>
<pubDate>Sat, 04 Apr 2009 09:59:02 +0000</pubDate>
<dc:creator>rubikwizard</dc:creator>
<guid isPermaLink="false">1036304@http://wordpress.org/support/</guid>
<description>&#60;blockquote&#62;&#60;p&#62;Hi, i'm working in something similar. I eant to display some ads only if i has to do with the category. So my first thought was to use a conditional in the code of the single post (index.php):&#60;/p&#62;
&#60;p&#62;&#38;lt;?php if (in_category('sports')) { ?&#38;gt;&#60;/p&#62;
&#60;p&#62;	&#38;lt;?php-------AD MINISTER-1---------?&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php } elseif (in_category('general') { ?&#38;gt;&#60;br /&#62;
	&#38;lt;?php-------AD MINISTER-2---------?&#38;gt;&#60;br /&#62;
&#38;lt;?php } ?&#38;gt;&#60;/p&#62;
&#60;p&#62;But it's not working.&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;Any luck with this yet?
&#60;/p&#62;</description>
</item>
<item>
<title>maurettol86 on "ad-minister and working with categories"</title>
<link>http://wordpress.org/support/topic/219821#post-1021242</link>
<pubDate>Fri, 20 Mar 2009 12:00:48 +0000</pubDate>
<dc:creator>maurettol86</dc:creator>
<guid isPermaLink="false">1021242@http://wordpress.org/support/</guid>
<description>&#60;p&#62;&#38;lt;&#38;lt;&#38;lt;&#38;lt; WP 2.7 &#38;gt;&#38;gt;&#38;gt;&#38;gt;&#60;br /&#62;
Hi, i'm working in something similar. I eant to display some ads only if i has to do with the category. So my first thought was to use a conditional in the code of the single post (index.php):&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php if (in_category(&#38;#39;sports&#38;#39;)) { ?&#38;gt;

	&#38;lt;?php-------AD MINISTER-1---------?&#38;gt;

&#38;lt;?php } elseif (in_category(&#38;#39;general&#38;#39;) { ?&#38;gt;
	&#38;lt;?php-------AD MINISTER-2---------?&#38;gt;
&#38;lt;?php } ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But it's not working.&#60;br /&#62;
Any suggestion?&#60;br /&#62;
Thanks!&#60;br /&#62;
Mauro
&#60;/p&#62;</description>
</item>
<item>
<title>kjetilgf on "ad-minister and working with categories"</title>
<link>http://wordpress.org/support/topic/219821#post-953535</link>
<pubDate>Mon, 12 Jan 2009 16:42:16 +0000</pubDate>
<dc:creator>kjetilgf</dc:creator>
<guid isPermaLink="false">953535@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Have a look at &#60;a href=&#34;http://wordpress.org/extend/plugins/widget-logic/&#34;&#62;Widget Logic&#60;/a&#62;, one of the most useful little plugins made. With it you get an extra window in all widgets where you can paste php code that makes eg ad-minister widgets show up in particular categories and/ or special pages etc.&#60;br /&#62;
On &#60;a href=&#34;http://www.dolcevita.no/&#34;&#62;dolcevita.no&#60;/a&#62; I use the code below to make ads show up on each category's (= Italian region's) overview page + on each post inside that category - try eg &#60;a href=&#34;http://www.dolcevita.no/lazio/&#34;&#62;Lazio&#60;/a&#62; and the posts there.&#60;br /&#62;
I believe it's just what you need.&#60;br /&#62;
Kjetil&#60;/p&#62;
&#60;p&#62;PS The code I use: 'is_category(4) &#124;&#124; (is_single() &#38;#38;&#38;#38; in_category(4))' - where 4 is the category' ID number :o)
&#60;/p&#62;</description>
</item>
<item>
<title>cnymike on "ad-minister and working with categories"</title>
<link>http://wordpress.org/support/topic/219821#post-919813</link>
<pubDate>Wed, 10 Dec 2008 20:21:33 +0000</pubDate>
<dc:creator>cnymike</dc:creator>
<guid isPermaLink="false">919813@http://wordpress.org/support/</guid>
<description>&#60;p&#62;That's interesting. Why would I need both plugins? It looks like Who sees Ads would do it all? What am I missing?
&#60;/p&#62;</description>
</item>
<item>
<title>Dantes100 on "ad-minister and working with categories"</title>
<link>http://wordpress.org/support/topic/219821#post-909238</link>
<pubDate>Thu, 27 Nov 2008 07:24:42 +0000</pubDate>
<dc:creator>Dantes100</dc:creator>
<guid isPermaLink="false">909238@http://wordpress.org/support/</guid>
<description>&#60;p&#62;You can achieve that by using the plugin &#34;Who sees Ads&#34; additionally.&#60;/p&#62;
&#60;p&#62;Eddie
&#60;/p&#62;</description>
</item>
<item>
<title>cnymike on "ad-minister and working with categories"</title>
<link>http://wordpress.org/support/topic/219821#post-906414</link>
<pubDate>Sun, 23 Nov 2008 23:01:21 +0000</pubDate>
<dc:creator>cnymike</dc:creator>
<guid isPermaLink="false">906414@http://wordpress.org/support/</guid>
<description>&#60;p&#62;This is a very nice plugin and -almost- does what I need. The reason it is not quite sufficient is that I cannot seem to figure out a way to limit a particular ad to display only on a particular category page.&#60;/p&#62;
&#60;p&#62;In other words, I have my site designed so that the left sidebar lists categories of businesses and when a visitor clicks on a particular type of business category, the resulting page lists only business of that particular category (for example, a page of “Photographers”)&#60;/p&#62;
&#60;p&#62;It is necessary for me to be able to ensure that an ad specifically targeted to Photographers could be displayed on that page instead of having a “global” or &#34;random&#34; ad displayed.&#60;/p&#62;
&#60;p&#62;I think someone else requested this same featuer earlier on.&#60;/p&#62;
&#60;p&#62;I’m not a programmer, but it does seem to me that some sort of conditional statement could be developed that would display ads for particular categories and if no particular ad were specified, then either no ad would be displayed or a “global” or &#34;random&#34; ad could be displayed.&#60;/p&#62;
&#60;p&#62;If you could build that sort of function into this plugin, not only would I be very happy, but I would donate a tidy sum of cash into your paypal account. &#60;/p&#62;
&#60;p&#62;Michael
&#60;/p&#62;</description>
</item>

</channel>
</rss>
