WordPress Themes
How to assign a menu to a wordpress theme location from php

This is the code $locations = get_theme_mod( 'nav_menu_locations' ); if(!empty($locations)) { foreach($locations as $locationId => $menuValue) { if($locationId=='primary'){ if(isset($menu_id)) { $locations[$locationId] = $menu_id; set_theme_mod('nav_menu_locations', $locations); } } } } replace ‘primary’ with the location of your theme, for the menu. CATEGORIES PHP, WordPress, […]
Ammon Theme For WordPress

Buy from here AMMON is a creative, all in one and very stylish premium WordPress Theme. It has numerous features and lots of sliders for each need. Features WordPress 3.2 ready Portfolio ready. shortcodes generator 960 grid system, witch is based on 12 columns of 60px & 6 modules on a row Unlimited colors Extensive […]