Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: ads plugin

Just stumbled into this post but for WP, do not know if it will work in WPMU/BP: http://www.wpcookies.com/how-to-add-adsense-code-manually-in-post-using-shortcode/

Open functions.php file of your theme and add the following code:

function adsense() {

return ‘/*Paste your adsense code here!*/’;

}

add_shortcode(‘adsense-block’, ‘adsense’);

Now just add the following shortcode where you want to display Adsense ads while writing a post.

[adsense-block]

And you can use conditional tags to display it may I add…

https://codex.buddypress.org/developer-docs/conditional-template-tags/

Skip to toolbar