Forum Replies Created
-
AuthorPosts
-
Jo
ParticipantThey 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 rsupportJo
ParticipantI 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!
Jo
ParticipantThanks for your help,
here is how I inserted the code:
https://snipboard.io/QGAcW9.jpgAnd what I get = a number displayed on top of all pages and no formatting of the field:
https://snipboard.io/XqAiRo.jpgThanks a lot for your support
Jo
ParticipantHi 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!Jo
ParticipantThanks 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 );Jo
ParticipantThanks a lot!! I wasn't searching with the right query to find the answer in the doc. Thanks for your very fast reply
Jo
ParticipantOk, 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#Qqp86nznJo
ParticipantPS: 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 -
AuthorPosts