How to call any template inside phtml file magento

Posted by on May 4, 2013 in Magento, Php | No comments yet

Sometimes you want to call a block inside a .phtml file without defining in layout. In this case, we can use a method called toHtml of a block. Assume that we have a block called Mymodule and a template that …

Get number of post from wordpress query

Posted by on May 1, 2013 in Php, Wordpress | No comments yet

If we need to show the number of posts returned from query First we need to initialize the global variable global $wp_query And the entire code will be

Currency code and symbol in magento

Posted by on Jan 31, 2013 in Magento, Php | No comments yet

Some times we need to show the currency code and symbol separately in magento and here is the code to do so For getting currency code : For getting currency symbol :

How to remove the submenu with the same name as mainmenu in wordpress plugin

Posted by on Jan 30, 2013 in Php, Wordpress | No comments yet

During wordpress plugin development, Sometimes we need to remove the submenu with the same name as the mainmenu from sidebar for example see the image And in-order to remove the menu which repeats and to look like this we need …

Load More