Title: quantlego's Replies | WordPress.org

---

# quantlego

  [  ](https://wordpress.org/support/users/quantlego/)

 *   [Profile](https://wordpress.org/support/users/quantlego/)
 *   [Topics Started](https://wordpress.org/support/users/quantlego/topics/)
 *   [Replies Created](https://wordpress.org/support/users/quantlego/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/quantlego/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/quantlego/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/quantlego/engagements/)
 *   [Favorites](https://wordpress.org/support/users/quantlego/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Alipay For WooCommerce] 请教从数据库提取汇率](https://wordpress.org/support/topic/%e8%af%b7%e6%95%99%e4%bb%8e%e6%95%b0%e6%8d%ae%e5%ba%93%e6%8f%90%e5%8f%96%e6%b1%87%e7%8e%87/)
 *  Thread Starter [quantlego](https://wordpress.org/support/users/quantlego/)
 * (@quantlego)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/%e8%af%b7%e6%95%99%e4%bb%8e%e6%95%b0%e6%8d%ae%e5%ba%93%e6%8f%90%e5%8f%96%e6%b1%87%e7%8e%87/#post-6621808)
 * Finally I got the exchange rate by defining a custom shortcode [exchangerate]
 * function get_exchange_rate($atts) {
    $obj = new WC_Alipay; return $obj->exchange_rate;}
   add_shortcode(“exchangerate”, “get_exchange_rate”);
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Alipay For WooCommerce] 请教从数据库提取汇率](https://wordpress.org/support/topic/%e8%af%b7%e6%95%99%e4%bb%8e%e6%95%b0%e6%8d%ae%e5%ba%93%e6%8f%90%e5%8f%96%e6%b1%87%e7%8e%87/)
 *  Thread Starter [quantlego](https://wordpress.org/support/users/quantlego/)
 * (@quantlego)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/%e8%af%b7%e6%95%99%e4%bb%8e%e6%95%b0%e6%8d%ae%e5%ba%93%e6%8f%90%e5%8f%96%e6%b1%87%e7%8e%87/#post-6621807)
 * Finally I got the exchange rate by creating a custom shortcode [exchangerate]:
 * `
    function get_exchange_rate($atts) { $obj = new WC_Alipay; return $obj->exchange_rate;}
   add_shortcode("exchangerate", "get_exchange_rate");
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Alipay For WooCommerce] 请教从数据库提取汇率](https://wordpress.org/support/topic/%e8%af%b7%e6%95%99%e4%bb%8e%e6%95%b0%e6%8d%ae%e5%ba%93%e6%8f%90%e5%8f%96%e6%b1%87%e7%8e%87/)
 *  Thread Starter [quantlego](https://wordpress.org/support/users/quantlego/)
 * (@quantlego)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/%e8%af%b7%e6%95%99%e4%bb%8e%e6%95%b0%e6%8d%ae%e5%ba%93%e6%8f%90%e5%8f%96%e6%b1%87%e7%8e%87/#post-6621789)
 * 在补充一下，我估计您的意思是把汇率某个值直接写到wp_options表里。
 * 我现在在使用Alipay for Woocommerce插件，在插件设置里面，假设我已经设置了美元和
   人民币之间的汇率为6.4，因此插件已经把这个6.4写到数据库里了。 我现在想要做的，
   就是从数据库里面把这个6.4读取出来，而不是直接把已知的6.4数值直接写入wp_options.
 * 另外，您说的修改模板显示人民币价格，麻烦您能不能告诉用什么PhP函数来读取您的插
   件设置的这个值？如果知道怎么用PhP读这个汇率值，也许我可以写一个shortcode来直接
   显示人民币价格。
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Alipay For WooCommerce] 请教从数据库提取汇率](https://wordpress.org/support/topic/%e8%af%b7%e6%95%99%e4%bb%8e%e6%95%b0%e6%8d%ae%e5%ba%93%e6%8f%90%e5%8f%96%e6%b1%87%e7%8e%87/)
 *  Thread Starter [quantlego](https://wordpress.org/support/users/quantlego/)
 * (@quantlego)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/%e8%af%b7%e6%95%99%e4%bb%8e%e6%95%b0%e6%8d%ae%e5%ba%93%e6%8f%90%e5%8f%96%e6%b1%87%e7%8e%87/#post-6621788)
 * 我用Phpmyadmin查看数据库，Alipay插件已经把汇率写到数据库里了，仿佛是JSON格式存在
   那里。请教该如何把那个已经在数据库的汇率值提取出来，然后再存储到wp_options表里？
   我是需要用filter来实现吗？
 * 非常感谢指导！
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [the plugin search box in admin does not work](https://wordpress.org/support/topic/urgent-the-plugin-search-box-in-admin-does-not-work/)
 *  Thread Starter [quantlego](https://wordpress.org/support/users/quantlego/)
 * (@quantlego)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/urgent-the-plugin-search-box-in-admin-does-not-work/#post-6151902)
 * I deactivate all and then reactive all, now it works!
 * Thanks a lot Tara.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Smooth Slider] Slides stacking](https://wordpress.org/support/topic/slides-stacking/)
 *  [quantlego](https://wordpress.org/support/users/quantlego/)
 * (@quantlego)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/slides-stacking/#post-5013054)
 * Myfooter.php contains
 * <?php wp_footer(); ?>
 * But the images still stacked. I am using the ‘Responsive Mobile’ theme by CyberChimps.
 * Can you help me to fix the issue? Thanks a lot.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Quick Featured Images] Can't Remove Featured Image Column](https://wordpress.org/support/topic/cant-remove-featured-image-column/)
 *  [quantlego](https://wordpress.org/support/users/quantlego/)
 * (@quantlego)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/cant-remove-featured-image-column/#post-5510688)
 * I have same issue, and deactivated the plugin, WIll resume using it when the 
   bug is fixed.
 * Thank you very much for providing this great plugin.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Extended Table of Contents (with nextpage support)] TOC links not work](https://wordpress.org/support/topic/toc-links-not-work/)
 *  Thread Starter [quantlego](https://wordpress.org/support/users/quantlego/)
 * (@quantlego)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/toc-links-not-work/#post-4316431)
 * Here is my page using extended TOC.
 * [http://www.quantlego.com/knowledge/economics-basics-tutorial](http://www.quantlego.com/knowledge/economics-basics-tutorial)
 * As you can see, click to page 2 does not go to page 2, but still staying in first
   page.

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