Title: Replace Index Symbol
Last modified: August 22, 2016

---

# Replace Index Symbol

 *  Resolved [Dongo Bongo](https://wordpress.org/support/users/nexum2000/)
 * (@nexum2000)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/replace-index-symbol/)
 * Hi, I would like to know how can I replace the Indexes Symbol on display page.
   For example ^gspc with S&P500, etc. I supose it can be done with an array but
   I’m not to familiar with coding. Thanks.
 * [https://wordpress.org/plugins/custom-stock-widget/](https://wordpress.org/plugins/custom-stock-widget/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Relevad](https://wordpress.org/support/users/relevad/)
 * (@relevad)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/replace-index-symbol/#post-5701090)
 * Hi Dongo. We’ve had several other users ask for this as well.
    No ETA yet but
   this feature request is definitely high in our queue.
 *  Thread Starter [Dongo Bongo](https://wordpress.org/support/users/nexum2000/)
 * (@nexum2000)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/replace-index-symbol/#post-5701200)
 * Thanks.
 *  Plugin Author [Relevad](https://wordpress.org/support/users/relevad/)
 * (@relevad)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/replace-index-symbol/#post-5701372)
 * I don’t think I ever let you know that this issue is now resolved on the latest
   versions of the stock widget. It will now automatically change `^GSPC` into `
   S&P500`, and `^IXIC` into `NASDAQ`.
 * After updating the stock widget, if there are any other index symbols you would
   like to switch out, it can be done by adding more cases on line 303-304 in stock_widget_display.
   php
 * Something like this:
 *     ```
       elseif($data_item == "^NYA") {$data_item = "NYSE";}
       elseif($data_item == "^ABCD") {$data_item = "Alphabet";}
       ```
   
 * would convert `^NYA` or `^ABCD` into `NYSE` or `Alphabet`, respectively.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Replace Index Symbol’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-stock-widget.svg)
 * [Custom Stock Widget](https://wordpress.org/plugins/custom-stock-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-stock-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-stock-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-stock-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-stock-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-stock-widget/reviews/)

## Tags

 * [string replace](https://wordpress.org/support/topic-tag/string-replace/)

 * 3 replies
 * 2 participants
 * Last reply from: [Relevad](https://wordpress.org/support/users/relevad/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/replace-index-symbol/#post-5701372)
 * Status: resolved