Custom taxonomy position in admin panel

It will definately not show in custom_1 because you probably must have defined it for custom_2.However, you can define a custom submenu with link same as that of the taxonomy in which the parent link is that of custom_2. Following is what i mean. add_submenu_page( ‘edit.php?post_type=custom_1’, ‘Page Title’, ‘Menu Title’, ‘add_users’,’edit-tags.php?taxonomy=custom_taxonomy’, ” );

Customizing the a tag with Semantic UI

You are definitely on the right track, but wp_nav_menu will output a menu with a lot of containers and classnames; to keep it semantic in the terms of Semantic UI, you’ll be in good hands if you build the structure yourself. Get the name of the registered menu in the menu manager. Check register_nav_menu in … Read more

wp_nav_menu() not working on Custom Search Page

I know this is an old thread but the problem still exists. I think this is a bug. Default queries such as nav should not be affected in making custom search page. Anyways, this is how I fixed it: function fix_nav_menu_in_search($query) { if (is_search()) { $query->set(‘post_type’, [‘your_cpt’, ‘nav_menu_item’]); } return $query; } add_filter(‘pre_get_posts’, ‘fix_nav_menu_in_search’);

Remove/Disable “Automatically add new top-level pages to this menu”

Since there is no filter to remove this option, your best best to to stick to using CSS by putting the following in your child theme’s functions.php: add_action( ‘admin_head’, ‘wpse_225635_menu_css’ ); function wpse_225635_menu_css() { global $pagenow; if ( $pagenow == ‘nav-menus.php’ ) { ?> <style type=”text/css”> .auto-add-pages { display: none; } </style> <?php } }

Getting URL value from menu item by ID

Guessing the only way you get it without loop through the menu, is getting the post meta directly. Navigation menus are saved as custom post type into wp_posts, so you can get it with get_posts or get_post_meta. If it’s a custom link menu item, the code below should do it. Where $menu_id is you menu … Read more

Remove ‘Menus’ from Twenty Sixteen theme Customizer

Thanks Dharmishtha, but I found the answer in below stack which worked really well without throwing any debug errors: How to remove menus section from WordPress theme customizer The correct way to disable ‘Menus’ and ‘Widgets’ (in Customizer) lies in creating a plugin with below code (taken from the above mentioned post to make it … Read more

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