I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).
If you are new here, please see some information on how to ask for support. Thank you!
-
I am trying to use the Static Wallet shortcode to show balances by calling from php using do_shortcode(). However, it doesn’t display the shortcode, just the outline and the currency code with a balance of 0 is shown. I’ve displayed a screenshot, any ideas what couldbe the cause?
Attachments:
You must be
logged in to view attached files.
Hello,
How are you calling the shortcode?
I tried this and it works:
<?php echo do_shortcode( '[wallets_balance template="static" symbol="BTC"]' ); ?>
Also, could it be that the user you are displaying has 0 balance? If so, then what you show in the screenshot is the expected output.
Let me know please.
I’m using the following from a php snippet that is called by shortcode in the page:
echo do_shortcode( '[wallets_balance template="static" symbol=" ' . $currency . '"]');
I’ve included another screenshot showing that the value is rendered when I include the wallet shortcode in the page directly, but not when it is called from the php snippet.
Attachments:
You must be
logged in to view attached files.
I found the issue – rookie mistake: misplaced space char. Thanks!
Ah, OK! Those nasty spaces! Happens to all of us.
Glad you got it working.
- You must be logged in to reply to this topic.