Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • kgrondell
    Participant

    @kgrondell

    I figured it out.

    $args = array(
    'profile_group_id'   => $current_profile_group_id
    	);
    $data_groups = BP_XProfile_Group::get( $args );
    echo '<h1>'.$data_groups[0]->name.'</h1>';
    echo '<p>'.'It looks like you have not given any responses here yet.'.'</p>';

    I added a counter var in the loop which initializes to 0 if after passing through the loop its 0 it will execute this.


    kgrondell
    Participant

    @kgrondell

    Interesting option but they want to have a link that previews the answers. So in that section I will display “profile group title” and some sort of user friendly “no records found”

    I was hoping it would work like get_title or get_posts and you could pass the id but that’s not how it works.

    I suspect I will do a wp_query of at the top and use the page group id to key the title from the results. I was just wondering if there was a cleaner or more appropriate way to get this.


    kgrondell
    Participant

    @kgrondell

    I was able to do this by altering /members/single/home.php

    Change line: bp_get_template_part( ‘members/single/settings’ );

    To

    bp_get_template_part( ‘members/single/settings/general’ );

    It will pull in the email part but not the notifications.

    I made other changes and had to add in do_action( ‘template_notices’ );
    because the notifications had been removed but you may not have to.

    Another option would be to edit the settings.php file in members/single and factor out the bp_get_options_nav(); if case ‘general’

Viewing 3 replies - 1 through 3 (of 3 total)
Skip to toolbar