前言介紹
- 這款 WordPress 外掛「Economic & Market News」是 2020-06-22 上架。
- 目前有 300 個安裝啟用數。
- 上一次更新是 2025-02-28,距離現在已有 65 天。
- 外掛最低要求 WordPress 3.1 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
stockdio |
外掛標籤
country news | economy news | business news | economic news | stock market news |
內容簡介
Stockdio的「經濟與市場新聞」外掛包含插件和小工具,可提供顯示經濟和一般股市新聞的功能,支援20多種不同語言,也允許顯示某些特定國家(目前有超過40個國家可用)的經濟和商業新聞。
若您使用標準的Gutenberg編輯器,最簡單的方法是在「Stockdio財務可視化」類別的區塊庫中使用「經濟與市場新聞」區塊,以將此外掛包含在您的頁面上。
若您使用不同的編輯器或偏好使用短代碼,以下是樣本的參考範例,協助您開始使用。請注意,下面列出的大部分參數都是可選的,也可在外掛設定頁面中使用。您在短代碼中包含的任何參數都將覆蓋在設定頁面中使用的參數。
```
[economic-market-news language="english" width="100%"]
```
如果您想要顯示特定國家的經濟和商業新聞,請使用以下短代碼樣本作為參考。請查閱下面的文件以獲取其他選項的資訊。
```
[economic-market-news language="english" country="uk" width="100%"]
```
如果您正在尋找特定公司或股市指數的新聞,請改用「股市新聞」外掛,該外掛可在以下位置找到:
- Stockdio市場新聞
此外掛是Stockdio財務小工具的一部分,也包括以下外掛:
- Stockdio歷史圖表
- 市場總覽
- 股市報價列表
- 股票市場滾動新聞
以下是短代碼中支援的參數,也可在外掛的設定頁面中使用:
- language:指定新聞的本地語言(選擇性,預設為英語)。可查看www.stockdio.com/news_languages,以獲得可用語言的清單。
- country:如果指定國家(選擇性),將顯示特定國家的商業和經濟新聞,使用所選語言。必須注意某些語言和國家的組合不會返回任何新聞。例如,您可以為美國選擇英語或西班牙語,但只有英文新聞將顯示為英國。可查看www.stockdio.com/news_countries,以獲取目前提供新聞的國家清單。
- countryUsage:決定在指定國家時如何使用國家新聞。支援的值為:Only、Combined和Mixed。Only:僅顯示指定國家的新聞。Combined:顯示國家和一般市場新聞的組合,在頂部優先顯示國家新聞。Mixed:顯示國家和一般市場新聞的混合,按時間順序排序(選擇性,預設為Combined)。
- maxCountryNews:如果已指定國家且國家使用已設置為Combined(顯示國家和市場新聞的組合),您可以控制在顯示一般市場新聞之前在列表頂部顯示的國家新聞的最大數量。
- width:列表的寬度,以像素或%表示(預設為100%)。
- height:列表的高度(以像素為單位,預設為無)。如果未指定,列表的高度將自動適應內容。
原文外掛簡介
Stockdio’s Economic & Market News contains a plugin and a widget that provide the means to display a list of economic and general stock market news, natively available in over 20 different languages. It also allows to display economic and business news for some specific countries (more than 40 countries are currently available).
If you’re using the standard Gutenberg editor, the easiest way to include this plugin on your page is using the Economic & Market News block, which is included in the Stockdio Financial Visualizations category of the block library.
If you’re using a different editor o prefer to use the shortcode, below is a sample to help you start. Please be aware that most of the parameters listed below are optional, and are also available through the plugin’s settings page. Any parameter you include in the shortcode will overwrite the parameter used in the settings page.
[economic-market-news language="english" width="100%"]
If you want to display economic and business news for a particular country, use the following shortcode as a reference. Please review the documentation below for additional options.
[economic-market-news language="english" country="uk" width="100%"]
If you’re looking for news of a particular company or index in the stock market, please use the Stock Market News plugin instead, available at:
Stockdio Market News
This plugin is part of the Stockdio Financial Widgets, which also includes the following plugins:
Stockdio Historical Chart
Stock Market Overview
Stock Quotes List
Stock Market Ticker
Stockdio Market News
The following parameters are supported in the shortcode and also available through the plugin’s settings page:
language: Specifies the native language for the news (optional, default is English). For a list of available languages please visit www.stockdio.com/news_languages.
country: If country is specified (optional), business and economic news for the specific country will be displayed, using the language selected. You must be aware that some combinations of language and country will not return any news. For example, you can select language English or Spanish for the United States, but for United Kingdom only English news will be displayed. For a list of countries for which we currently provide news please visit www.stockdio.com/news_countries.
countryUsage: Determines how to use country news when a country is specified. The values supported are: Only, Combined and Mixed. Only: displays only news for the specified country. Combined: displays a combination of country and general market news, prioritizing country news at the top. Mixed: displays a mix of country and general market news, sorted chronologically (optional, default is Combined).
maxCountryNews: If a country is specified and Country Usage is set to Combined, which shows a combination of country and market news, you can control the maximum number of country news to display at the top of the list, before showing general market news.
width: Width of the list in either px or % (default: 100%).
height: Height of the list in pixels (default: none). If not specified, the list height will be calculated automatically.
title: Allows to specify a title for the list, e.g. News (optional).
includeImage: Allows to include/exclude the news image, if available. Use includeImage=false to hide the image (optional).
imageWidth: Specify the image width in pixels (if available). The image may be partially clipped and centered, depending on the original image dimensions and specified height, to maintain the image’s aspect ratio (optional).
imageHeight: Specify the image height in pixels (if available). The image may be partially clipped and centered, depending on the original image dimensions and specified width, to maintain the image’s aspect ratio (optional).
includeDescription: Allows to include/exclude the news description, if available. Use includeImage=false to hide the description (optional).
maxDescriptionSize: Allows to set the maximum number of characters to display in the description, if available. By default, an estimate of the number of characters to display is calculated based on the image height and display width, but this may not be totally accurate, and a manual setting might be required (optional).
maxItems: Allows to set the maximum number of news items to be displayed (optional, default: 10).
motif: Design used to display the visualization with specific aesthetics, including borders and styles, among other elements (optional). For a list of available motifs please visit www.stockdio.com/motifs.
palette: Includes a set of consistent colors used for the visualization (optional). For a list of available palettes please visit www.stockdio.com/palettes.
font: Allows to specify the font that will be used to render the chart. Multiple fonts may be specified separated by comma, e.g. Lato,Helvetica,Arial (optional).
filterSources: Allows to filter news from a list of sources, separated by colon (;). For example, setting the value to Seeking Alpha;Yahoo Finance will only display news that come from any of these sources.
ignoreSources: Allows to ignore news coming from a list of sources, separated by colon (;). For example, setting the value to Seeking Alpha;Yahoo Finance will ignore news that come from any of these sources.
ignoreItems: Allows to ignore news items that start or contain the text specified in a list, separated by colon (;). If the text in the list starts with *, the news item will be ignored if it contains the text anywhere inside its title; otherwise, the news item will be ignored if it starts with the specified text. For example, setting the value to canada;*share price, will ignore any news whose title starts with the word Canada or contains the phrase share price. It is not case sensitive.
loadDataWhenVisible: Allows to fetch the data and display the visualization only when it becomes visible on the page, in order to avoid using calls (requests) when they are not needed. This is particularly useful when the visualization is not visible on the page by default, but it becomes visible as result of a user interaction (e.g. clicking on an element, etc.). It is also useful when using the same visualization multiple times on a page for different devices (e.g. using one instance of the plugin for mobile and another one for desktop). We recommend not using this by default but only on scenarios as those described above, as it may provide the end user with a small delay to display the visualization (optional).
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Economic & Market News」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。