Modify admin bar in WordPress

When you develop websites for clients, maybe sometimes they want to change some elements in admin bar, such as add/remove menus, etc.. how can you do that? I was in…

Create a custom post type in WordPress

WordPress has five built-in post types, they are post, page, attachment, revision and nav_menu_item (navigation menu) but in some cases, we have to create our custom post type for specific reasons. The function below will…

Using WordPress shortcode

WordPress shortcode is a special tag that allow you to do various things with little effort. It helps you to create functions and use them within your  post content. A shortcode might look like these: [shortcode_name] [shortcode_name param1=’value1′ param2=’value2′]…

Custom fields in WordPress

Custom field or post meta is a feature that allows users to add additional information when writing a post. This article will show you how to create custom fields in…

Custom meta box in WordPress

WordPress supports us several of meta boxes such as Categories, Tags, Excerpt, Discussion, Author, .. but sometimes we have to create, remove or modify meta boxes for specific reasons. Create meta…