Friday, May 17, 2013

MBA - Which major should i choose in my MBA



Now its time for making a career planning. Every school completed students are looking to select a better course to shape their future. The same way. its time for MBA graduates who have to pet their concentration better choice. They always have a question, like which concentration will help to get a better job?.

Before selecting a concentration doing a simple survey doesn't problem to you. Here i will  you few tips to select a concentration

1. Make a research on most popular job sites. which concentration have more opennings available at present.

2. Get latest information towards your selected concentration and howfar its useful nowadays.

3.Then your interest and ease of knowledge. which concentration will come to show your talent. 

4. Know how far your institution will get you an opportunity to your selected concentration.

5. Check whether your department help you learn more information related to that concentration.

These are the few basic things you have to do before you choose a concentration

Tuesday, May 7, 2013

Wordpress Menu add item through Code

If you want to add menu item through your code  for your wordpress blog. Just follow the steps to get it. Wordpress menu need theme support and 'nav-menu' activation .

 here is simple code help you to add a contact form to the menu.


function add_menu_content() {
    $wordpress = array(
'post_title' => 'Contact',
'post_status' => 'publish',
'post_date' => date('Y-m-d H:i:s'),
'post_author' => '1',
'post_type' => 'nav_menu_item',
'meta_key' => '_menu_item_menu_item_parent' 

);
$post_id = wp_insert_post($wordpress);
add_post_meta($post_id, '_menu_item_url', 'http://localhost/kvp/contact/');
add_post_meta($post_id, '_menu_item_type', 'custom');
wp_set_post_terms( $post_id, 'summa', 'nav_menu');
}

Wordpress Create Category by php code

In Wordpress admin page every admin create their required category based on their need.  But while creating theme and separate plugin for some of the premium themes have a customization of selecting theme category. Here i will help you to create category on your php code.


The following line of function help you to add the category and sub categories.


function kv_create_category () {
$i=0;
$kv_category =array(
'Wordpress' => array('eCommerce', 
'SEO', 
'Social Networking', 
'Media', 
'Utilities', 
'Add-Ons', 
'Interface', 
'Themes', 
'Membership', 
'Plugins', 
'Miscellaneous' ),

'PHP' => array('Database',
'Gallery/Media',
'Polls',
'Project Mgt Tools',
'Graphs/Charts',
'Shopping Carts',
'Social Networking',
'Add-ons',
'Forms',
'Miscellaneous' ),

'Java Script' => array('Forms',
'Media',
'Project Mgt Tools',
'Charts/Graphs',
'Shopping Cart',
'Social Networks'),

'HTML5 & CSS' => array('Forms', 
'Tabs and Slider', 
'Buttons', 
'Animation', 
'Charts and Graphs', 
'Layout') ,

'Mobile' => array('iOS',
'Android',
'Native Web',
'Titanium',
'Java',
'Symbian'),

'Others' => array('facebook', 
'jQuery', 
'JS Slider', 
'Bootstrap', 
'Backlinks'), 

'.Net' => array('ASP',
'C#', 
'VB', 
'Others') 
);

foreach ($kv_category as $category => $datas) {
$cat_id=wp_create_category($category , $i++);
}
foreach ($kv_category as $category => $datas) {
$cat_id=get_cat_ID($category);
foreach ($datas as $data) {
        wp_create_category($data, $cat_id);
    }
}
}

Wordpress Edit Blog Tagline by Your theme code

Our Wordpress blog Have title and under that a tagline is there ,which is " just anothe Wordpress site". We have to change it for our convince. And you can edit it through the php code. Here is a sample code to update the tagline as my convince. Many theme developer are needed to edit this tagline through their theme function code.

Add the few following lines of code to change your WP blog tagline.

function kv_change_defaults() {
update_option('blogdescription', 'my tagline Works here', '', 'true');
}
add_filter('switch_theme', 'kv_change_defaults');