@apluskdesign You used the same function name twice
I think I’m in the opposite boat? I want blocks to be in Preview mode every time a post is loaded, even if the block was in edit mode last time it was saved…
@hube2 Nope, that wasn’t the cause. I deleted the field and started from scratch. Not sure… The fields are repeater sub fields. Not sure.
Anyway, your reply worked 🤷🏼♂️ Thanks!
@hube2 I just figured it out, I think… The field was a Text field when I first created it. I changed it shortly afterwards. Thanks for pointing me in the right direction!
@hube2 I have always used your snippet and it has always worked great. However, now I’m running into an issue (maybe it’s a WP 5.5 thing?)
I’m getting:
Warning: number_format() expects parameter 1 to be float, string given in /functions.php on line 74
Warning: Cannot modify header information – headers already sent by (output started at /functions.php:74) in /wp-includes/pluggable.php on line 1296
Thoughts? (FYI line 74 is $value = number_format($value);)