Support » Plugin: Stock Quote » Display stock symbol, current price and % change

  • Resolved FTI

    (@varioso)


    Nice plugin, thank you.

    Just installed and wondering if there is a way to display only:

    – stock symbol,
    – current price
    – percentage change (without value change in pts)

    Also, is it possible to wrap the quotes in brackets in the text?

    Maybe I’ll need to change the plugin code which is fine but I’d be grateful if you could point me which lines to edit.

    I know a similar question has been asked before but apparently, there’s been some changes to the code, so the answer you provided earlier (below for reference) doesn’t seem to work anymore.

    Cheers! 🙂

    Earlier answer form 2+ years ago:
    “If you edit stock-quote.php file and change line 408 (defined value for $quote_text variable), you can achieve what you need.”

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey @varioso,

    Thank you for choosing Stock Quote plugin!
    As now we have template shortcode parameter, please let me know does this work for you:

    [stock_quote symbol="BABA" template="%exch_symbol% %price% (%changep%)"]

    This will print stock quote like this:
    BABA 172,1350 (-2,7376%)

    Cheers,
    Aleksandar

    Hey Aleksandar,

    Thanks so much. That works like a charm.

    Cheers.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.