Skip to content

Instantly share code, notes, and snippets.

@rinatkhaziev
Created September 15, 2015 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rinatkhaziev/89e685dc11c5820c5165 to your computer and use it in GitHub Desktop.
Save rinatkhaziev/89e685dc11c5820c5165 to your computer and use it in GitHub Desktop.
Multiple sizes per slot
<?php
add_filter( 'acm_ad_tag_ids', 'my_acm_ad_tag_ids' );
function my_acm_ad_tag_ids( $tag_ids ) {
$tag_ids[] = array(
'tag' => 'flex-leaderboard', // tag_id
'url_vars' => array(
'sizes' => array(
array(
'width' => '728',
'height' => '90'
),
array(
'width' => '970',
'height' => '66'
),
),
'fold' => 'atf', // %fold% token
'my_custom_token' => 'something' // %my_custom_token% will be replaced with 'something'
),
);
return $tag_ids;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment