Get list of all WordPress menus

Posted by on Jun 5, 2013 in Php, Wordpress | No comments yet

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

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 :

Load More