WordPress custom dropdown listings

Populate your data something like this and and you can use Javascript/jQuery to achieve this. <select class=”apple_store_location”> <option value=”1″ data-url=”http://mysiteurl.com/1″> Place 1</option> <option value=”2″ data-url=”http://mysiteurl.com/2″> Place 2</option> <option value=”3″ data-url=”http://mysiteurl.com/3″> Place 3</option> <option value=”4″ data-url=”http://mysiteurl.com/4″> Place 4</option> <option value=”5″ data-url=”http://mysiteurl.com/5″> Place 5</option> <option value=”6″ data-url=”http://mysiteurl.com/6″> Place 6</option> <option value=”7″ data-url=”http://mysiteurl.com/7″> Place 7</option> </select> <script> //Using … Read more

How to use wp_nav_menu to create custom dropdown menu?

Use wp_nav_menu() with proper parameters to add the dropdown-menu forAnimate class, to remove the wrapper and to add the role attribute: <ul class=”nav navbar-nav”> <li class=”active”><a href=”https://wordpress.stackexchange.com/questions/255497/index.html”>Home</a></li> <li><a href=”category.html”>Category Page</a></li> <li><a href=”article.html”>Article Page</a></li> <li class=”dropdown”> <a href=”#” class=”dropdown-toggle” data-toggle=”dropdown”> Category Type A <span class=”caret”></span></a> <?php wp_nav_menu(array( ‘menu’ => ‘my_menu_name’, // specify the menu name ‘menu_class’ … Read more

create drop down menu

What you are searching for its a submenu page. Try with this: add_submenu_page( ‘my-top-level-slug’, ‘My Custom Submenu Page’, ‘My Custom Submenu Page’, ‘manage_options’, ‘my-secondary-slug’ ); you can find more info here An example with your code: function my_plugins() { add_menu_page( ‘My Plugin’, ‘My Plugin’, ‘manage_options’, ‘visitor-counter-by-funcion’, //THIS IS THE SLUG YOU NEED TO USE IN … Read more

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