How to configure (setup) Aptana Studio for WordPress Development
Sometimes Aptana Studio doesn’t give code hinting for WordPress Development, if you face this problem, try this: 1. go to File -> New -> Other -> or just click ctrl+N. 2. New dialog window...
View ArticleCustom Post Type & Custom Taxonomy’s URL Rewrite to remove their slugs
If you ever need to remove slug completely from your WordPress’s URLs for Custom Post Type or Custom Taxonomy, set ‘slug’ to ‘/’ and ‘with_front’ to ‘FALSE’ for rewrite parameter while registering...
View ArticleHow to Get All Post in WordPress Query
To get all the post in returned WordPress query results, you have to put: ‘posts_per_page’ => -1 in query arguments. For example: $all_posts = get_posts( array( 'post_type' => 'post', // e. g....
View ArticleHow to Change Indian Rupee Currency Symbol in WooCommerce
To change rupee symbol from default one(Rs.) to ₹ put this code in your theme’s functions.php file add_filter('woocommerce_currency_symbol', 'inr_currency_symbol', 10, 2); function inr_currency_symbol(...
View ArticleHow to Get current page URL in WordPress
Put this code in your WordPress Theme’s template file to get the url of current page. global $wp; $current_url = home_url(add_query_arg(array(),$wp->request)); Link to this post!
View Article