前言介紹
- 這款 WordPress 外掛「Cision Block」是 2017-07-19 上架。
- 目前有 100 個安裝啟用數。
- 上一次更新是 2024-12-05,距離現在已有 150 天。
- 外掛最低要求 WordPress 5.3 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
- 有 15 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
ir | feed | press | stock | cision |
內容簡介
此外掛由 Cyclonecode 開發,可用於加載並公佈由 Cision 建立的新聞稿。
要開始從 Cision 拉取供稿項目,您首先需要在插件的配置頁面上添加您的 JSON 供稿的唯一標識符。
您還可以更改要拉取的供稿項目數量、供稿項目類型、啟用分頁、配置緩存等等。
如果您有問題或對添加的東西有一些想法,您也可以嘗試使用 slack。
Pro 版本是此插件的付費版本,其中包括擴展功能。例如:
- 支持提取整個供稿,而不僅僅是最後 100 個條目。
- 自定義文章類型。為 WordPress 中的每個項目創建帖子。這意味著所有新聞都有標准 WordPress 鏈接。
- 可以添加手動創建的帖子到供稿。
- 自 Cision 中提取的分類和標籤的自定義分類法。
- 從 active theme 中使用標準文章模板。
- 支持基於從 Cision 發送的 PUSH 事件創建、更新和刪除帖子。
- 在可配置間隔內的 CRON 時間內支持創建、更新和刪除帖子。
- 訂閱模塊。
- 滾動條模塊。
- 股東模塊。
- 日曆模塊。
- 媒體模塊。
- 内部模塊。
- 使用常規或基於 Ajax 的加載更多按鈕進行分頁。
- 年度免費支持和更快的響應時間。
- 多站點許可證的折扣。
我通常會有一次初始會議,談論插件,解釋不同的功能並回答任何問題。
可以在此處找到顯示一些模塊的演示站點。
此外,還有一些待實現功能的待辦清單,其中包括:
- 固定要在列表頂部的供稿項目。
- 在環境之間導入和導出設置。
- 圖形模塊。
- REST API。
- 幻燈片。
- 預覽功能。
- 免責聲明支持。
- 支持多個模板。
- 顯示每個供稿項目的預估閱讀時間。
- 還有很多。
要獲得有關 Pro 版本的更多信息,請發送電子郵件至[email protected]或致電 +(46)-791026643。
尋求幫助:我目前正在尋求有人願意幫助我完成以下之一的工作:
- 創建可以在管理菜單中使用的儀表板圖標。
- 創建將顯示在 wordpress.org 上插件主頁的橫幅。
- 設計一個更美觀,更直觀的管理界面。
- 創建可用於多個位置的外觀鮮明的圖標。
如果您想幫助完成以上任務之一,請不要猶豫,通過 slack 或電子郵件與我聯繫。
開發人員:我正在尋找願意貢獻免費或付費版本插件的開發人員。很高興從有 WordPress 插件開發經驗的其他人得到一些想法和輸入。
原文外掛簡介
This plugin is developed by Cyclonecode and can be used to load and expose press releases made by Cision.
To start pulling feed items from Cision you first need to add the unique identifier for you json feed at the configuration page for the plugin.
You can also change how many feed items to pull, type of feed items, enable pagination, configure caching and much more.
If you have questions or perhaps some idea on things that should be added you can also try slack.
Pro Version
There is a PRO version of this plugin, which includes extended features. For instance:
★ Support to fetch entire feed and not only the last 50 entries.
★ Custom post types. Creates a post for each item in WordPress. This means that all news have standard WordPress links.
★ Manually created posts can be added to the feed.
★ Custom taxonomies for categories and tags fetched from Cision.
★ Use standard article template from your active theme.
★ Support to create, update and delete posts based on PUSH events sent from Cision.
★ Support to create, update and delete posts during CRON at configurable intervals.
★ Calendar module.
★ Cron module.
★ Insider module.
★ Link Back module.
★ Media module.
★ Ownership module.
★ Share Graph module.
★ Share Calculator module.
★ Subscription module.
★ Ticker module.
★ Translation module.
★ Use normal or ajax based load more button for pagination.
★ Annual free support and quicker response times.
★ Discount for multisite licenses.
I usually have an initial meeting where I talk about the plugin, explain the different features and answer any questions.
A demo site showing some of the modules can be found here.
To get more information about the Pro version, email me at [email protected] or give me a call at +(46)-767013987.
Looking for help
I am currently in the search for someone who would like to help me with something of the following:
Create a dashboard icon which can be used in the admin menu.
Create a banner that would be displayed on the plugins homepage at wordpress.org.
Design a nicer and more intuitive admin interface.
Create a solid looking icon that can be used on multiple places.
If you would like to help with anything of the above, please do not hesitate and contact me either on Slack or by email.
Developers
I am looking for developers that would be interested in contributing to either the free or premium version of the plugin.
Would be great just to get some ideas and input from others who have some experience in WordPress plugin development.
At this point I am pretty much on my own, which will sometimes result in me just thinking around some issues in my own way; here I think it would be awesome to have others to talk to and collaborate.
If you think this sounds interesting, please drop me an email or ping me on Slack.
Widget
You can display a feed in any sidebar by adding and configure a widget.
Shortcode
The shortcode [cision-block] can either be used by adding it to the content field of any post or by using the do_shortcode function in one of your templates.
Shortcode attributes:
id
Assign a specific name for a block.
source_uid
A unique feed identifier.
language
The language code for each feed item. For example ‘en’ for english.
date_format
The date format to use.
readmore
The readmore button text.
count
The maximum number of items to include in the feed.
view
This states what kind of items to include:
1 – include both regulatory and non-regulatory items.
2 – include only regulatory items.
3 – include only non-regulatory items.
start
Sets the start date for the feed items. The format to use is 2016-12-31.
end
Sets the end date for the feed items. The format to use is 2016-12-31.
show_filters
Enable filtering of feed items.
filter_all_text
Button text for ‘all’ filter.
filter_regulatory_text
Button text for ‘regulatory’ filter.
filter_non_regulatory_text
Button text for ‘non-regulatory’ filter.
items_per_page
Sets the number of feed items to display on each page.
types
Only press releases of the specified types will be included.
image_style
The image style to use:
DownloadUrl
UrlTo100x100ArResized
UrlTo200x200ArResized
UrlTo400x400ArResized
UrlTo800x800ArResized
UrlTo100x100Thumbnail
UrlTo200x200Thumbnail
show_excerpt
Display excerpt for each feed item.
template
The template file to use. If no template is set in settings and this parameter is not set then cision-block.php in either the active
theme or in the plugin will be used as a default.
You can either use the name of the template as given in the template header e.g ‘Foo’ or the actual filename e.g. foo.php.
flush
Clears the cache for the block.
Here is an example using all of the above attributes:
[cision-block id=example_block source_uid=A275C0BF733048FFAE9126ACA64DD08F language=sv date_format=m-d-Y readmore="Read more" show_excerpt=0 view=1 count=6 items_per_page=2 types="PRM, RDV" start=2016-01-12 end=2019-06-12 image_style=UrlTo400x400ArResized show_filters=1 filter_all_text=*none* filter_regulatory_text=Regulatory filter_non_regulatory_text=Non-regulatory template=foo.php flush=true]
Notice that all shortcode attributes are optional and that they must be on a single line.
Default values is taken from the plugins settings page.
Here is a complete list of the different kind of press releases:
KMK – Annual Financial statement
RDV – Annual Report
PRM – Company Announcement
RPT – Interim Report
INB – Invitation
NBR – Newsletter
More than one block in a page
To use more than one block in a single page you will need to set a unique id for each block or else they will both share the same cache entry.
Filter feed items
On the ‘Filters’ tab you can enable filtering on you feed and add a text for the different kind of filters or use the default ones.
If for some reason you would like to hide a specific filter button you can enter the special value *none* in the corresponding text field.
Template
The template used to render the feed is cision-block/templates/cision-block.php, you can override
this template by copying it to either the root or under a templates folder in your theme.
You can also select a specific template which will be used to render the feed under the plugins settings page.
To create a new template, you can follow the steps as described in this link: Page Templates:
For instance adding a file with the following header comment would create a new ‘Foo’ template:
Display single press releases in WordPress
Since version 2.0.0 it is possible to fetch and display press releases directly from within WordPress.
The template used in this case is cision-block/templates/cision-block-post.php, you can override
this template by copying it to either the root or under a templates folder in your theme.
The $CisionItem feed object that is available in the template contains all raw data fetched from Cision.
Under the Resources section there is a link that explains all the different fields that is available.
For example if you use the $CisionItem->HtmlBody to display content from the feed item you might have to add custom
css since this contains pre formated html which may include inline css and so on.
Fields
By default, only the following fields are collected for each feed item:
Title
Intro
Body
PublishDate
CisionWireUrl
IsRegulatory
Images[0]
DownloadUrl
Description
Filters
Add more fields to each feed item:
add_filter('cision_map_source_item', function($item, $data, $block_id) {
$item['Header'] = sanitize_text_field($data->Header);
$item['LogoUrl'] = esc_url_raw($data->LogoUrl);
$item['SocialMediaPitch'] = sanitize_text_field($data->SocialMediaPitch);
return $item;
}, 10, 3);
Customize the sorting of the feed items:
add_filter('cision_block_sort', function($items, $block_id) {
usort($items, function($a, $b) {
return $a->PublishDate > $b->PublishDate;
});
return $items;
}, 10, 2);
Add custom attributes to the pager:
add_filter('cision_block_pager_attributes', function(array $attributes, $block_id) {
return array_merge(
$attributes,
array(
'class' => 'custom-class',
'id' => 'custom-id',
)
);
}, 10, 2);
Set a custom class for active pager item:
add_filter('cision_block_pager_active_class', function($class, $block_id) {
return 'custom-class';
}, 10, 2);
To add attributes to the section wrapper in the template:
add_filter('cision_block_wrapper_attributes', function(array $attributes, $block_id) {
return array(
'class' => array(
'custom-class',
),
);
}, 10, 2);
To add attributes to the article wrapper in the template:
add_filter('cision_block_media_attributes', function(array $attributes, $block_id) {
return array(
'class' => array(
'custom-class',
),
);
}, 10, 2);
Add a prefix that will be displayed at the start of the wrapper:
add_filter('cision_block_prefix', function($prefix, $block_id) {
return '
Prefix
';
}, 10, 2);
Add a suffix that will be displayed at the end of the wrapper:
add_filter('cision_block_suffix', function($suffix, $block_id) {
return '
Suffix
';
}, 10, 2);
Resources
A complete list of fields can be found at: https://websolutions.ne.cision.com/documents/P2_Feed.pdf
The following Feed identifier can be used for testing: A275C0BF733048FFAE9126ACA64DD08F
Improvements
If you have any ideas for improvements, don’t hesitate to email me at [email protected] or send me a message on slack.
Support
If you run into any trouble, don’t hesitate to add a new topic under the support section:
https://wordpress.org/support/plugin/cision-block
You can also try contacting me on slack.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Cision Block」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
4.1.0 | 4.2.0 | 4.3.0 | trunk |
延伸相關外掛(你可能也想知道)
Nooz 》Nooz 可以簡化您的新聞稿和媒體報導內容管理。它添加自定義文章類型和精心設計的設置,讓您有靈活性管理公司新聞部分。, , 此外,外掛還提供 [nooz] 短碼,讓...。
B2i Investor Tools 》關於, 全面的投資者關係網站解決方案 - 可以使用 ShortCodes 進行簡化的實現。網站內容自動更新,HTTPS 安全,響應式/適用於移動設備,速度極快,並提供世界...。
Press Release 》一個搭載了免費新聞稿範本的新聞稿編輯器外掛。當你需要撰寫新聞稿時,可以使用這個方便的新聞稿編輯器,專為你的 WordPress 網站或部落格打造。在 WordPress...。
PressRoom by Newswire 》screenshot 4), , PressRoom by Newswire 是一款能幫助您建立一個完全優化的媒體新聞頁面,同時也能幫助您發布和分發新聞稿件的外掛程式。PressRoom 創建了 "...。
Press Page 》這是一個 WordPress 外掛,可顯示一個自訂文章類型的新聞功能,並採用水平滾動方式顯示。, 此外掛使用以下 GitHub 專案:, Smooth-Div-Scroll by tkahn, 示範...。
Tekserve Press Mentions 》您可以輕鬆地創建簡單的自定義文章類型,並在創建時在您的主題中創建功能依存關係。不用擔心!使用此外掛程式創建與主題無關的自定義文章類型,以維護和顯示...。
States Select w\ Associated Press Values for Gravity Forms 》此外掛在 Gravity Forms 表單中添加一項選項,讓你可以使用美聯社(AP)採用的美國州名縮寫。有關美聯社的風格縮寫,如需更多資訊,請參閱此頁:https://en.wik...。
Attach Embeds 》Attach外掛程式可在WordPress文章和頁面中添加Attach社交嵌入。Attach回應功能可讓您的訪客以文字和視頻形式對您的文章進行評論,並可以讓其他人給予他們的評...。