PostAdv is a plugin that lets you add AdSense script anywhere in the post content. It also has one additional latency option to delay the adv from showing up on published posts for the first n days after they are published.
Usages
Backend
- After installing the plugin, you will find a Postadv menu under Settngs
- The page has basic settings like
a. textarea for adding script.
b. Hide In option
c. enabling/disabling latency
d. if enabled, num field to add days in number
- It also adds a meta box in each post for adding script. This has higher priority than the one in the setting page.
Frontend
- Shortcode: To use in the frontend, you have to add [postadv] shortcode in the editor, your desired location.
- Parameters: There are few paramteres that can be used according to your requirement and overrides all the options of settings page
a. [postadv hidein="nohide/desktop/mobile"], "nohide" does not hide in any screens, "desktop" hides in desktop and if "mobile" is selected, the adsense will hide in mobile devices.
b. [postadv latency="on/off"]
c. [postadv latency="on" latency_day="n"], where n is the integer 1,2,3, ......n
Note: Use these options only if you want to override the ones from the settings page.
Notes
- Hide In, there are three options (Do not hide, Hide in Desktop, Hide in Mobile)
- Disabling latency means, the AdSense will simply display without any condition where the shortcode is used.
- Enabling latency means, the AdSense will dispaly on the defined latency day from the day the post was published.
- Enabling or tickmarking the MCU option will disable all shortcode at once. No need to manually go and remove the shortcode used in hundreds of posts.