Hi,
You can try to add a condition in td_module_blog.php at inline ad something like this: http://screencast.com/t/SiFW5aiB
If you don’t have basic php experience I suggest to hire a freelancer to make this for you as for the moment we cannot provide custom work, sorry!
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
This helped …with the following code
$categories = get_the_category($this->post->ID);
foreach($categories as $category) {
if ($category->name != ‘category name’ and $category->name != ‘category name’ and td_util::is_ad_spot_enabled(‘content_inline’) and is_single() ) {
Can u post the complete code here … i used with below code its not working
//add the inline ad
$categories = get_the_category($this->post->ID);
foreach($categories as $category) {
if ($category->name != ‘category name’ and $category->name != ‘category name’ and td_util::is_ad_spot_enabled(‘content_inline’) and is_single() ) {
if (empty($tds_inline_ad_paragraph)) {
$tds_inline_ad_paragraph = 0;
}
$cnt = 0;
Hi,
You can try this solution – https://forum.tagdiv.com/topic/replace-adsense-code-of-ads-fields-in-a-category/
Thanks!