How to List Only Parent Categories in WordPress

WordPress provides default feature of category archives. We can also create sub-categories of the main category. While listing categories in sidebar via widget it displays all categories including every child category. But what if we want to list only main categories with no other parent category? Find Main or Only Parent Categories in WordPress Here […]

How to Create a New Custom Widget in WordPress

WordPress provides some default widgets to display extra content on the website. However, we can also create custom widgets when required. Every widget has its own unique functionality on the website. Otherwise, there would be no need to create a new widget. Add a New Widget in WordPress WordPress provides some default widgets like categories, […]

How to Create a New Custom Sidebar in WordPress

WordPress provides a single sidebar by default. Even more, WordPress provides custom support to fulfil various requirements with a few lines of code. So, we can easily add or remove new sidebars in WordPress for various purposes. Sidebars are quite helpful and informative for users to easily navigate on a website and to explore helpful […]

Cookies in PHP

What is a Cookie? Cookie is a global constant in PHP. Cookies are helpful to store user data at client-side for a long time. It can be accessed through any PHP file within the web application. Mostly cookies are used to store user login details for a long time. Even more, advertisers use cookies to […]