Categories
Uncategorized

 A Dream within a Dream 

I stand amid the roar Of a surf-tormented shore, And I hold within my hand Grains of the golden sand — How few! yet how they creep Through my fingers to the deep, While I weep — while I weep! O God! Can I not grasp Them with a tighter clasp? O God! can I […]

Categories
code WooCommerce wp-admin

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.

Categories
debugging WordPress wp-cli

Easily import DB using wp-cli

How to easily import and SRDB witth wp-cli?

Categories
WordPress wp-admin

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.

Categories
code WordPress

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…

Categories
Uncategorized

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 […]

Categories
Plugins Themes WordPress

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

Categories
Themes WordPress

How to change WordPress admin icons

One of my favorite things about the admin theme with WordPress is the new Dashicons icon font. It brings a sense of standard and uniformity to dashboard icons with its distinctive look and vast array of icons for theme and plugin authors to choose from and use with ease.

Categories
Uncategorized

पुणे तिथे काय उणे!

पुण्यात खाद्यभ्रमंती साठी काही विशेष 🍲🍛 – चांदणी चौक (बावधन) जवळचे ’टेस्टी टंग्स’ चाटसाठी चांगले आहे. – औंधला असलेल्या ’कढाई’मध्ये रबडी जलेबी आणि पाणीपुरी चांगली मिळते. – कर्वे नगरच्या स्पेन्सर चौकात महिन्याभरापूर्वी ’ममता डायनिंग हॉल’ सुरू झाला आहे. कमी पैशात फार चांगली थाळी मिळते इथे. – कर्वेनगरलाच आंबेडकर चौकाजवळ ’कॅफे स्क्वेअर’ नावाचे एक छोटेसे चायनिज […]

Categories
code Themes WordPress

Call a navigation menu using a shortcode

Today I came across a weird situation: I needed to place a navigation menu in the content of a page. A shortcode was the obvious solution, but there doesn’t appear to be one built in for menus. I created this one very quickly