Advertisement

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 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

Advertisement

Create the post on wordpress.com 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 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

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.

Advertisement

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

Advertisement

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 http://example.com Usage: wget