Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Error: Missing argument 2 for wpdb::prepare

@henrywright-1

Member

@macpresss

Take a look at this page to see the parameters accepted:

Profile Fields Loop

Perhaps try using profile_group_id:

By default all groups and all fields will be displayed. If you provide the ID of a profile field group, then only the fields in this group will be displayed

So it would be:

if ( bp_has_profile( 'profile_group_id=2' ) ) :

Where 2 is the ID(s) of the group you’d like to include. I think it should take a comma separated list but I haven’t tested.

Skip to toolbar