简体   繁体   中英

How to round up the_field PHP Wordpress

How can I round up the below code in Advanced Custom Fields code in Wordpress?

<?php the_field('estimate'); ?>

ceil(...) rounds up .

echo ceil((int)get_field('estimate'));

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM