Support Forum » User Profile

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: Critical error #41446
    JoJo
    Participant

    They were up to date. But the problem only happens on a local site. On the site migrated to a liver server, there is no problem anymore.
    Thanks for you rsupport

    in reply to: Price format #40084
    JoJo
    Participant

    I don't see how to delete my post. SO here is how I finally made it work:

    <?php
    $number = rwmb_meta( 'prix_vente_bien' );
    $nombre_format_francais = number_format( $number, 0, ',', ' ' );
    echo $nombre_format_francais;
    ?>

    in the output field. I still wish I could make it work with the sanitize callback though, so if you can spot my mistake I would be very grateful!

    in reply to: Format the output of a number #39465
    JoJo
    Participant

    Thanks for your help,
    here is how I inserted the code:
    https://snipboard.io/QGAcW9.jpg

    And what I get = a number displayed on top of all pages and no formatting of the field:
    https://snipboard.io/XqAiRo.jpg

    Thanks a lot for your support

    in reply to: Format the output of a number #39448
    JoJo
    Participant

    Hi Peter, thanks a lot, the code above doesn't work (I used it with the ID of my custom field). How am I suppose to put it?

    I put it like that:

    <?php 
    $number = rwmb_meta( 'my-custom-fild-id' );
    $nombre_format_francais = number_format( $number, 2, ',', ' ' );
    echo $nombre_format_francais;

    Isn't it suppose to be this way?
    Thanks a lot for your help!

    in reply to: Dynamic post_title #38642
    JoJo
    Participant

    Thanks a lot!
    It works, however, it doesn't if I try to add several fields. Is it possible to do that?
    I wrote it :

    function update_post_title( $post_id ) {
        // Get the field value
        $my_meta = rwmb_meta( 'nb_pieces_bien', 'type_offre_bien', $post_id );
    in reply to: Can't connect a Field Group with a CPT #38604
    JoJo
    Participant

    Thanks a lot!! I wasn't searching with the right query to find the answer in the doc. Thanks for your very fast reply

    in reply to: Can't connect a Field Group with a CPT #38581
    JoJo
    Participant

    Ok, continuing to try and understand what is happening.
    Everything works fine until some point where, if adding a new field, the group is suddenly assigned to post and I can't change that. If I delete the last field added, I can assign the group to the CPT again. Really weird: https://screen.matriarch.ie/app/play/xTvtBEk2#Qqp86nzn

    in reply to: Can't connect a Field Group with a CPT #38579
    JoJo
    Participant

    PS: all the required extensions are installed
    and I don't know if it's related but I can't add a new field into this group. It doesn't save
    https://screen.matriarch.ie/app/play/IlpoPg7h#75Drk3Jv

Viewing 8 posts - 1 through 8 (of 8 total)