How to call any template inside phtml file magento
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
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

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
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 …