June 23, 2015

How to apply a custom header image for each page in WordPress?

How to apply a custom header image for each page in WordPress with respect to the navigation menu bar? Here is the function: function get_parent_menu_id($id, $arr){ if($arr[$id]==0) return $id; else return get_parent_menu_id($arr[$id], $arr); } $arr = array(); $arr_obj = array(); $page_id = get_the_ID(); $menu_items = wp_get_nav_menu_items(‘Menu Main’); if(!empty($menu_items)){ foreach($menu_items as $items){ $parent = $items->menu_item_parent; $arr[$items->ID] […]

PHP function to check that you are main page?

define(‘LIVE’, (!in_array($_SERVER[‘HTTP_HOST’], array(‘localhost’, ‘wp-mechanic’)))); if(!function_exists(‘is_main’)){ function is_main(){ $uri = $_SERVER[‘REQUEST_URI’]; $arr = explode(‘/’, $uri); $arr = array_filter($arr, ‘strlen’); return ((!LIVE && (count($arr)==1)) || (LIVE && empty($arr)));//empty($uri) } }

June 16, 2015

Uploadify is not working in wp-admin as expected?

Solution is as follows: Go to initial state and don’t use any uploadify for now Try with default jquery, everything working fine Then use your plugin file as “enqueue” instead of linking files directly Enqueue one by one the js files Keep checking the conflicts Finally you will get it work, you are just missing […]

January 26, 2015

WordPress Plugin – jQuery Post Splitter

jQuery Post Splitter

December 2, 2014

WP eCommerce Wishlist

WP eCommerce Wishlist

November 29, 2014

WooCommerce Discounts Plus

Encouraging buyers to buy in quantity…

November 15, 2014

WordPress Plugin – WP Secure Content

WP Secure Content

November 13, 2014

Need help to choose the best wp theme?

Need help to choose the best wp theme? Must have: Homepage and landing page should be the same instead of 2 pages to confuse the visitors Sidebars should be managed nicely that every widget should be a meaningful widget instead of just make the sidebar crowdy Responsive layout because your visitors will be using devices […]