Avoid Automatic Redirection or Canonical Redirection

Overview WordPress redirects the incoming links to the proper URL based on the site url. Search engines consider the link and 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 the post on site using oAuth and Rest API

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 though rest API and OAuth. Let’s Try it Step by Step Step 1: Create new app app from OR

Get all posts by post meta key and meta value

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.


Show all scheduled events OR corn jobs in WordPress

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


Find Broken Links with WGET

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 Usage: wget

WordPress Rest API parameters mappings

This array defines mappings between public API query parameters whose values are accepted as-passed, and their internal WP_Query parameter name equivalents (some are the same). Only values which are also present in registered will be set. Below is the list of all the endpoints which have query parameters mapping: wp/v2/comments wp/v2/<post-type> wp/v2/<taxonomy> wp/v2/<term> wp/v2/<users> Check below