Why is wordpress forcing https link generation?

Found the problem: on a mamp environment with ssl activated, on installation wordpress setted the database url options with https in front. Just changed theme to http on the remote server. On the local mamp enviroment I had also to restart the server without ssl.

How to add notifcations to front-end menu for users when they recieved replies?

Without knowing the specifics of your theme I can’t say if a plugin exists that does this. That said, if you are comfortable with PHP something like this would do the trick: My Profile<?php if($user->hasMessages()):><img src=”https://wordpress.stackexchange.com/path/to/icon”><?php endif;?> Do you have a code sample to look at, I could be much more specific if you did.

Insert other menus as submenus of a main menu

In order to make it work I had to regenerate the menu order. function custom_insert_service_menus($items, $menu, $args){ if($menu->slug != ‘main-menu’) return $items; // only run filter for main-menu $new_items = []; $menu_order = 1; foreach($items as $item){ $item->menu_order = $menu_order; $new_items[] = $item; $menu_order++; if($item->object == ‘service’){ $menu_id = get_field(‘menu’, $item->object_id); if(!empty($menu_id)){ // no menu … Read more

wp_nav_menu() doesn’t work

You might need to use ‘add_theme_support’ for ‘nav-menus’ as well. See line 2 below: if ( function_exists(‘wp_nav_menu’) ) { add_theme_support( ‘nav-menus’ ); register_nav_menus( array( ‘primary’ => __( ‘Main Menu’, ‘wsy’ ), ‘secondary’ => __( ‘Secondary Menu’, ‘wsy’ ) ) ); } Then display your menu like so: $nav_menu = ‘primary’; if ( has_nav_menu( $nav_menu ) … Read more