Skip to:
Content
Pages
Categories
Search
Top
Bottom

displaying content if profile field exists


  • onions2578
    Participant

    @onions2578

    whats the code for

    <?php
    $current_user = wp_get_current_user();
    if ( 0 == $xprofile_get_field_data->Field name ) { ?>
        display nothing
    <? } else { ?>
        display field extras 
    <? } 
    ?>
Viewing 1 replies (of 1 total)

  • onions2578
    Participant

    @onions2578

    <?php
    $current_user = bp_loggedin_user_id();
    if ( 0 == $current_user->xprofile_get_field_data( $Field-NaMe) { ?>
        nnnnnnnnnn
    <? } else { ?>
        yyyyyyyyyyyy
    <? } 
    ?>

    this is also not working

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar