How to display a submenu as a popup when clicking a button?

  1. Make a button and a div on the page template
  2. Make the button toggle the visibility of the div
  3. When the div is toggled to be visible, have it populated by a WP_Query that fills it with menu items.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)