May 27, 2017 at 3:33 am #30675
I’m new to the adrotate/wordpress and wondering if I can some help
I’m working on a site
I want to have ads running for specific categories
e.g. if I were to click on “attractions” it would only post ads for attractions along the top so on and so fourth.
I’m using wordpress running the theme listables by pixelgrade which they recommended adrotate to use but I’m having no luck.
Can anyone point me in the right direction TIAMay 29, 2017 at 12:35 pm #30711
Sounds like you need Post Injection – https://ajdg.solutions/manuals/adrotate-manuals/post-injection/May 29, 2017 at 10:50 pm #30728
Hi Arnan and thanks for the help.
So when using this “listable” theme these categories
e.g. attractions, outdoors..etc
aren’t under the ‘post -> categories section’, there actually under a whole different area called “listings -> categories”
So when I goto adrotate to use post injections. It doesn’t give me any of the categories that I’ve in the (listings -> cartergories area)
Any idea how I would get to access those?
ThanksMay 29, 2017 at 11:35 pm #30733
Sorry is Post injection a separate plugin or do you mean using post injection thats comes with adrotate pro.
I ask because when looking at the link you sent.
My screen doesn’t look like that in the adrotate groups settingMay 30, 2017 at 1:54 am #30745
So if I goto
http://dev.torontocityguide.com/listings-no-map/it works like it should. but if I come out of the page and click on a link lets say ‘eat and drink’
it doesn’t display anything.June 3, 2017 at 2:08 am #30943
Post Injection is a feature in AdRotate and AdRotate Pro – As described in the earlier linked page. If you don’t have those features you’re using a 6 year old version of AdRotate (Pro) or a different plugin.
For the missing adverts, maybe your adblocker is blocking them – Try disabling the adblocker.June 6, 2017 at 12:04 am #31139
i’ve disabled all adblockers, I’ve recently purchased a copy of AdrotatePro. I do see the section you’ve described in the link, but the categories that I’ve created do not show in the adrotate post injection section.
Here’s a screenshot of the categories I’ve created:
<img src="http://dev.torontocityguide.com/banners/2017-06-05.png" alt="categories" />
Here’s a screenshot of the categories in the post injection section:
<img src="http://dev.torontocityguide.com/banners/2017-06-05-2.png" alt="post injection" />
Is there a way to post inject and choose from the (listing categories) and not from the
Or Is there a way to directly insert the code into a php page to get the ads to load?
ThanksJune 6, 2017 at 10:50 pm #31165
Seeing that Listable creates own category types and it is not possible to target them is it possible to target them with a “URL Parameters” ?June 7, 2017 at 8:29 am #31224
I reread your replies. Looks like some of the things you’re adding are custom post types. Custom post types are not supported – So if your categories and stuff are not there, that’s probably why.
I’m not sure what you mean with url parameter, but as you probably saw, there is no option for such a thing…
What you can do, take a look at your theme documentation for that, is to add groups and adverts to your categories in the theme directly by editing the PHP files.
You may want to use a Child theme for this.June 7, 2017 at 9:09 pm #31245
Thanks I think I figured it out, I’m sure if its coded properly, not really good at this stuff, but I went into the taxonomy-listing-category page and inserted the following:
<?php if (strpos($_SERVER["REQUEST_URI"], "/listing-category/attractions/") !== 0): ?> <?php echo adrotate_group(2); ?> <? else: ?> <?php echo adrotate_group(3); ?> <? endif; ?>June 9, 2017 at 10:03 pm #31411
The topic ‘inject ads in categories’ is closed to new replies.