Count > 1 Navigation Slider

This is a basic PHP error, you need to turn on debugging. $count_slider is an Object and not an Integer which is what you are checking for, since you seem to want to compare published posts anyhow , write it like: <?php if($count_slider->publish > 1)

Navigational error

Option 1: Edit the Contructor theme The Constuctor theme checks the theme options and then includes the home link based on the option value. The code that adds the Home link is located in /wp-content/themes/Constructor/libs/Constructor/Main.php. // show link to homepage if ($this->_options[‘menu’][‘home’]) { echo ‘<li id=”home”><a href=”‘.home_url().”https://wordpress.stackexchange.com/” title=”‘.get_bloginfo(‘name’).'”>’.__(‘Home’, ‘constructor’).'</a></li>’; } Link Text To change the … Read more

Add item ONLY to the primairy navigation

i did find my answer here : http://www.wpbeginner.com/wp-themes/how-to-add-custom-items-to-specific-wordpress-menus/ add_filter( ‘wp_nav_menu_items’, ‘your_custom_menu_item’, 10, 2 ); function your_custom_menu_item ( $items, $args ) { if (is_single() && $args->theme_location == ‘primary’) { $items .= ‘<li>Show whatever</li>’; } return $items; }

Using Different nav_menu_css_class for different nav_walkers

The third parameter passed into nav_menu_css_classes should give you the information you need to sort out the different menus. Try: function onpage_nav_menu_css_class($classes, $item, $args) { var_dump($args); return $classes; } add_filter(‘nav_menu_css_class’, ‘onpage_nav_menu_css_class’, 1, 3); Note: That will make a mess of your page. It is debugging/development only code. I think that the theme_location should be sufficient … Read more

Where these arguments are defined?

You should look on ow WordPress Plugin Api works. When you add a filter, the function that hook into that filter receive the argument from the function: apply_filters. This function pass at least one argument, but can pass more, and always aspect a value returned. So if you can write add_filter( ‘walker_nav_menu_start_el’, ‘description_in_nav_el’, 10, 4 … Read more

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