Title: BPS_Directory shortcode explanation
Last modified: January 1, 2021

---

# BPS_Directory shortcode explanation

 *  Resolved [mark4carter](https://wordpress.org/support/users/mark4carter/)
 * (@mark4carter)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/bps_directory-shortcode-explanation/)
 * Hello, I’m trying to understand more of what’s going on under the hood with the
   bps_directory (faux) shortcode but having trouble finding how it populates the
   page. I found the function it run does nothing.
 * `add_shortcode ('bps_directory', function() {return '';});`
 * The only other place I saw it being used is in the bps_directories() function,
   but that looks to only list pages that have the shortcode.
 * Can someone give me a little more insight on where the bps_directory functions/
   code is?

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

 *  Plugin Author [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * (@dontdream)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/bps_directory-shortcode-explanation/#post-13854657)
 * Hi Mark,
 * Actually BP Profile Search doesn’t contain code to build a members directory,
   it simply makes BuddyPress believe that any page with [bps_directory] is the 
   standard Members directory and BuddyPress does all the work itself.
 * The filter used is ‘bp_core_get_directory_page_ids’, and the relevant code is
   in the _bps-directory.php_ file.
 *  Thread Starter [mark4carter](https://wordpress.org/support/users/mark4carter/)
 * (@mark4carter)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/bps_directory-shortcode-explanation/#post-13857490)
 * Hello,
 *  Ah, that makes perfect sense now. Thank you, I see it in the original bp-core.

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

The topic ‘BPS_Directory shortcode explanation’ is closed to new replies.

 * ![](https://ps.w.org/bp-profile-search/assets/icon.svg?rev=1568973)
 * [BP Profile Search](https://wordpress.org/plugins/bp-profile-search/)
 * [Support Threads](https://wordpress.org/support/plugin/bp-profile-search/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-profile-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-profile-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-profile-search/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 2 replies
 * 2 participants
 * Last reply from: [mark4carter](https://wordpress.org/support/users/mark4carter/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/bps_directory-shortcode-explanation/#post-13857490)
 * Status: resolved