Invalid Menu Items

I’ve identified two issues, the first, this: ‘rewrite’ => true, ‘rewrite’ => array( ‘slug’ => ‘districts’ ), Can just be this: ‘rewrite’ => array( ‘slug’ => ‘districts’ ), And the second, the reason you get invalid menu items, is because districts is being used as the rewrite slug, but, the internal namevof the taxonomy is … Read more

how to add multiple menu in custom menu widget?

You can find the WP_Nav_Menu_Widget class in wp-includes/default-widgets.php:1059 Simply copy the class (with new name – Example: Foo_Nav_Widget) to your functions.php file. Edit the form method and replicate the select option (with new id/name) and any variables associated. Edit the widget method, replicate any associated variables and call your second nav menu underneath the current … Read more

Formatting WordPress Menus (without bullets, inline with text)

Assuming the menu has the structure <div id=”site-info”> Copyright (c) 2013 Acme Inc. All rights reserved. <ul class=”menu”> <li> Privacy Policy</li> <li>Terms and conditions</li> </ul> </div> You will need to add the following css” #site-info{ display: inline-block; line-height: 30px; /* adjust to aling everything up or remove */ } .menu{ list-style: none; /* to remove … Read more

Hamburger Navigation Menu

You could solve this with other nasty hacks but here’s kind of WordPress way: In your header.php <?php // User is not using mobile if( ! wp_is_mobile() ) { wp_nav_menu(); // Your “original menu” } // User is using mobile else if( wp_is_mobile() ) { wp_nav_menu(); // Your another menu that only has top level … Read more

Not even able to Log in [closed]

WordPress.org has its own accounts for the support forums and it has nothing to do with the logins for your website, or for WordPress.com, the hosted version of WordPress. When you self-host a website with the WordPress responsibility the management of your logins is your responsibility and no one at WordPress.org or WordPress.com can help. … Read more

Add menu to CMS page

Try below code ( with proper modifications if needed ) in your ‘header.php’ <?php if (has_nav_menu(‘primary_navigation’)) : wp_nav_menu([‘theme_location’ => ‘primary_navigation’, ‘menu_class’ => ‘nav’]); endif; ?> For more details try this link

Resolve the debugs

Number 1 is not wordPress, but PHP. $_GET[‘type’] is undefined. Use an isset( $_GET[‘type’] ) conditional. Number 2 the error message tells you exactly what to do. Instead of calling: add_custom_background(); …call: add_theme_support( ‘custom-background’ ); Number 3 the error message tells you exactly what to do. Instead of calling: attribute_escape(); …call: esc_attr(); Number 4 is … Read more

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