Home Forums Plugin Support WP User Frontend (Free Version) don't show empty fields

This topic is: not resolved

This topic contains 11 replies, has 2 voices, and was last updated by  christophe 5 years, 5 months ago.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #13097

    christophe
    Member
    Post count: 18

    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 ?

    #13195

    christophe
    Member
    Post count: 18

    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

    #13197

    Tareq Hasan
    Keymaster
    Post count: 2831

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

    #13205

    christophe
    Member
    Post count: 18

    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 ) ) ); }}
    #13209

    christophe
    Member
    Post count: 18

    the custom field are not show with this code

    only post body and pictures

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

    #13211

    Tareq Hasan
    Keymaster
    Post count: 2831

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

    #13217

    christophe
    Member
    Post count: 18

    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

    #13219

    christophe
    Member
    Post count: 18

    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

    #13269

    christophe
    Member
    Post count: 18

    could you test for me ?

    #13282

    christophe
    Member
    Post count: 18
    This reply has been marked as private.
    #13285

    christophe
    Member
    Post count: 18
    This reply has been marked as private.
    #13289

    christophe
    Member
    Post count: 18
    This reply has been marked as private.
Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘don't show empty fields’ is closed to new replies.