How to unregister or deregister Custom Post Types in WordPress

Are you looking for a method to unregister a custom post type in WordPress? This question may come to your mind that when you have register_post_type() for registering post types,...

How to Strip HTML Tags from WordPress Content

Normally, we use strip_tags() to strip out HTML from a string when working with PHP. But, this tutorial is based on WordPress so we will try to use WordPress’ function...

How to Prevent Images Wrapping up in Paragraphs in WordPress

This tutorial will discuss different scenarios to stop WordPress wrapping up images in a <p> tag. Table of Contents Remove paragraphs from images only Remove paragraph from...

WordPress: Hide a Widget on a Specific Post, Page, Post Type, Tag, Archive and Category

This tutorial will briefly outline the ways to hide a widget on a specific post, page, custom post type, category and tag in WordPress. Mostly all WordPress themes display widgets...

WordPress: How to get page ID of page that is set as the posts page in Reading Settings

In this tutorial, you’ll learn to get page ID of the page that is set in WordPress’ Settings -> Reading -> Posts Page. Let’s take a look at the settings...

WordPress: How to get all Posts from a Custom Post Type

Are you trying to get all posts from a custom post type in WordPress? The technique that I will mention in this tutorial will enable you to display all posts from a post type on a...

4 Ways to Remove Element from Array Using PHP

When it comes to array handling in PHP, you have a lot of handy built-in array functions available. So, in this tutorial, you’ll learn to remove an element from an array...

6 Ways to check if a string contains a word or string using PHP

Working with strings in PHP is really very easy. So, I’ll show you different ways to check if a string contains a word or string using PHP. Table of Contents: Check if...

3 Ways to Check If Element is Visible or Hidden using jQuery

Do you want to test whether an element is visible or hidden using jQuery? Here, you’ll learn three approaches to finding out if an element is visible or hidden with jQuery....

JavaScript: Redirect to another Page or URL

In this tutorial, I’ll show you to redirect to another page or URL using JavaScript. I’ll discuss different scenarios that you could face. Let’s get down to...