Written on April 07, 2013 at 03:04 pm by admin

Using WordPress 3.5+ Media Uploader in Theme & Plugins

It was a good feeling when there came a solution to use WordPress Old Uploader in themes and plugin using thickbox.

It was something like: (I DON’T LIKE THIS!!)

But now, its time to say goodbye after the introduction of new Uploader in WordPress, and it looks more than just awesome. And the most special of this is new frame uploader is that you can get the actual media ID(including url of different sizes), not the media URL to use to get different image size using WordPress inbuilt image resizers and different image sized you defined from add_image_size function.


First things first:

Enqueue the Javascript Files we need(I am doing it for admin pages for now):

Creating HTML Components

Create an admin page where you want to have a button that will open the new WP 3.5 uploader. A small chunk of my html is:

Now followed by the JavaScript:

NOTE: If your custom admin page isn’t using any kind of media editor or wordpress uploaders, then dont’ forget to call the fucntion wp_enqueue_media(); somewhere in your custom page. (It actually builds some html templates for frames and blah blah!!)

Download The Demo plugin here

Written on March 19, 2013 at 05:03 pm by admin

World Flag – A WordPress Plugin

World Flag for WordPress Plugin which allows WordPress authors to embed country flags into posts or pages with ease.

With just simple shortcode the {flag country=”COUNTRY_CODE_HERE”} “Replace { and } with [ and ] and put the two letter country code in the country attribute”

I can understand, it not possible to remember all country’s two letter code, so to assist you with it, I have also added TinyMCE editor button that holds all the countries and the flag shortcode is just a click away

Yey! Nepal Nepal

Get It Here

Shortcode TinyMCE plugin – In Action


World Flag Plugin In Action


Above flags was generated using this shortcode


Let know if i have missed  your country, so i can add it on next update.

Thanks to http://flag-sprites.com/ for providing such a wonderful Flag Sprite which is the major backbone of the plugin.

Get It Here

Written on January 21, 2013 at 11:01 pm by admin

Featured Post – WordPress Plugin


Featured Post” – a WordPress plugin is a simple yet powerful WordPress Plugin that is easy to manage/integrate and display on your website using a little of custom query or in your widgets.

Easy To Select Featured Posts


Easy Configuration to show on your favorite sidebar position


Easy Query Post


Get It For Free Here

Written on September 15, 2012 at 06:09 pm by admin

Disabling Admin Menu Bar

Its usually annoying that the theme displays so called WordPress Admin Bar on the theme when you never wanted to. In several cases, it just disrupts the theme layout. Mostly when you are a freelancer like me and your client asks “Why isn’t the body background irregular with the header image”, and you will have no option but to call them and ask them to view the website using different browser or device without logging in as admin.

But, it still not late and you can remove them with just few lines of code on your functions.php file.


But if you are using wordpress 3.3+, then you can get that option easily by editing your profile via User>Your Profile  and un-tick “Display Toolbar when viewing website” (Though this isn’t always possible)

Its always a good idea to not to let the annoying admin-bar appear if that’s going to ruin your whole day of work.

I will soon post on how to disable admin-bar on wp-admin too.. that may be helpful.