How to create 301 Redirects in WordPress

Understanding 301 redirects are an important part of the website SEO strategy. There will be times when URL’s are changed, the page is deleted, the website is migrated. In such cases implementing proper 301 redirects will help preserve the link juice.

Fortunately, WordPress makes it super easy to create 301 redirects. There are quite a few plugins that let you quickly create redirects without any knowledge of coding.

In this particular post, I will be sharing step by step instructions for creating 301 redirect in WordPress.

After going through this tutorial, you can easily redirect a particular URL to another URL.

Read more

How to Filter Blog Posts by Author in WordPress Admin panel

In this post I will share step by step instruction on how you can easily filter blog posts by authors in WordPress Post Panel.

The default list panel lets you filter posts by

  • Month
  • Category
  • Post Status

The Author filter is not included by default.

So to add the author filter, we will make use of a plugin Author Filters.

As the name suggests, this plugin lets you filter the blog posts by author.

Lets see how it works.

Read more

How to convert / change post type in wordpress

WordPress uses various post types to store and display content on your website. The most common post types are Posts, Pages, Attachments and Menus.

Do you know that it is also possible to convert one post type to another?

Recently I came across a situation where I wanted to change a post to a page.

In this tutorial, I will share step by step instructions to switch on post type to other.

We will make use of the Post Type Switcher Plugin.

Read more

How to add Widget to Pages and Posts in WordPress

Widgets are very powerful and are extremely easy to use. However their usage is  limited to the widget ready areas.  

What if you want to embed widget in a Page or Post?

In this post I will cover a plugin which allows you to embed any widget in a Page or Post.

The plugin is  AMR Shortcode Widget. Its a very popular plugin with 4.9 rating and has over 100,000 downloads.  Here are the instructions to use it:

Read more

A simple guide to customizing the wordpress login form – without using a plugin

In this tutorial I will share various techniques which can be used to customize the wordpress login form. We will make the customization without using a plugin

Here are the things which we will cover

  • Customize the logo on the login form
  • Customize the logo url
  • Customize the logo title
  • Customize the login form field labels
  • Customize the login button text
  • Customize the background color of login form
  • Customize the background image of the login page
  • Hide the remember me checkbox

Lets start.

Read more

How to selectively display widgets on specific posts or pages

WordPress by default display the widget every where. So if you want to display or hide the  widgets based on rules then you will need to make use of plugins.

In this tutorial I will cover 4 plugins which can be used to hide or display widgets in posts or pages control the widget visibility of specific post and pages. At the end o this post I will also share a code snippet for controlling the widget visibility based on conditional logic.

Read more

How to remove the url field from the comment form

If you have ever run a blog, you must have faced the problem of comment spam. Spammers engage in comment spam for link building purpose.

One simple way to discourage spammers is to remove the url field from the comment form. This will ensure that spammers cannot use your comment form for link building purpose.

In this post I will share a small snippet which will remove the url field from your comment form.

I recommend you to use the code snippet plugin in order to run this piece of code. Using the code snippet plugin ensures that your changes remain intact even after you change your theme.

Read more

Quick Tip – How to disable theme updates

In this post I will share a simple technique which can be used to disable theme update. This will prevent both automatic and manual updates.

Running an outdated theme is not the best practice, but there might be some use cases where not updating the theme is required. For this tip to work, you don’t need to make any changes to the core wordpress files.

Read more

How to Insert Line Break in Widget Title

WordPress, by default, does not allow HTML tags in widget title.  If you try to add HTML tags in the widget title, they will be stripped before the widget content is output. So if you want to add Line Break in the widget title, you will need to perform some code jugglery.

In this post I will share a simple technique which you can use to insert line break in the widget title. The concept is simple.

We will create a filter which hooks into Widget_title filter and dynamically add the break tag.

Read more

How to add custom CSS in wordpress – without using any plugin

There are quite a few custom css plugins , however majority of them apply the custom css site wide. If you want to apply the css to a specific page, then one approach is to make edits to the theme functions.php file. However this approach is not recommended , as the changes will be lost if you change the theme.

In this tutorial I will share a simple technique to add custom css to a specific Page or Post in WordPress. The best part is that we don’t need to make any edits to the templates files or the functions.php file. We will achieve this without using any custom css plugin.

Read more