• Resolved Rami

    (@ramirocastro)


    Hi guys, how to make the EMPTY fields visible (no content)?

    so far it’s showing on those fields with some content.

    I tried removing the ‘<?php if ( bp_field_has_data() ) : ?>’ from buddypress profile-loop.php, but it seems that it’s not enough.

    is there something to be done in your plugin, or it’s purely a buddypress plugin change?

    Cheers from London
    Ramiro.

    http://ww.wp.xz.cn/extend/plugins/buddypress-xprofile-custom-fields-type/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author donmik

    (@atallos)

    Hi,

    Sorry for the delay. I think this post will help you.

    You can do this in the profile-loop, doing this:

    <?php if ( bp_has_profile(array('hide_empty_fields' => 0)) ) : ?>

    It will show all your fields even if they are empty.

    You need also to delete the if you commented

    <?php if ( bp_field_has_data() ) : ?>

    Thread Starter Rami

    (@ramirocastro)

    Thank you Donmik, no worries.

    Yes I found the same solution and it worked great, thanks anyway 🙂

    Cheers
    Ramiro.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Show empty fields’ is closed to new replies.