Mehdi Nazari: WordPress Developer

Tips for WordPress plugin development, WordPress template design and WordPress SEO by experienced WordPress developer Mehdi Nazari

How to Extend WordPress Posts Query and Join New Tables

How to Get Post Date with Custom Format in WordPress! (+Shortcode)

How to Check if the Current Page is a Single Post in WordPress

How to Check if the Current Page is WordPress Search Page

How to Change ‘Howdy Admin’ in WP Toolbar (or remove it for the love of God!)

How to Check if the Current Page is a Tag in WP (+Example)

How to Check if the Current User is logged in WordPress?

How to Get the ID of Current Logged in User from WordPress!

How to Detect WP Home Page (Posts Page or Static Front Page)

How to Check if the Current Page is a Category in WordPress!

How to Check if a Post has a Specific Tag in WordPress

How to Exclude WordPress Posts from a Query by Keyword in Title

How to Get Users in WordPress (+Shortcode to Print Users in a List)

How to Retrieve a Post’s Format in WordPress

How to Remove a User Role from WordPress (with example)

How to Check if a Post Exists in WordPress (+Example)

How to get Plugin Directory Path in WordPress (+Example)

How to List All Authors in WordPress (Shortcode Included!)

How to Check if a Post is Sticky in WordPress (+Example)

How to Check if the Current User is Administrator in WP

How to Check if a Post is in Specific Categories (+Example)

How to Check if Content has a Specific Shortcode in WP

How to get Post Thumbnail URL with Custom Size

How to Set or Get a Custom Field for a Post in WP

How to get Page by Title in WordPress (+Example)

How to get the Previous Post Link in WordPress

How to get the Next Post URL in WordPress (Working Example)

How to get Publish Date of The Last Post in WordPress

How to get the Current Theme URL in WordPress

How to get Home URL in WordPress (Usage Example)

How to get a Comment’s Details by ID in WordPress

How to get Category ID by Name in WordPress

How to Count Users in WordPress (Example + Shortcode)

How to Count Comments on a Post in WP Programmatically

How to Add a Custom Shortcode to WordPress (+Example)

How to Register a Custom Image Size in WordPress (+Example)

How to Set Post Excerpt Lenght in WordPress

How to get Associated Tags to a WordPress Post (5 Examples)

How to get Categories of a Post in WordPress (3 Examples!)

How to get Post Title in WordPress (2 Examples!)

How to get WordPress Post Date using PHP (+2 Examples)

4 Special Ways to Unpublish a Post Programmatically in WordPress!

How to Query WordPress Categories, Tags and Taxonomies

WordPress Query Posts by Category, Tag, Custom attribute, and more!

WordPress Action and Filter Hooks Tutorial (+10 Examples)

How to create a Hello World plugin for WordPress in 3 Steps

How to set publishing date and time for a WordPress post Programmatically

I’m Mehdi Nazari, a WordPress Developer.

Menu