I stand amid the roarOf a surf-tormented shore,And I hold within my handGrains of the golden sand —How few! yet how they creepThrough my fingers to the deep,While I weep — while I weep!O God! Can I not graspThem with a tighter clasp?O God! can I not saveOne from the pitiless wave?Is all that we…
Author: Swapnil V. Patil
Redirect after logging in based on the user role
You can redirect after logging in and use a custom URL based on the user role, like the Dashboard for admins and My Account page for customers.
Easily import DB using wp-cli
How to easily import and SRDB witth wp-cli?
Getting the most of your WordPress Dashboard
What is that one screen you see regularly on WordPress, but might not have customized so far? Yes, the dashboard. I have been using WordPress since long now myself, and very rarely have I seen someone spending time changing things on the dashboard. I think that is because people care more about what readers see, rather than what they see on the dashboard.
However, the dashboard, in generally should be one of the most productive and useful screen on your site.
Debugging WordPress
If you accidentally introduce a syntax or fatal error in one of your template files, you’ll probably see the dreaded white screen of death when you visit your home page. In some cases, even the admin screens will go blank. Lets see how you can fix this...
Adding JavaScript Libraries to WordPress
WordPress includes a number of JavaScript libraries because it uses those libraries in the administration screens. They’re available for you to use in your themes and plugins as well. The libraries include jQuery, Prototype, Scriptaculous, and SWFUpload. See the wp_enqueue_script Codex page for a complete list of the scripts available, along with their handles. This code, added to your plugin or theme functions…
Change the “Enter title here” placeholder text to make it fit your content
When you’re working with custom post types, sometimes the post title isn’t a title. It might be a person’s name, a building number, or a course code (just to take a few examples from universities). So it’s great that WordPress has a simple filter that makes it easy to customize the “Enter title here” placeholder text to make it fit your content