內容簡介
PostAdv是一款WordPress外掛,可讓您在文章內容中的任何位置添加AdSense腳本,並提供一個附加的潛伏期選項,以延遲在文章發佈後的前n天顯示廣告。
用法
後端
1. 安裝外掛後,在“設置”下方可以找到“Postadv”選單
2. 該頁包含基本設置,例如
a. 文字區域可添加腳本。
b. 隱藏選項
c. 启用/禁用潛伏期
d. 如果啟用,可以添加天數
3. 它還在每篇文章中添加了一個元框,可用於添加腳本。這比設置頁面中的元框優先級更高。
前端
1. 短代碼:要在前端使用,必須在編輯器中添加[postadv]短代碼,選擇您需要的位置。
2. 參數:根據您的要求使用幾個參數,可以覆蓋所有設置頁面的選項
a. [postadv hidein="nohide/desktop/mobile"],“nohide”不會在任何屏幕上隱藏,“desktop”在桌面上隱藏,如果選擇“mobile”,則AdSense將在移動設備上隱藏。
b. [postadv latency="on/off"]
c. [postadv latency="on" latency_day="n"],其中n是整數1,2,3, ......n
注意:僅在要覆蓋設置頁面的選項時使用這些選項。
注意事項
隱藏選項有三個選項(不隱藏,僅在桌面上隱藏,在移動設備上隱藏)
禁用潛伏期意味著AdSense將簡單地顯示,而不管在哪裡使用短代碼。
啟用潛伏期意味著AdSense將於從文章發佈日起定義的潛伏天數後顯示。
啟用或勾選MCU選項將立即禁用所有短代碼。無需手動刪除數百篇文章中使用的短代碼。
外掛標籤
開發者團隊
原文外掛簡介
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
1. After installing the plugin, you will find a Postadv menu under Settngs
2. 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
3. It also adds a meta box in each post for adding script. This has higher priority than the one in the setting page.
Frontend
1. Shortcode: To use in the frontend, you have to add [postadv] shortcode in the editor, your desired location.
2. 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.
