內容簡介
MailChimp Campaign Archive 會為 WordPress 添加一個 [mailchimp_campaigns] 短碼。這個短碼會將你最新的 MailChimp 電子郵件活動以無序列表的形式列出,並提供連結以查看每個電子郵件的 HTML 版本。
使用方式
唯一必要的參數是 apikey,它必須由 MailChimp 生成:https://admin.mailchimp.com/account/api/
範例使用方式: [mailchimp_campaigns apikey="xxxxxxxxxx" limit="10" order="ASC" link_text="title"]
apikey
下載自 https://admin.mailchimp.com/account/api/。
limit
指定要列出多少活動。可以是 1 到 1000 之間的任何整數。
offset
如果 offset 是非負數,則活動存檔列表將從列表中的 offset 處開始。如果 offset 是負數,則存檔列表將從列表倒數 offset 活動處開始。例如,將其設置為 10 以省略列表中的前十個電子郵件活動,或將其設置為 -2 以省略在倒數第二個活動之前的每個活動。
order
可以是 ASC 或 DESC(升序或降序)
link_text
指定鏈接文本來源。可以是 “subject” 或 “title”
status
僅顯示特定狀態的活動。可以是:“sent”,“save”,“paused”,“schedule”或“sending”
from_name
僅顯示這個“發件人姓名”的活動
from_email
僅顯示這個“回復地址”的活動
list_id
僅顯示發送到此列表 ID 的活動。可以通過導航到列表頁面,點擊齒輪下拉並選擇“列表設置”和“唯一 ID”來查找給定列表的 ID。
folder_id
僅顯示來自此文件夾 ID 的活動。文件夾 ID 可在“文件夾存檔代碼”中的“fid”參數中找到。
organize_by
按日期組織活動列表。可以是“year”或“month”
heading_tag
用於月 / 年標題的 HTML 元素。只有在設置了“organize_by”時才需要。應該是以下之一:h1,h2,h3,h4,h5,h6
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
MailChimp Campaign Archive adds a [mailchimp_campaigns] shortcode to WordPress. This shortcode lists your latest MailChimp email campaigns as an unordered list with links to view the HTML version of each email.
Usage
The only required parameter is apikey which you must generate from MailChimp: https://admin.mailchimp.com/account/api/
Example usage: [mailchimp_campaigns apikey="xxxxxxxxxx" limit="10" order="ASC" link_text="title"]
apikey
Generated from https://admin.mailchimp.com/account/api/
limit
Specify how many campaigns to list. Can be any integer between 1 and 1000.
offset
If offset is non-negative, the archive list will start at that offset in the list. If offset is negative, the archive list will start that far from the end of the list. For example, set this to 10 to omit the first ten email campaigns from the list, or set it to -2 to omit every campaign that comes before the second to last campaign.
order
Can be either ASC or DESC (ascending or descending)
link_text
Specify where to get link text. Can be either “subject” or “title”
status
Only show campaigns of a specific status. Can be: “sent”, “save”, “paused”, “schedule”, or “sending”
from_name
Only show campaigns that have this “From Name”
from_email
Only show campaigns that have this “Reply-to Email”
list_id
Only show campaigns sent to this list ID. The ID for a given list can be found by navigating to the Lists page, clicking the Gear drop down, and selecting List Settings and Unique ID.
folder_id
Only show campaigns from this folder ID. The folder ID can be found in the “fid” parameter in the “Folder Archive Code”
organize_by
Organize campaign list by date. Can be either “year” or “month”
heading_tag
HTML element to use for month/year titles. Only needed if “organize_by” is set. Should be one of: h1, h2, h3, h4, h5, h6
