term_id; // retrieve the existing value(s) for this meta field. This returns an array $term_meta = get_option("{$this->tax}_$t_id"); $posts_meta = json_decode($term_meta['posts'], true); $pages_meta = json_decode($term_meta['pages'], true); $categories_meta = json_decode($term_meta['categories'], true); $posts = get_posts(array('numberposts'=>'-1')); $pages = get_pages(); $categories = get_categories(array('type' => 'post')); ?>
Select the mode of this group. If you choose Default, your adverts will refresh upon reloading the page. Whereas Dynamic will randomly change them without refreshing, and Block mode will let you place a grid of a few adverts.
Provide values for width and height of ads in this group.
Set the number of rows and columns for your advertisement block.
Set the amount of time (in seconds), which will be indicated as the interval for refreshing dynamic ads.
Provide a value for margins of your advertisement. For example, you can set it to 10px 0px to have margins from top and the bottom only.
Select the alignment of this advertisement group: Left, Right or Center.
Select the section of a post or page, where the advertisement will be displayed.
Select categories to display the ad in their pages.
Choose posts, where you wish to have this advertisement displayed.
Select pages, where you wish to have this advertisement displayed.