[WordPress] 外掛分享: Monetize Me

首頁外掛目錄 › Monetize Me
WordPress 外掛 Monetize Me 的封面圖片
全新外掛
安裝啟用
尚無評分
3 天前
最後更新
問題解決
WordPress 5.8+ PHP 7.4+ v2.0.3 上架:2017-08-06

內容簡介

Monetize Me 插件可協助網站管理者管理營利腳本,此外,插件還提供短代碼([mmps])和小工具(Show Advertisement)使網站管理者可以在網站中展示廣告。

請使用"Advertisements Sponsor"、"Advertisements Width"以及"Advertisements Height"的分類,將您的營利腳本分類。然後在短代碼中使用這些資訊來顯示您所需的營利腳本。

短代碼[mmps]提供以下屬性以管理您的腳本:

1. id: 來自腳本文章的slug,使用"id"屬性,其他所有屬性將無法使用。因為您使用"id"屬性時表示您可以指定一個特定的廣告。

2. width: 來自"Advertisements Width"分類。廣告的寬度需要在'width'屬性中指定。'width'屬性的預設值為"responsive"。

3. height: 來自"Advertisements Height"分類的高度。廣告的高度需要在'width'屬性中指定。'height'屬性的預設值為"responsive"。

4. class: left、right和center是'class'屬性允許的值,以指定廣告的對齊方式。'class'屬性的預設值為'left'。

5. stype: 來自"Advertisements Sponsor"分類。stype需要指定廣告商的slug。預設值為'adsense'。

6. type: 來自"General Setting"框中的"Ad Type"欄位。mix、link、text、img、feed和article是'type'屬性允許的值。

7. limit: 匹配所需屬性要顯示多少廣告。任何數字都可以,但不能為0。

8. wrapper: 'wrapper'屬性的預設值為1,將您的廣告腳本包裝在一個div中。輸入0則不使用任何html div包裝。

希望截圖可以展示創建營利文章的幾種好方法,並使用短代碼或小工具在網站中使用。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Monetize Me」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Monetize Me is a lightweight and developer-friendly advertisement management plugin for WordPress. It allows you to manage ads, organize them using taxonomies, and display them dynamically using shortcodes, PHP functions, widgets, or Gutenberg blocks.
The plugin is optimized for WordPress Multisite, enabling Network Administrators to centrally manage and synchronize taxonomy terms (adcategory, adsponsor) and Ad posts across subsites.
Core Features

Custom Post Type for Ads
Taxonomies:

Ad Categories (adcategory)
Ad Sponsors (adsponsor)

Display ads using:

Shortcodes
PHP functions
Widgets
Gutenberg block

Raw editor output for advertisement snippets without automatic

tag injection
Google AdSense-friendly rendering that avoids premature responsive slot initialization
Random ad display by category/group
Lightweight and extensible architecture
Admin-only Ad CPT management using plugin-specific capabilities

Multisite Features
When network activated:

Dedicated Network Admin settings page
Copy taxonomy terms across subsites
Copy all ad CPT posts from one site to one or more selected subsites
Preserve Ad post title, slug, content, excerpt, status, menu order, custom fields, and assigned Monetize Me taxonomy terms
Duplicate-safe copying using slug-based detection
Summary report showing copied, skipped, and failed counts

Usage
Shortcode Usage
The main shortcode is:
[mmps]
Supported attributes:

id
Display one specific ad by post slug.

adcategory
Either a single slug of ad Category or CSV IDs of Ad Category.

adsponsor
One or more Ad Sponsor term IDs separated by commas.

limit
Number of ads to display. Default: 1

wrapper
Wrap each ad in

< div class=”ad-wrapper”>. Accepts 1 or 0. Default: 1

class
Extra alignment or styling class for the outer wrapper.

Shortcode examples
Display a specific ad by ad slug:
[mmps id=”homepage-leaderboard”]
Display one random ad from category ID 12:
[mmps adcategory=”12″]
Display one random ad from the ad category with the slug “in-article-ad”:
[mmps adcategory=”in-article-ad”]
Display two random ads from category ID 12:
[mmps adcategory=”12″ limit=”2″]
Display ads from category 12 and sponsor 3:
[mmps adcategory=”12″ adsponsor=”3″]
Display an ad without wrapper markup:
[mmps id=”sidebar-ad-1″ wrapper=”0″]
Raw Ad Code Usage
For Google AdSense or other third-party advertisement snippets, paste the provider code into an Ad post using a Custom HTML block or the code editor. Monetize Me renders the ad content without wpautop(), so the saved markup is not wrapped in extra paragraph tags.
For AdSense responsive ads, the plugin keeps the AdSense loader script and delays the slot push until the slot has visible width. This helps avoid the browser console error: adsbygoogle.push() error: No slot size for availableWidth=0.
PHP Usage
'homepage' ) ); ?>

Multisite Term Synchronization

Go to Network Admin → Settings → Monetize Me.
In Copy Ad Taxonomy Terms, select the source site.
Select the destination subsite.
Click Copy Terms to Selected Subsite.

The plugin will:

Copy adcategory terms
Copy adsponsor terms
Skip duplicate terms by slug

Multisite Ad Post Synchronization

Go to Network Admin → Settings → Monetize Me.
In Copy Ads, select the source site.
Select one or more destination subsites.
Click Copy Ads to Selected Subsites.

The plugin will:

Copy all posts of the ad custom post type
Skip destination Ad posts with the same slug
Copy custom fields
Copy and assign adcategory and adsponsor terms by slug
Report copied, skipped, and failed counts

License
This plugin is licensed under the GPLv2 or later.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon