Add Protocol to Custom Menus
You need to use the kses_allowed_protocols filter: function wpse_allow_sms_protocol( $protocols ) { $protocols[] = ‘sms’; return $protocols; } add_filter( ‘kses_allowed_protocols’, ‘wpse_allow_sms_protocol’ );
You need to use the kses_allowed_protocols filter: function wpse_allow_sms_protocol( $protocols ) { $protocols[] = ‘sms’; return $protocols; } add_filter( ‘kses_allowed_protocols’, ‘wpse_allow_sms_protocol’ );
How to get the count for each taxonomy term
No Current Class showing in Menu for Custom Post Types
Remove from wp_nav_menu() wordpress
Go to the settings->permalinks Select custom options Write /%category%/%postname% Use WP No Category Base plugin
Using wp_nav_menu() and a Walker is a great thing and I really appreciate the other answers with this solution, but I think it’s a really hard way to go for a simple menu. So I found myself quite often doing it via wp_get_nav_menu_items() So let’s focus on the idea: I just get all the menu … Read more
WordPress has actions and filter to be used to add elements on menu admin, and so it’s possible to write a plugin that put on the menu admin screen the month/year archives. However, that plugin should consist in some dozen lines of code, and once you have not tried to write anyhing, if this was … Read more
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
Change archive link to single post
Plugins for putting Custom Post Types into the Menu