Customizing the Homepage of WooCommerce Storefront and Its Child Themes

By default, Storefront WooCommerce theme by WooThemes displays a maximum number of four(4) feature, recent, on sale and top rated products in four columns while the product categories are in three columns. This also hold true for its child theme save for Boutique which displays a limit of … [Read more...]

Import WordPress Plugins From the SVN Repository to GitHub Properly

Few days ago, I created a free version of my premium plugin ProfilePress and open sourced it on GitHub. Prior to putting it on GitHub, it has been in a private Bitbucket repository where all code changes and deployment to WordPress plugin subversion (SVN) repository are carried out. In this … [Read more...]

How to Remove and Create Hidden WordPress Admin Pages

WordPress provides add_menu_page() and add_submenu_page() for creating top-level menu and sub menu admin pages. Settings pages created with these functions usually appear in the admin menu. In this tutorial, we will learn how to remove admin pages / items from the admin menu and still be able … [Read more...]

Query WordPress Posts in a Custom Post Type and Custom Taxonomy

Here is a quick tip on querying posts that belongs to a custom post type and category / custom taxonomy. Actually, I ran into this problem while working with Easy Digital Downloads plugin. I wanted to query a list of products in a given category. I thought the query will be easy to construct … [Read more...]

Adding Custom Admin Notices & Error alert in WordPress

When developing plugins for WordPress, I seldom use the Settings API to build the plugin settings page instead, I build it from ground-up utilizing the Options API to store the plugin data to the database. Not quite long, I discovered I could use the function add_settings_error() — a member of … [Read more...]

Set Default Editor Mode (TinyMCE / HTML) in WordPress

I recently built a plugin where I needed WordPress to by default always set its editor to Text (HTML) mode and not tinyMCE. This is achievable using the undocumented filer wp_default_editor. To make TinyMCE always display by default, use the code below. [php] function set_default_editor() … [Read more...]

Introduction to WordPress Theme Customization API

As a WordPress user, you'd already be familiar with the impressive features that the CMS brings along. Theme Customization API is one such feature that has taken the WordPress theme customization world by a wave. In this tutorial, you'll get to know about the utilization of WordPress Theme … [Read more...]

How to Add Categories and Post Tags to WordPress Custom Post Type

If you created a custom post type in WordPress and couldn't find the categories and post tags taxonomies, do not fret because the solution is easy. To add categories and post tags to a custom post type, include the taxonomies argument to register_post_type(). [php] function post_type_init() … [Read more...]