前言介紹
- 這款 WordPress 外掛「Stock Market News」是 2017-01-15 上架。
- 目前有 700 個安裝啟用數。
- 上一次更新是 2025-02-28,距離現在已有 64 天。
- 外掛最低要求 WordPress 3.1 以上版本才可以安裝。
- 有 3 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
stockdio |
外掛標籤
market | stocks | stock news | financial news | stock market news |
內容簡介
這個外掛能輕鬆地顯示一份給定證券交易所和代號的公司新聞和股票新聞清單,支援超過65種不同的證券交易所和大量市場指數、貨幣和商品。
如果你正在使用標準的Gutenberg編輯器,最簡單的方法是使用Company&Stock News區塊,在Stockdio Financial Visualizations類別中包括它。
如果您使用不同的編輯器或喜歡使用shortcode,以下是一個樣本以幫助您開始。請注意,下面列出的大多數參數都是可選的,並且也可以通過外掛的設置頁面使用。您在shortcode中包含的任何參數都將覆蓋在設置頁面中使用的參數。
[stock-market-news symbol="AAPL" stockExchange="NYSENasdaq" width="100%"]
如果您正在尋找經濟和一般市場新聞,請改用Economic&Market News外掛程式,該程式可在以下網址中找到:
Economic & Market News
此外掛是Stockdio Financial Widgets的一部分,該部分還包括以下外掛程式:
Stockdio Historical Chart
Stock Market Overview
Stock Quotes List
Stock Market Ticker
Economic & Market News
以下參數支援shortcode,也可通過外掛程式的設置頁面使用:
stockExchange: 證券交易所(可選)股票所屬的市場。如果未指定,則默認使用NYSE / NASDAQ。如需可用交易所清單,請訪問www.stockdio.com/exchanges。
symbol: 公司的股票代號(例如AAPL)或市場指數代號(例如^ SPX)。如需可用市場指數清單,請訪問www.stockdio.com/indices。
width: 清單的寬度,以px或%為單位(默認值:100%)。
height: 清單的高度(像素)(默認值:無)。如果未指定,清單高度將自動計算。
title: 允許為清單指定標題,例如新聞(可選)。
culture: 允許指定語言和國家/地區設置的組合,用於顯示文本以及格式化數字和日期,例如西班牙語-西班牙(可選)。有關可用文化組合的清單,請訪問http://www.stockdio.com/cultures。
includeImage: 如果可用,允許包含/排除新聞圖像。使用includeImage = false隱藏圖像(可選)。
imageWidth: 指定圖像寬度(如果可用)。根據原始圖像尺寸和指定的高度,在圖像的中心剪裁和居中顯示圖像,以維持圖像的寬高比(可選)。
imageHeight: 指定圖像高度(如果可用)。根據原始圖像尺寸和指定的寬度,在圖像中心剪裁和居中顯示圖像,以維持圖像的寬高比(可選)。
includeDescription: 如果可用,允許包含/排除新聞描述。使用includeDescription = false隱藏描述(可選)。
maxDescriptionSize: 如果可用,允許設置要在描述中顯示的最大字符數。默認情況下,根據圖像高度和顯示寬度估計要顯示的字符數。
原文外掛簡介
Easily display a list of company and stock news, for any given stock exchange and symbol. Over 65 different stock exchanges and a large number of market indices, currencies and commodities are supported.
If you’re using the standard Gutenberg editor, the easiest way to include this plugin on your page is using the Company & Stock News block, which is included in the Stockdio Financial Visualizations category.
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.
[stock-market-news symbol="AAPL" stockExchange="USA" width="100%"]
If you’re looking for economic and general markets news, please use the Economic & Market News plugin instead, available at:
Economic & 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
Economic & Market News
The following parameters are supported in the shortcode and also available through the plugin’s settings page:
stockExchange: The exchange market the symbol belongs to (optional). If not specified, NYSE/NASDAQ will be used by default. For a list of available exchanges please visit www.stockdio.com/exchanges.
symbol: The company’s stock symbol (ex. AAPL) or market index ticker (ex. ^SPX). For a list of available market indices please visit www.stockdio.com/indices.
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).
culture: Allows to specify a combination of language and country settings, used to display texts and to format numbers and dates, e.g. Spanish-Spain (optional). For a list of available culture combinations please visit http://www.stockdio.com/cultures.
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).
includeRelated: Allows to include general market news in the list, not including the symbol’s company, if available.
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 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Stock Market News」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.8.1 |
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。