Get list of all WordPress menus
If we need to get list of all wordpress menus we have to use the get terms, The code to fetch all the WordPress menus os shown below
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 :
