This topic contains 11 reply and 2 voices, and was last updated by christophe 5 years, 10 months ago
Viewing 11 Posts - 1 through 11 (of 11 total)
Author Posts
December 1, 2013 at 4:56 pm 13097
christophe hello if i a guest don't fill all the fields how can i do to don't show emty fields, (blank field) in the post ?
December 3, 2013 at 2:59 pm 13195
christophe christophe

how can i customize with css the Custom Fields not in the form but in the post ?
and how to not show the empty field in the post ?

thanks

December 3, 2013 at 3:39 pm 13197
Tareq Hasan Tareq Hasan

Please follow the instruction here if you don’t want to show the empty fields.

December 3, 2013 at 4:29 pm 13205
christophe christophe

thanks but when i do that i have only picture field and post body and
thumbnail post show..

line 653

             } else {
if ( $value ) {
                 $value = get_post_meta( $post->ID, $attr['name'] );
                 $html .= sprintf( '
  • : %s
  • ', $attr['label'], make_clickable( implode( ', ', $value ) ) ); }}
    December 3, 2013 at 4:33 pm 13209
    christophe christophe

    the custom field are not show with this code

    only post body and pictures

    Le 2013-12-03 10:35, weDevs Team a écrit :

    December 3, 2013 at 4:40 pm 13211
    Tareq Hasan Tareq Hasan

    Maybe you edited this wrong, here’s how it should be
    code sample

    December 3, 2013 at 7:36 pm 13217
    christophe christophe

    hello
    I added the code just like you said. In wpuf-functions.php
    Is it possible i give you acces to my site so you can see for yourself?

    but when go to the post page now i see all the empty field with label and :
    i have 25 fields so if my user leave 20 fields empty i have 20 label
    and just 5 with result not very esthetic

    December 3, 2013 at 8:24 pm 13219
    christophe christophe

    in fact if user fill 3 fields and leave 5 blank
    i would like to see only label and content from the 3 fiels filled

    thanks

    December 4, 2013 at 1:54 pm 13269
    christophe christophe

    could you test for me ?

    December 4, 2013 at 3:32 pm 13282
    christophe christophe This reply has been marked as private.
    December 4, 2013 at 4:06 pm 13285
    christophe christophe This reply has been marked as private.
    December 4, 2013 at 5:42 pm 13289
    christophe christophe This reply has been marked as private.
    Viewing 11 Posts - 1 through 11 (of 11 total)