Hi Eric,
This currently isn’t an option. The plugin would have to be changed.
Maybe the round attribute should support additinal string values “up” and “down”?
Hey Joost,
Good suggestion. I could do this via the ceil(x) functionality as well but how do I get the value only without any html markup. Does the plugin allow this?
Hi Eric,
You can always use ceil(do_shortcode('[shortcode with correct attributes to only return the number]'))
see http://codex.ww.wp.xz.cn/Function_Reference/do_shortcode
Re-reading your question and my answer, it’s not a correct answer!
The shortcode will always output the currency and format the number localized (with thousands and decimal seperators).
I’ll look into it…
Hi Eric,
I’ve updated the plugin so you can now call the convertor staticly from PHP. Not on ww.wp.xz.cn yet, but available at https://github.com/joostdekeijzer/wp_eurofxref/tree/static-convert
<?php $process_later = EuroFxRef::convert( $amount, $from, $to ); ?>
Could you please test it?
Hi Joost,
Perfect Bedankt :), Thanks
This works perfectly and exactly what I needed.
Eric
code is now in git master branch and published as version 1.3
hi Joost,
i’m using <?php $process_later = EuroFxRef::convert( $amount, $from, $to ); ?> and it works fine.
there are more parameters in the php version? i need the different dots and comma for the different currencies to round and paste it properly.
thanx for your work, erich not eric 😉