Title: Feature request: block/shortcode for dropdown menu links
Last modified: February 5, 2025

---

# Feature request: block/shortcode for dropdown menu links

 *  Resolved [aaylasecura](https://wordpress.org/support/users/aaylasecura/)
 * (@aaylasecura)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/feature-request-block-shortcode-for-dropdown-menu-links/)
 * Hi there, thank you for the great plugin. I’d like to request a shortcode (and
   optionally block) for displaying the account sidebar as a simple list of links
   that can be inserted in a menu for example. Apologies if there’s already one 
   like that but I couldn’t find it.

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

 *  [alexrollin](https://wordpress.org/support/users/alexrollin/)
 * (@alexrollin)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/feature-request-block-shortcode-for-dropdown-menu-links/#post-18292796)
 * Hello!
 * Usually we see people just link to /account/ as the URL and then people can click
   into the one they want.
 * I think you should be able to add any of them you want – just click on them, 
   and copy it from the browser address bar.
 * Create a new menu ‘custom link’ and paste in the URL you copied.
 * Does that work for you?
 *  Thread Starter [aaylasecura](https://wordpress.org/support/users/aaylasecura/)
 * (@aaylasecura)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/feature-request-block-shortcode-for-dropdown-menu-links/#post-18292984)
 * Hi there, thank you for replying. I had thought about doing this, but I wanted
   it to be “dynamic” in the sense that if you add or remove or change any of the
   sidebar items, I wouldn’t have to change the menu I’ve manually created. Hence
   I wanted a shortcode/block that does the same as the full account page except
   it only shows the sidebar links (and ideally a login link if the user is not 
   logged in). If you think that’s not too difficult, I’d love for this feature 
   to be implemented 🙂
 *  [alexrollin](https://wordpress.org/support/users/alexrollin/)
 * (@alexrollin)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/feature-request-block-shortcode-for-dropdown-menu-links/#post-18296004)
 * Hello,
 * This is a customization you can undertake if you have some developer skills.
 * You can create your own shortcode, uing <?php do_action( ‘uwp_account_menu_display’);?
   > action in your shortcode. Output that to display all the account menu items.
   Let us know if it helps or not.
 *  Thread Starter [aaylasecura](https://wordpress.org/support/users/aaylasecura/)
 * (@aaylasecura)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/feature-request-block-shortcode-for-dropdown-menu-links/#post-18313125)
 * Thank you, using that action indeed solves my problem 🙂
 *  Thread Starter [aaylasecura](https://wordpress.org/support/users/aaylasecura/)
 * (@aaylasecura)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/feature-request-block-shortcode-for-dropdown-menu-links/#post-18313200)
 * Oh, for the record, for anyone wanting to implement this, define a custom shortcode
   like this (name it whatever you want obviously):
 *     ```wp-block-code
       add_shortcode('_uwp_account_tabs', function () {	ob_start();	do_action('uwp_account_menu_display');	return ob_get_clean();});
       ```
   
 * And then you need some CSS overriding to make “Edit account” clickable again 
   and to always show it as column. For example add class “profile-menu” to the 
   parent element containing the shortcode and define:
 *     ```wp-block-code
       .profile-menu .nav-link.active:not([data-bs-toggle='dropdown']) {  cursor: pointer;  pointer-events: auto;}.profile-menu ul {  flex-direction: column !important;}
       ```
   
    -  This reply was modified 1 year, 3 months ago by [aaylasecura](https://wordpress.org/support/users/aaylasecura/).

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

The topic ‘Feature request: block/shortcode for dropdown menu links’ is closed to
new replies.

 * ![](https://ps.w.org/userswp/assets/icon-256x256.png?rev=2784318)
 * [UsersWP - Front-end login form, User Registration, User Profile & Members Directory plugin for WP](https://wordpress.org/plugins/userswp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/userswp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/userswp/)
 * [Active Topics](https://wordpress.org/support/plugin/userswp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/userswp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/userswp/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [aaylasecura](https://wordpress.org/support/users/aaylasecura/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/feature-request-block-shortcode-for-dropdown-menu-links/#post-18313200)
 * Status: resolved