Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Ads shortcode

To outstanding any averted code eg. Adsense, banger ads, etc. Use [advert ad_1= “your ad codes”] or [advert ad_2 = “your ad codes”] or [advert ad_3 = “your ad codes”] to place the ad on the desired spot.

// Add Shortcode
function advert_shortcode( $atts ) {

	// Attributes
	extract( shortcode_atts(
		array(
			'ad_1' => '',
			'ad_2' => '',
			'ad_3' => '',
		), $atts )
	);
}
add_shortcode( 'advert', 'advert_shortcode' );