In this article, we will see how to redirect a post having a “Draft” status. We will cover both redirections to the home or any other page.
Author: M. Hamza Mehmood
My name is Muhammad Hamza Mehmood, a Saudi-born tech geek.
I am a professional full-stack Web Developer.
I love to share knowledge with others. I am quite a busy person, so whenever I get time I used to write articles with the faith that they will help other developers.
If you have any queries just send me a message via the contact form and I will try to solve them as soon as possible.
Do you want to request a topic? please click here.
Thank You for reading my articles.
Have a happy development.
Good Luck!

We can get the current page URL using WordPress hooks. In this article, we will see how to get the current page URL in WordPress.

If we are creating a PHP app installer where we want to create and execute the SQL file with a single click.

You can pass as many values as you want with a single radio button. In this article, we will see how to pass two values from a radio button when clicked.

Wordpress provides a flexibility to execute raw SQL. In WooCommerce we will execute basic SQL queries to fetch data for reports and API.

WordPress customization is always been interested for the web developers. In this article we will learn how to create a custom menu and fetch it in our website. I have written the code in such a way that you can fetch both Parent and their children menu items.

When we have a long web page, it is recommended to create a scroll to the top button. This button is normally placed at the right bottom corner of the website. When a user clicks it, it will take the user to the top of the page with a scroll.

There are numerous ways to get page URLs in PHP. In this article, we will see how to get current page URL in PHP.

When you work on projects you will have to create a progress timer bar to make UX (user-experience) better. For longer actions, we can introduce a progress bar that will not only show the current progress to users but also let them wait until the action is completed. In this article, we will see how to create a progress timer bar using Bootstrap and jQuery.