The razmataz of the Wordpress realm continues to beam and grow at an unprecedented rate as more and more webmasters lean towards it, choosing to host their blog on a CMS platform that gives them the maximum room to innovate and ideate. Wordpress fits the fill, ever so obligingly. Continue reading
Many times you do not need the many image sizes for wordpress. You need the original image only for your wordpress sites. Sometime you need the original and thumbanil image only. But many wordpress themes creates the multiple image version in your site which is not useful. Using following code you can remove the unwanted images while uploading the images. Continue reading
In linux OS and windows OS cron jobs been used for backgroud tasks, many times you need to execute the some background tasks based on time. In wordpress creating the cron jobs is very easy. For creating the cronjob you can use the wp_schedule_event() event. You can run the cron based on time defined.
Wordpress itself uses the jquery in all wordpress themes and loads automatically. But it is always good to load the jquery library through google CDN. It saves your sites bandwidth. Many people already written about same so here I am just putting the method. Continue reading
There are many wordpress plugin which will give you the post views using custom tables. But here using following code you can track the post views of your wp site.
Using external plugin, you can get the views and report but it will add more sql quries and extra load to your site. So I suggest use following code for getting the post views. Continue reading
Many people wants to see the number of attachments which are used for posts. In Post list page people wants to see the number of image and other attachments. Using following code you will be able to see the attachment count in post list section. Continue reading
Many wordpress website users allow user to register on there site. After new user registration if we want to show them specific instructions or registration success page then you can use the following code. Put following code into functions.php file. Continue reading
In your theme code backend or plugin code you can list your wp roles. You need to display wordpress users roles many times in theme configuration and plugins page. For fetching the wp users roles you can use the following code. Continue reading
In new wordpress version we can add the background image or color to wordpress websites. Many older wp themes has no support for custom background functionality.
You can very easily add the custom background support to your wordpress theme. You just need to copy following code and put in your functions.php file. Continue reading