First, you may want to consider using the WP toolbar (which features full BP integration), because the BP BuddyBar will not continue to be supported in future versions of BP. (It will probably still work, but it won’t be actively upgraded.) Flip the Toolbar on by putting define( 'BP_USE_WP_ADMIN_BAR', true );
into your wp-config.php
file. For more on customizing the Toolbar, a nice starting place is here: http://wp.smashingmagazine.com/2012/03/01/inside-the-wordpress-toolbar/
Second, if you are going to stick with the BuddyBar for now, you should just be able to create the dropdowns by putting nested <ul>
elements into your main button <li>
s:
echo '<li><a href="https://wordpress.stackexchange.com/forums/">Agent Forums</a>';
echo '<ul>';
echo '<li><a href="#">Item One</a></li>';
echo '<li><a href="#">Item Two</a></li>';
echo '</ul>';
echo '</li>';
Related Posts:
- Remove username in emails or swap username for email
- Help with adding pagination to custom wp_query
- Reordering Buddy Press profile navigation [closed]
- Show css depending on activity type in BuddyPress activity-loop [closed]
- Making BuddyPress Activity Stream (Post Type) Featured Images Clickable [closed]
- How do I programmatically set a user as spam in BuddyPress? [closed]
- WordPress Stripping Colons?
- Buddypress update user avatar image via REST
- After adding my website to a new server, I keep getting a unexpected end of file error, but the file is identitcal to it’s original source
- Why BuddyPress fields not saving?
- Change homepage content if user is logged in – BuddyPress
- How to do something when user profile rendereing?
- implementing a jQuery “click to expand” link in WordPress [closed]
- is user member of a group, show them categories [closed]
- Wp favorites posts by specific category? [closed]
- Display multi-select box choices in a bullet list [closed]
- Prevent Buddypress Rewrite Rules on Non-Buddypress pages/posts
- copy fields value to another field
- How do I visualize the author’s post from the front end?
- Change username link in admin bar
- how to get buddy press messages based on thready_id?
- Where is the php file of single member profile view (BuddyPress)
- Create a dynamic buddupress tab
- Get string from array and start loop [closed]
- 2 small questions: How to redirect to a created page & show that pages title in wp, bp
- count() parameter must be an array or an object that implements countable in laravel
- Allowed memory size of 268435456 bytes exhausted (tried to allocate 7146491840906359738 bytes)
- Receiving Stripe Webhooks on a wordpress website
- Sorting list of sites from multisite network using wp_get_sites
- Remove Customize Background and Header from Appearance admin menu without CSS or JS
- How to validate WordPress generated password in DB using PHP?
- How do I get the author’s page url from their ID?
- How can I set custom order use this function
- How to set a link different behavior for logged and non-logged user?
- How does WP detect format type (and can I make use of this)?
- How to generate HMAC-SHA1 signature to use with WP REST API and OAuth1
- How to send user data in json format to another server when user register on wordpress site in PHP
- Ajax form submit within a Post Metabox
- How to Display Image Meta underneath EVERY image in EVERY post
- Trying to implement Ajax comments in WordPress, getting WP error
- SQL QUERY – Select a value directly from the database
- Fetch posts from category in custom page template
- How do you use WP slugs for PDF files / media?
- Nesting if statements to echo only one string based on what tag was filtered?
- How to properly loop through these external URLs to get them into the sitemap using this hook
- Set the checkbox as checked by default at options page
- Input type search in Menu
- WP_Query adds “(wp_posts.ID = ‘0’)” so no results are returned
- Custom shortcode outputs plain text instead of HTML at top of post
- how can i use $_COOKIE[] + PostID to execute the below code?
- Gravity form built in Captcha
- Autocomplete search box
- How do I display the main domain for my WordPress install?
- WordPress Scripts Being Loaded in Footer
- You do not have sufficient permissions to access this page while making a plugin
- How to let users change site language?
- Headers already sent in Pluggable.php / homepage and wp-login error
- Unique session WordPress
- get_users meta_query: REGEXP not working for matching new lines
- How to fix “Object of class WP_Term could not be converted to string”?
- Started getting warning message following host’s PHP upgrade
- Where does “rel=0” get removed from my YouTube parameters?
- Custom array from a query only write the last row of the query
- Only show image from custom field when present
- PHP if statement works in template files, but not header
- How do I populate custom field with current user role in Woocommerce [closed]
- Large WordPress CRON job
- WordPress query undefined offset in loop
- Divi change project category slug
- When echo follow Ajax button inside Ajax pagination template not working?
- jQuery Ajax PHP function call returning [object Object]
- Can’t upload CSV file to plugin directory using custom upload form in admin panel
- Add category to post meta
- In WordPress, I want to run a loop to get posts in tabular format
- Automatically generator a WordPress installation on my subdomain
- Can I remove or edit an include() from a function with a filter?
- Get URL of Featured Image After wp_insert_post()
- WP_Query() load selected post
- custom stripe plugin
- Call to undefined function error in plugin
- Creating a Category Taxonomy
- Query pulling a single post per month
- Getting a WordPress tag to print inside of a traditional php echo
- How to add a custom filter (by coding) before access one wordpress page ? And where to call the custom filter?
- Search by date in WordPress
- Site cannot access external connection
- Call WP Rest-Api to GET /users/me returned NOTHING in console
- Invalid Argument foreach
- How to Link to category titles if it is in the single post content?
- How to add a PHP scripts into WordPress
- How to generate customized filtered output for the gallery
- Multisite – Display different header content based on which site is accessed
- List categories assigned to a post
- Call get_template_part() custom permalink
- php string inside shortcode does not work
- How to pass username into form that sends data to database
- Change body_class() PAGE to HOME
- Pagination 404 on my index.php
- WP Fatal error: Call to undefined function get_template_directory_uri()
- how to display tables via ajax