/wp-content/plugins/
directory and unzip.[mpress_banner banner="14"]
. For more details on how you can use the shortcode to customize your banner display, see the FAQ page.Yes. By default, a visitor can dismiss an ad by clicking the close box in the upper right corner. If you don't want visitors to be able to dismiss ads, then you can disable this using the shortcode.
The [mpress_banner]
shortcode requires only the 'banner' attribute to work properly. All other attributes are optional. The shortcode will only display a banner if the banner id is passed to the 'banner' attribute, like this: [mpress_banner banner="12"]
. You can pass in multiple banner ids like this: [mpress_banner banner="12, 14, 21"]
. Banners will display in the order that the ids are listed. Banner ids are listed in the admin on the banner listing screen.
Optionally, you can use the shortcode like this if you wish to simply provide your own html markup: [mpress_banner]<a href="{link_url}"><img src="{image_url}" /></a>[/mpress_banner]
.
If you simply use the [mpress_banner]
shortcode with no attributes, then admins will see a help message.
The shortcode provides several optional settings, or attributes, with which you can customize your banner ads:
[mpress_banner banner="1" id="my-banner"]
[mpress_banner banner="1, 2" time_delay="10"]
[mpress_banner banner="1" direction="down"]
[mpress_banner banner="1" persistent="true"]
[mpress_banner banner="1" loop="true"]
[mpress_banner banner="1" dismissible="false"]
[mpress_banner banner="1, 2, 3, 4, 5" random="true"]
Yes. Just use this code to insert banners in your theme template files: <?php echo do_shortcode('[mpress_banner banner="1, 2"]'); ?>
.
Additionally, you can use a filter such as 'the_content' to append or prepend the shortcode to all of your posts or to a specific set of posts.