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 I
Overview WordPress redirects the incoming links to the proper URL based on the site url. Search engines consider the link http://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. Prevents
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
In this article we are going to see how to capture website screenshot with command line interface. We are going to see: 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
Quick Preview To add the search follow below steps: 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 Open file /wp-admin/css/widgets.css Goto line 775 Press enter key and add below code: Step 3: Add
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
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 Step 1: Create new app wordpress.com app from https://developer.wordpress.com/apps/new/ OR
Most of the times we need to get all all custom fields of all the posts. We can get it with the help of the WP_Query class. Lets check it with simple example.
Description By using the function wp_get_ready_cron_jobs() to get all the READY scheduled events OR READY corn jobs. Note: Use below code snippet for ONLY debugging/development purpose. Code Snippet Output
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 Output
We often use PHP function date() to display the date. But we remember almost all the possible date format’s. But sometimes we forget PHP date and time format. So bookmark this article for the reference. Let’s see all the available date and time format into the PHP. Date Format: Output Format Example 15/02/19 d/m/y date(
In development, We spend a lot of time on the command line. We type a lot of commands on regularly. I have created a shortcut for the most of the commands which I use on a daily basis some of them are below: WP CLI Command Keyboard Shortcut/Aliases wp theme list wpthl wp plugin list
Import the bbPress sample data with one click.
In this article we are going to see how to use Wget to find the broken links from the website. Try below example command which generate the wget.log it list all the broken links. Download & Install wget Add the installation directory to PATH:C:\Program Files (x86)\GnuWin32\bin Syntax: wget -o wget.log -r -l 10 –spider http://example.com Usage: wget
Below is the simple function which you can use for debugging the site. It display the template file path of the current page. Like below image: Add below code snippet into your themes functions.php file. <?php /** * Check Which Template Loading * * @todo Change the `prefix_` from function name with your own prefix.