'Loop with multiple custom field in different div with bootstrap 5

Ok guys. This is the first time I've posted here on stackoverflow. I think it's not such an impossible thing. My client would like this page here, which I did in html5 and php via wordpress, to become interactive through the custom fields. what the client want I searched for many guides for a day, but I found nothing. I would therefore need a code where the customer through the wordpress management system can load the custom fields and the gray blocks with the custom fields appear on the screen. I tried this code, but to no avail:

<div class="col-lg-3 col-md-4 col-sm-6">
    <div class="bg_light_grey block_informazioni mx-auto info mb-5">
      <div class="block_informazioni_child">
        <i class="far fa-dot-circle dark_blue"></i>
        <h3 class="semibold dark_blue mt-2">
         <?php echo "".get_name($post->ID,'',true); ?>
        </h3>
        <h4 class="regular dark_blue">
          <?php echo "".get_post_meta($post->ID,'',true); ?>
        </h4>
      </div>
    </div>
  </div>


Solution 1:[1]

I cannot use setprecision(2) here because I am not writing out the transaction to the console yet.

Yes you can use it. Just use std::ostringstream:

std::string Transaction::toString() {
    std::ostringstream fullString;
    fullstring << "-- " << desc << ": -\x9c" << std::setprecision(2) << value << " on " << timestamp;
    return fullString.str();
}

If you use C++20 or later you can use std::format

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Slava