Generated by All in One SEO v4.9.8, this is an llms.txt file, used by LLMs to index the site. # Mehdi Nazari: WordPress Developer Tips for WordPress plugin development, WordPress template design and WordPress SEO by experienced WordPress developer Mehdi Nazari ## Sitemaps - [XML Sitemap](https://mehdinazari.com/sitemap.xml): Contains all public & indexable URLs for this website. ## Posts - [How to Query Posts by Category, Tag, Custom Attribute, ETC](https://mehdinazari.com/wordpress-query-posts/) - [983 WordPress Education Themes | June 2023 Compare](https://mehdinazari.com/wordpress-education-themes/) - I found 979 WordPress Education Themes, free & premium, and reviewed them to tell you the best theme for WordPress educational websites (statistics + charts) - [How to Set Post Publish Date Programmatically in WordPress](https://mehdinazari.com/new-post-after-a-while/) - [4 Special Ways to Unpublish Post Programmatically in WordPress!](https://mehdinazari.com/unpublish-posts-programmatically-wordpress/) - [How to Get WordPress Post Date Using PHP (+2 Examples)](https://mehdinazari.com/post-date-wordpress/) - Retrieving Publish Date of a Post in WordPress is an easy task to do. We'll retrieve post attributes using a specific Post ID or current queried post id. - [How to Get Post Title in WordPress (2 Examples!)](https://mehdinazari.com/post-title-wordpress/) - get_the_title is the core function responsible to retrieve Post Title in WordPress. We'll try this function inside loops and with a specific post ID. - [How to Get Categories of a Post in WordPress (3 Examples!)](https://mehdinazari.com/categories-of-post-wordpress/) - wp_get_post_categories function will help WordPress developers retrieve post categories (Name, ID, Slug, ETC) - [How to Get Associated Tags to a WordPress Post (5 Examples)](https://mehdinazari.com/tags-of-post-wordpress/) - WordPress get_the_tags function is responsible to retrieve associated tags of a post. WordPress developers need to specify post ID to receive tags information - [How to Set Post Excerpt Length in WordPress](https://mehdinazari.com/how-to-set-post-excerpt-lenght-in-wordpress/) - [How to Register a Custom Image Size in WordPress (+Example)](https://mehdinazari.com/register-custom-image-size-wordpress/) - [How to Add a Custom Shortcode to WordPress (+Example)](https://mehdinazari.com/add-custom-shortcode-wordpress/) - [How to Count Comments on a Post in WP Programmatically](https://mehdinazari.com/how-many-comments-post-has-wordpress/) - [How to Count Users in WordPress (Example + Shortcode)](https://mehdinazari.com/count-users-wordpress-php-code/) - WP Developers can retrieve the number of registered users when developing plugins or themes. Use the count_users function to get the count of users. - [How to Get Category ID by Name in WordPress](https://mehdinazari.com/get-category-id-by-name-wordpress/) - sible to retrieve category ID from a given category name. I'm going to try the get_cat_ID function in an example to make the usage more clear. - [How to Get Comment Details by ID in WordPress](https://mehdinazari.com/get-comment-information-by-comment-id-wordpress/) - [How to Get Home URL in WordPress [Example]](https://mehdinazari.com/get-home-url-wordpress/) - get_home_url retrieves the Home Page URL of a WordPress website. get_home_url is used by developers when they want to use links in the development process. - [How to Get the Current Theme URL in WordPress](https://mehdinazari.com/get-current-theme-url-wordpress/) - When developing WordPress, retrieving the Current Theme URL is helpful, especially to load file URLs located under the Current Theme directory. - [How to get Publish Date of The Last Post in WordPress](https://mehdinazari.com/get-publish-date-of-the-last-post-wordpress/) - WordPress has two perfect functions to get Publish Date of the Last Post. get_lastpostdate and get_lastpostmodified functions are helpful - [How to get the Next Post URL in WordPress (Working Example)](https://mehdinazari.com/get-next-post-url-wordpress/) - WordPress get_next_post_link function helps developers to retrieve the URL of the next post when the user is currently inside one. - [How to get the Previous Post Link in WordPress](https://mehdinazari.com/get-previous-post-link-wordpress/) - [How to Get Page by Title in WordPress (+Example)](https://mehdinazari.com/get-page-by-title-wordpress/) - Getting full details of a page by title is not that challenging in WordPress. WP has a function named get_page_by_title that is useful. - [How to Set or Get a Custom Field for a Post in WP](https://mehdinazari.com/set-get-custom-field-of-post-wordpress/) - [How to get Post Thumbnail URL with Custom Size](https://mehdinazari.com/get-wordpress-thumbnails-specific-sizes/) - WordPress generates different sizes for each uploaded image in the admin panel. Also, WordPress developers can register custom sizes for future generating. - [How to Check if Content has a Specific Shortcode in WP](https://mehdinazari.com/check-if-content-has-specific-shortcode-wordpress/) - Checking if a specific shortcode is available in content is an easy task to handle while developing WordPress. has_shortcode is the function available in WP - [How to Check if a Post is in Specific Categories (+Example)](https://mehdinazari.com/check-if-a-post-specific-category/) - Checking if a post is in a specific category can help developers serve functionalities. the WordPress in_category can check if a post has a category checked - [How to Check if the Current User is Administrator in WP](https://mehdinazari.com/check-if-the-current-user-is-an-admin-wordpress/) - User authentication in WordPress is essential. Detecting if the current user is an administrator is not challenging, using the current_user_can function - [How to Check if a Post is Sticky in WordPress (+Example)](https://mehdinazari.com/check-if-a-post-is-sticky-or-not-wordpress/) - [How to List All Authors in WordPress (Shortcode Included!)](https://mehdinazari.com/how-to-list-all-authors-in-wordpress-using-code/) - In this WordPress tutorial, We'll list all authors using the wp_list_authors function. You can use this WordPress functionality in different scenarios. - [How to Check if a Post Exists in WordPress (+Example)](https://mehdinazari.com/check-if-post-exists-in-wordpress/) - WordPress has many ways to check a post's existence based on ID, title, content, date, and ETC. get_post and post_exists are two useful functions in WordPress - [How to Check if the Current Page is a Category in WordPress!](https://mehdinazari.com/check-if-the-current-page-is-category-in-wordpress/) - [How to Check if the Current Page is a Category in WordPress!](https://mehdinazari.com/check-if-the-current-page-is-category-in-wordpress/) - [How to Detect WP Home Page [Default or Static Front Page]](https://mehdinazari.com/check-if-the-current-page-is-home-page/) - [How to Check if the Current Page is a Tag in WP (+Example)](https://mehdinazari.com/check-if-the-current-page-is-a-tag-page-in-wordpress/) - [How to Check if the Current Page is a Post in WordPress](https://mehdinazari.com/check-if-current-page-is-single-post-wordpress/) - [WordPress vs. Laravel: The Most Promising in the Year 2023!](https://mehdinazari.com/wordpress-laravel-compare-2023/) - [How to Programmatically Activate a Plugin in WordPress](https://mehdinazari.com/activate_plugin-wordpress-function/) - [How to Add a Custom Section to Settings Page in WordPress](https://mehdinazari.com/add_settings_section-wordpress-function/) - [How to Add New Shortcode to WordPress! [+2 Examples]](https://mehdinazari.com/add-shortcode-wordpress/) - [How to Add a New Field to WordPress Admin Settings!](https://mehdinazari.com/add-settings-field-wordpress/) - [2 Simple Ways to Get WordPress Root Path](https://mehdinazari.com/get-wordpress-root-path/) - Here we introduce two easy solutions for retrieving WordPress Root Path using a PHP function and a constant: get_home_path WP function and ABSPATH constant. - [How to Get Category Names by Post ID in WordPress!](https://mehdinazari.com/get-category-names-post-id-wordpress/) - [How to Create a Hello World Plugin for WordPress [2023]](https://mehdinazari.com/how-to-create-hello-world-plugin-for-wordpress/) - [WordPress Action and Filter Hooks Tutorial (+10 Examples)](https://mehdinazari.com/wordpress-action-filter-hooks-tutorial/) - [How to Query WordPress Categories, Tags & Custom Taxonomies!](https://mehdinazari.com/query-wordpress-categories-tags-taxonomies/) - [How to Get Post Format by Post ID in WordPress](https://mehdinazari.com/retrieve-a-post-format-wordpress/) - [How to Remove a User Role from WordPress (with example)](https://mehdinazari.com/remove-role-from-wordpress/) - [How to Check if Post has a Specific Tag in WordPress](https://mehdinazari.com/check-if-post-has-specific-tag-wordpress/) - [How to Get Plugin Directory Path in WordPress (+Example)](https://mehdinazari.com/get-plugin-directory-path-wordpress/) - WordPress has many functions to retrieve correct directory paths for developers. one of the functions is plugin_dir_path, it retrieves current plugin directory - [How to Get Users in WordPress (+Print Users List Shortcode)](https://mehdinazari.com/list-users-in-wordpress-programmatically/) - [How to Get Users in WordPress (+Print Users List Shortcode)](https://mehdinazari.com/list-users-in-wordpress-programmatically/) - [How to Exclude Posts with a Word from WordPress Query](https://mehdinazari.com/exclude-wordpress-posts-keyword-in-title/) - [How to Exclude Posts with a Word from WordPress Query](https://mehdinazari.com/exclude-wordpress-posts-keyword-in-title/) - [How to Get the ID of Current Logged in User from WordPress!](https://mehdinazari.com/get-the-current-user-id-wordpress/) - [How to Check if the Current User is logged in WordPress](https://mehdinazari.com/check-if-user-is-logged-in-wordpress/) - [How to Check if the Current User is logged in WordPress](https://mehdinazari.com/check-if-user-is-logged-in-wordpress/) - [How to Get Post Date with Custom Format in WordPress [Shortcode]](https://mehdinazari.com/get-post-date-special-date-formats-wordpress/) - [How to Check if the Current Page is Search Page in WordPress](https://mehdinazari.com/check-if-the-current-page-is-wordpress-search-page/) - [How to Change or Remove ‘Howdy Admin’ in WordPress Toolbar](https://mehdinazari.com/change-howdy-admin-wp/) - [How to Extend WordPress Posts Query and Join New Tables](https://mehdinazari.com/join-custom-tables-with-wordpress-posts-query/) - [How to Use absint Function in WordPress [7 Examples]](https://mehdinazari.com/absint-wordpress-function/) - WordPress absint function converts any number to positive. But even for pro WP developers, absint() function can be surprising sometimes. Do you know why?😯 - [How to Use add_theme_support Function in WordPress](https://mehdinazari.com/add_theme_support-wordpress-function/) - [How to Add Thumbnail Support to the WordPress Theme](https://mehdinazari.com/how-to-add-thumbnail-support-to-the-wordpress-theme/) - [267 Emotional Words You See in the Popular Post Titles!](https://mehdinazari.com/emotional-words-for-post-titles/) - [171 Power Words You See in the Innovative Post Titles!](https://mehdinazari.com/power-words-for-post-titles/) - [59 Common Words You Want in the Attractive Post Titles!](https://mehdinazari.com/common-words-for-post-titles/) - [53 Uncommon Words You Need Insanely in Unique Post Titles!](https://mehdinazari.com/uncommon-words-for-post-titles/) - [How to Switch Theme in WordPress Programmatically](https://mehdinazari.com/switch-theme-wordpress-programmatically/) - [How to Add One Custom Field for Many Posts in WordPress](https://mehdinazari.com/add-custom-field-multiple-posts-wordpress/) - Use this code snippet to add the same meta data value for multiple WordPress posts at once. Here I provided solutions that save one custom field in many posts. - [10+ Powerful Tools for WP Developers in the Year 2023!](https://mehdinazari.com/tools-for-wordpress-developers-designers/) - Do you want to be a WordPress developer? Prepare yourself with the Top 10 Software to design astonishing WordPress Themes and develop useful plugins! - [I'm Mehdi Nazari, a WordPress Developer.](https://mehdinazari.com/hello-world/) ## Pages - [Contact Mehdi Nazari, WordPress Developer](https://mehdinazari.com/contact-me/) - [Contact Mehdi Nazari, WordPress Developer](https://mehdinazari.com/contact-me/) ## Categories - [WordPress](https://mehdinazari.com/category/wordpress/) - [WordPress Theme Development](https://mehdinazari.com/category/wordpress/wordpress-themes/) - [WordPress Plugin Development](https://mehdinazari.com/category/wordpress/wordpress-plugins/) - [WordPress Tips](https://mehdinazari.com/category/wordpress/wordpress-tips/) - [WordPress Functions](https://mehdinazari.com/category/wordpress/wordpress-functions/) - [WordPress Hooks](https://mehdinazari.com/category/wordpress/wordpress-hooks/) - [WordPress Admin Panel](https://mehdinazari.com/category/wordpress/wordpress-admin-panel/) - [Web Design](https://mehdinazari.com/category/web-design/) - [Web Development](https://mehdinazari.com/category/web-development/) - [SEO](https://mehdinazari.com/category/seo/) - [WordPress Showcase](https://mehdinazari.com/category/wordpress/wordpress-showcase/) - [WordPress Facts](https://mehdinazari.com/category/wordpress/wordpress-facts/) - [Top WordPress Themes](https://mehdinazari.com/category/wordpress/top-wordpress-themes/) ## Tags - [Test driven development tips](https://mehdinazari.com/tag/test/) - [WordPress tutorials for beginners](https://mehdinazari.com/tag/wordpress-tutorials-for-beginners/) - [WordPress plugin development for beginners](https://mehdinazari.com/tag/wordpress-plugin-development-for-beginners/) - [WordPress Hooks](https://mehdinazari.com/tag/wordpress-hooks/) - [WordPress Actions](https://mehdinazari.com/tag/wordpress-actions/) - [WordPress Filters](https://mehdinazari.com/tag/wordpress-filters/) - [WordPress Functions](https://mehdinazari.com/tag/wordpress-functions/) - [WordPress Tags](https://mehdinazari.com/tag/wordpress-tags/) - [Advanced WordPress Tutorials](https://mehdinazari.com/tag/advanced-wordpress-tutorials/) - [Extend WordPress Functionalities](https://mehdinazari.com/tag/extend-wordpress-functionalities/) - [WordPress Custom Field Development](https://mehdinazari.com/tag/wordpress-custom-field-development/) - [Using Meta Data in WordPress](https://mehdinazari.com/tag/using-meta-data-in-wordpress/) - [WordPress Themes Review](https://mehdinazari.com/tag/wordpress-themes-review/) - [Introducing WordPress Themes](https://mehdinazari.com/tag/introducing-wordpress-themes/) - [Best WordPress Themes](https://mehdinazari.com/tag/best-wordpress-themes/) - [Comparing WordPress Themes](https://mehdinazari.com/tag/comparing-wordpress-themes/)