How to Add Category Options for Custom Post Types

Adding category options for your custom post type is so easy. If you want your custom posts and the default posts to share the same categories, simply insert the ff. line of code below: Where: h-articles is the id of your custom post type. However, if you want to create a separate set of categories […]

How to Style WP Nav Menu

If you’re creating your own theme and use adding a menu using the standard WordPress function wp_nav_menu(), you will have to style it using CSS in order to make it like the usual navigation menu. This function will return a list of menus you defined or added in Appearance -> Menus. This looks fine if […]

Calling Ajax in WordPress

There are so many ways to call ajax in WordPress, but below is how I do it. 🙂 Add the following functions in PHP file. Add the following functions in JS file.

How to Set Up a WordPress Website

Setting up a WordPress website can be done on your even if you don’t have a background in web development. Whether you want a business website, a blog, or even a ecommerce website, as long as you can follow detailed instructions, you can set it up your own. Step 1: Choose a hosting provider If […]

Adding of Custom Fields in WordPress Category

I have created a class that you can use so that you can easily add custom fields to WordPress category. To use it, follow the simple steps below: Step 1: Download the class and copy it on your plugin or theme folder. Download Now! Do not forget to include it the file using include_once or […]

The Simplest Way to Create Tabs in WordPress

Adding tabs to your WordPress websites is so easy. Just follow the few steps listed below. Step 1: In your php file, add the following: [code] add_action(‘wp_head’, ‘myCustomScriptCSS’); function myCustomScriptCSS() { wp_enqueue_script(‘jquery’); wp_enqueue_script(‘jquery-ui-tabs’); wp_enqueue_script(‘custom-script-id’, ‘path-to-your-custom-script.js’); // ignore this line if you want to use existing .js file wp_enqueue_style(‘custom-style-id’, ‘path-to-your-custom-style.css’); // ignore this line if you […]

How to Add Media Uploader to WordPress Dashboard

By following the tutorial below, you can add as many media uploader field on your wordpress dashboard form. Step 1. call wp_enqueue_media() on your php file. Step 2. Create the button field by adding the codes below: [code]<div class=”uploader”><input id=”image_url” name=”image_url” type=”text” value=”” /> <input class=”button media-uploader” type=”button” value=”Upload” rel=”image_url” /></div>[/code] [note prefix=”Note:”]the id of […]

How to Add Media Uploader to WordPress Front End

Are you creating a plugin or theme and you want the user to uploaded photos, files, etc. on the front end page of the website? Adding a media uploader in the front end is also as easy as adding it on the backend, but you have to used the codes here: