Display Conditions define where to display an ad and where to hide it.

If you are using Advanced Ads 1.7 or later then take a look at the new Display Condition manual.

Usage

Before using display conditions you must enable them.

enable display conditions

You will then see 5 sections of display conditions to display / hide ads on

  • individual content with a specific (public) post type
  • individual content within specific categories, tags and other taxonomies
  • archive pages for categories, tags and other taxonomies
  • individual content pages
  • content matching more general conditions

5 display condition sections

Basic rules

If you want to display the ad everywhere, you don’t need to change anything here. The fewer conditions you enter, the better the performance will be.

Uncheck the first four sections to see the detailed settings allowing you to set the appropriate values. If you don’t uncheck the main switch, the conditions will always be positive.

Display on all public post types

Choose the public post type of content where the ad can be displayed. This condition is working on single pages as well as archive pages.

Display for all categories, tags and taxonomies

Choose the taxonomies (categories and tags for posts) a single content must belong to to either show or hide the ad. You see a section for showing the ad as well as hiding it from. If you only select taxonomies to show the ads on, a new taxonomy will not display it. If you only select taxonomies to hide the ads on, a new taxonomy will show it.

Display on all category archive pages

Choose the taxonomies (categories and tags for posts) an archive page must belong to to either show or hide the ad. You see a section for showing the ad as well as hiding it from. If you only select taxonomies to show the ads on, a new taxonomy will not display it. If you only select taxonomies to hide the ads on, a new taxonomy will show it.

Display an all individual posts, pages and public post type pages

Unchecking this option reveals the possibility to display or hide an ad from specific published pages. Like when you want to display an ad only on a specific page or post or hide it from there. Just start typing the title of the page you are searching for and select it from the suggestions.

Other conditions

The additional conditions are a way to show or hide ads on special or very general pages.

other display conditions

By default, ads are enabled on all page types.

Secondary Queries

Secondary Queries in WordPress could be list of posts that don’t belong to the post type, but are added in addition. E.g. on a single post the main post would be the primary query, but a list of related posts in the sidebar or post teasers below the main article could be a secondary query.

With ad injections it can happen that teasers from secondary queried posts also contain ads. To prevent this from happening you can disable ads on Secondary Queries on a per-ad basis or globally in the plugin settings.

What else you need to know

Practically, you don’t need to set display conditions in case you use the ad in a place where it should always appear. The more specific the place, e.g. using the  the_ad()  function within a specific template file like  single.php  the less carefull you probably need to define the display conditions.

 Display Conditions, Publishing Ads