bp_ps_show_directory( $attr, $content )
Output BuddyBoss Profile Search directory template.
Description
Source
File: bp-core/profile-search/bps-directory.php
function bp_ps_show_directory ($attr, $content)
{
ob_start ();
if (bp_ps_debug ())
{
echo "<!--\n";
print_r ($attr);
print_r (bp_ps_hidden_filters ());
echo "-->\n";
}
if (isset ($attr['order_by']))
bp_ps_set_sort_options ($attr['order_by']);
$template = isset ($attr['template'])? $attr['template']: 'members/index';
bp_ps_call_template ($template);
if (bp_get_theme_package_id () == 'nouveau')
{
printf ('<p class="bp-ps-error">'. __('%s: The shortcode [bp_ps_directory] is not compatible with the Nouveau template pack.', 'buddyboss'). '</p>',
'<strong>BP Profile Search '. bp_get_version(). '</strong>');
}
return ob_get_clean ();
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.