• Resolved DinoG

    (@dinog)


    Hi, is there a way to insert ads on archive category pages? The option is there for one of the conditions, but it doesn’t work. I also tried adding a shortcode in the category description, but that still does not work. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello DinoG,

    Please set the Unlimited ad injection option to -1 on the Settings page

    • This reply was modified 7 years, 7 months ago by fstf.
    Thread Starter DinoG

    (@dinog)

    OK thanks. The shortcode still won’t work, but it does work now when I use archive categories as a condition for the ads.

    You could add following line to the function.php file of your theme:

    add_filter( 'category_description', 'do_shortcode' );

    There is an article describing that

    • This reply was modified 7 years, 7 months ago by fstf.
    Thread Starter DinoG

    (@dinog)

    I had actually tried that first (using the article you later linked to). Still didn’t work. But it’s ok, it works using the conditions for the ads. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘AdSense on Category Pages’ is closed to new replies.