Highlight Publish And Draft Date Column With Strings
Code Snippets
Mahesh Waghmare

WordPress readable date format for post

Problem #Problem The first question raises in your mind is, what do you mean by WordPress readable date? Let me explain. While writing articles for my blog https://maheshwaghmare.com/, I notice that the date format of the published and draft posts are not readable. With default date format I was few questions: How much time ago

Read More »

How to avoid automatic redirection or canonical redirection in WordPress?

Overview #Overview WordPress redirects the incoming links to the proper URL based on the site url. Search engines consider the link www.somedomain.com and somedomain.com to be two different URLs when they both go to the same location. This SEO enhancement prevents penalties for duplicate content by redirecting all incoming links to one or the other.

Read More »
Code Snippets
Mahesh Waghmare

Show group by alphabet posts with shortcode using WP_Query

Create an array of posts group by alphabet with WP_Query. Use below to create the list of posts array with the group by alphabet. Note: I have used post type. You can change this post type with your own. Also, you can modify the WP_Query parameters. Now we can show the posts with the group

Read More »
Code Snippets
Mahesh Waghmare

How to capture website screenshot with CLI (Command Line Interface)

Introduction #Introduction Before writing about how to create a website screenshot of website with CLI command, I think, I need to share some background. Recently, I was working on some project in which I need to set 1000+ web page screenshots and resize them and set as a featured featured image for the post. In

Read More »
Code Snippets
Mahesh Waghmare

How to add widget search into the WordPress Widgets page

Quick Preview To add the search follow below steps: Step 1: Add search input field in WordPress backend #Step 1: Add search input field in WordPress backend Open file /wp-admin/widgets.php Goto line 429 Press enter key and add below code: Step 2: Add CSS for the input field #Step 2: Add CSS for the input

Read More »

Get all posts which contain specific shortcode

While working on some project, I was stuck on one issue. The issue was, User was multiple posts and he was use my shortcode on some of them. And I was trying to figure out which are the posts which content have my shortcode. The answer is in my question. To do this I need

Read More »

Create the post on wordpress.com site using oAuth and Rest API

Working on Rest API and OAuth is very interesting. #Working on Rest API and OAuth is very interesting. WordPress merged Rest API support into the core in WordPress 4.7 “Vaughan” check out the Rest API Merge Proposal. In this post, I’m creating the post on my site https://maheshwaghmare.com/ though rest API and OAuth. Let’s Try it Step by Step #Let’s

Read More »

Show all scheduled events OR corn jobs in WordPress

Description #Description By using the funciton wp_get_schedules () to get all the scheduled events OR corn jobs. Note: Use below code snippet for ONLY debugging/development purpose. Code Snippet #Code Snippet Output #Output

Read More »
Scroll to Top
%d bloggers like this: