content top

Properly add pagination to your WordPress Plugin

Properly add pagination to your WordPress Plugin

It has been quite a long I am doing stuffs with WordPress. The one of the nice thing about WordPress is, we get a ready to use admin backend with almost all possible css’ needed! Nice table structure, nested menu, Title with nice icons, pagination…you just name it! WordPress has them all! To use them, what we need to do is code our plugin so that it generates the proper xhtml code with proper css classes. Finding the correct...

Read More

How to add your own stylesheet to your WordPress plugin settings page or All Admin page

How to add your own stylesheet to your WordPress plugin settings page or All Admin page

So, you have got a cool new plugin with a dashing settings page. You have your very own HTML structure and CSS as well to style them… But, you are confused how to tell WordPress to include the StyleSheet in the admin page head? Well, this happened with me also. The primary solution I thought of was either include the CSS inside <style> tag or use admin_head hook to output (echo to be precise) the <link> to the CSS...

Read More

Getting Post thumbnail on WordPress 3 w/ w/o specific Post ID

Getting Post thumbnail on WordPress 3 w/ w/o specific Post ID

Previously we have discussed about how to activate and set custom post featured image sizes using two WordPress APIs, add_theme_support and add_image_size. After this, the tutorial on how to actually use the generated thumbnails, was really pending. And I am really sorry that I could not bring this tutorial the day after I published the previous tutorial. I really became busy with the WordPress Plugin and my collage’s website...

Read More

Setting Post Thumbnail on WordPress with custom size and Cropping – A simpler approach

Setting Post Thumbnail on WordPress with custom size and Cropping – A simpler approach

Well, we are almost done with our second WordPress Plugin development. A sneak peek can be viewed from here. (Hey! If the version is alpha then Don’t install!). Anyways, the thing which interested me most while developing the plugin was, the built in WordPress thumbnail API. So, I thought of sharing it. To tell you the truth, I first started the tutorial to explain how to use post thumbnail. But then, I decided to write about how to...

Read More

Parse ID list from CSV, using new WordPress 3.0 API – The right way of doing

Parse ID list from CSV, using new WordPress 3.0 API – The right way of doing

While developing my plugin, I came across many API of new WordPress 3. WordPress 3 really gives a new set of APIs for developers to work with. Okay, so coming straight to the point, there are many occasions where, you need to take input of comma separated values of IDs from the user for the backend of your plugin. While, we can use PHP’s simple explode method to convert the CSV into an array, but it relies extensively on the users...

Read More

Add dynamic Login Logout n Site Admin button to WordPress using WP API

Add dynamic Login Logout n Site Admin button to WordPress using WP API

This tutorial is about adding a “dynamic” login/logout and Site Admin button somewhere on your wordpress theme template. This is basically same as the Meta widget of wordpress. But in case if you don’t like all the lists given by the meta widget, and want to add only the Login Logout button and Site Admin button then this is how you do… #0: Plan where you want the Buttons: This depends entirely on you. It can be...

Read More
Page 1 of 212
content top
TOP