How to Check if the Current Page is Search Page of WordPress when user is viewing it?
Read this tutorial for syntax and example.
Read this tutorial for syntax and example.
Mehdinazari
How to Check if the Current Page is WordPress Search Page
WordPress developers can detect Search Page using the is_search function. is_search function detects if the current page in the user browser is the website search page or not. The result of running the is_search is a Boolean, and it accepts no
in WP admin panel, you must have noticed the ‘Howdy Admin’ text on the toolbar.
I you want to change the Howdy Admin text in WordPress, read this tutorial.
You also can remove the box completely from the toolbar with one filter.
I you want to change the Howdy Admin text in WordPress, read this tutorial.
You also can remove the box completely from the toolbar with one filter.
Mehdinazari
How to Change ‘Howdy Admin’ in WP Toolbar (or remove it for the love of God!)
If you constantly use the WordPress admin panel, you must have noticed the 'Howdy Admin' text on the screen's top right corner. Because of the fixed position toolbar, this text is always visible everywhere you go. In this helpful tutorial for the
How can we determine if the user is viewing a tag page?
Mehdinazari
How to Check if the Current Page is a Tag in WP (+Example)
If the current page is a tag page in WordPress, the is_tag function will return a true value. The is_tag function accepts only one parameter. you can use that parameter to check if the current page is a specific tag. We're going to review the is_tag
How to Check if the Current User is logged in WordPress?
and also check:
How to Get the ID of Current Logged in User from WordPress!
and also check:
How to Get the ID of Current Logged in User from WordPress!
Mehdinazari
How to Check if the Current User is logged in WordPress?
To check if a user is logged in or not, we can use WordPress is_user_logged_in function. This function accepts no arguments and only checks the current user authentication status. the is_user_logged_in function returns a boolean value, true if the
How to exclude posts containing a keyword in title, from your query?
read this tutorial for beginner developers.
read this tutorial for beginner developers.
Mehdinazari
How to Exclude WordPress Posts from a Query by Keyword in Title
Excluding posts by a word in the title from the WP posts query has a simple solution which I shared in this tutorial. This solution uses the `s` argument in the posts query, and it is easier than what you can imagine. Read this short WordPress
Learn How to Check if the Current Page is a Category in WordPress!
Mehdinazari
How to Check if the Current Page is a Category in WordPress!
Categories are actually WordPress terms under the hood, like tags and other classification entities. But there is a simple solution in WordPress to detect a category page. WordPress developers can use the is_category function to check if the current
How to Retrieve a Post’s Format in WordPress?
Mehdinazari
How to Retrieve a Post’s Format in WordPress
Check out this WordPress tutorial if you want to learn how to retrieve the format of a post using a post ID. WordPress has a great function for post format detection; it calls get_post_format. We're going to review this function in a Practical
Did you know developers can extend WordPress Posts Query and include custom data to each post item?
For example, it's possible to create a custom table for post views in database, then include a view counter field in post items.
Read my new tutorial for advanced WP developers:
How to Extend WordPress Posts Query and Join Custom Tables?
You can use examples in this tutorial to create a DIY post view counter plugin.
Here is the Roadmap that you can use to navigate to every chapter of this tutorial:
🥇Chapter 1: WP Way of Handling Post Storage in Database
🥈Chapter 2: Extend and Modify Posts Query in WordPress
🥉Chapter 3: Build a Post View Counter by Extending Posts Query
🏅Chapter 4: Tips for Extending WordPress Posts Query
🏆Final Chapter: Resources to Learn about the Posts Query
For example, it's possible to create a custom table for post views in database, then include a view counter field in post items.
Read my new tutorial for advanced WP developers:
How to Extend WordPress Posts Query and Join Custom Tables?
You can use examples in this tutorial to create a DIY post view counter plugin.
Here is the Roadmap that you can use to navigate to every chapter of this tutorial:
🥇Chapter 1: WP Way of Handling Post Storage in Database
🥈Chapter 2: Extend and Modify Posts Query in WordPress
🥉Chapter 3: Build a Post View Counter by Extending Posts Query
🏅Chapter 4: Tips for Extending WordPress Posts Query
🏆Final Chapter: Resources to Learn about the Posts Query
Mehdinazari
How to Extend WordPress Posts Query and Join New Tables
Learn Extending Posts Query in WP, Join Custom Tables and add new fields to Post Items In this advanced WordPress Development tutorial. I'll explain how to include data from Custom Tables into the MySQL query of WP Posts. For a practical example,
💪 WordPress vs. Laravel 🦾
Which one is the best for web development projects?
Which one is the best for web development projects?
Mehdinazari
WordPress vs. Laravel: The Most Promising in the Year 2023!
Are you choosing between WordPress and Laravel for your following website? Read this in-depth article to understand the difference between WordPress and Laravel. This article includes WP and Laravel statistics, use cases, predictions, other
Today i wrote an article about Top 10 tools for WordPress Designers and Developers.
You can read it on my blog:
10+ Powerful Tools for WP Developers in the Year 2023!
You can read it on my blog:
10+ Powerful Tools for WP Developers in the Year 2023!
Mehdinazari
10+ Powerful Tools for WP Developers in the Year 2023!
Do you want to be a professional WordPress developer? Prepare yourself with the Top 10 Software to design astonishing WordPress Themes and develop useful plugins. Some of these tools are free to use for developers. Also, This article includes 10+
When i started writing my recently published tutorial about WordPress absint() function, I did not expect it to be this much surprising, even for myself!
absint() supposed to get a number, and convert it to positive in return.
But this simple function may return unexpected results based on your passed value.
For example, absint() also accepts string data type.
But what happens if you pass a non-numeric string?
Or a mixed string of numbers and characters?
Can absint() function calculate math operation inside a string?
What about array elements or object?
To find answers of these questions (and many more!) checkout the examples at the bottom of my tutorial about this function.
absint() supposed to get a number, and convert it to positive in return.
But this simple function may return unexpected results based on your passed value.
For example, absint() also accepts string data type.
But what happens if you pass a non-numeric string?
Or a mixed string of numbers and characters?
Can absint() function calculate math operation inside a string?
What about array elements or object?
To find answers of these questions (and many more!) checkout the examples at the bottom of my tutorial about this function.
Mehdinazari
How to Use absint Function in WordPress [7 Examples]
The absint function in WordPress accepts a number and converts it to a positive integer. This function also converts a float number to a positive integer value. But what is the return if you pass Boolean or Array instead? Find the answer in my 7
New tutorials on WordPress development:
How to Programmatically Activate a Plugin in WordPress
How to Add Thumbnail Support to WordPress Theme
How to Use add_theme_support Function in WordPress
How to Add a Custom Section to Settings page in WordPress
How to Programmatically Activate a Plugin in WordPress
How to Add Thumbnail Support to WordPress Theme
How to Use add_theme_support Function in WordPress
How to Add a Custom Section to Settings page in WordPress
Mehdinazari
How to Programmatically Activate a Plugin in WordPress?
Learn how to activate a plugin programmatically in WP by using the activate_plugin function. In this WordPress tutorial, we'll review the activate_plugin() function and teach you how to activate a plugin in WordPress using PHP, not the admin panel.