Have questions? Contact Us

live chat with us

For sale inquiries, please call
Toll Free 866.4AD.SPEED
International +1.408.454.6363

Testimonials

  • My banners are running faster and getting more clicks, since I moved to a Premium Account.

    Tom Bailey
    Aquarium Fish

  • AdSpeed has been a very reliable service.

    Samir Delgado

Help Center > Manage Your Account > Serving Code

How do I set up advertising on WordPress?

WordPress is a popular publishing platform with many advanced customizations to suit your own preferences. To place ads into your WordPress blog/CMS, you can use AdSpeed plugin for WordPress. For more advanced ad setup, you would need to place the serving code directly into the WordPress templates.

Place ads only on the homepage

You would use the condition tag is_home() in the homepage.php (or index.php). For default theme, the file would be in this folder htdocs/wp/wp-content/themes/default/

Serve different ads for each content category

Our system is very flexible in the way you sell and organize ads. In WordPress, you would need to use is_category(). These are several methods to organize the ads:
One zone per category
You can create multiple zones, one for each category and get the serving code for the zone to put into the WordPress template. Any/all ads linked to this zone will get served in the category. This is the easiest solution to setup and manage. However, if you have many many categories then setting up the first time might take some time. To address this labor-intensive operation, you can use our API (programming interface) to develop an automated solution.
URL targeting
You can create a few zones based on ad location (eg: top, right, bottom) that are shared across categories. The ads linked to these zones then have URL targeting. For example: only display AdA when the URL has "CategoryABC"). This requires that the URL follows a pattern that contains the defined category.

Other Articles in Serving Code

Understand advanced ad serving settings for standard, pop-up/pop-under, and interstitial serving code
Search Help Center

Cannot find an answer for your question? Ask our Customer Care team

Related Articles