Create a Graph Using PHP and SVGGraph

Creating a graph is very easy with the aid of SVGGraph library. You can download it here. This library supports almost all kinds of graphs such as pie graph, line graph, bar graph, and many more. In this tutorial, you will learn how to create a simple pie graph using PHP and SVGGraph. Simply copy […]

Create a PDF Using PHP and TCPDF

If you search online about how to create a PDF using PHP, you will find so many ways on how to do it. There are so many libraries that you can download together with easy to follow tutorials. But I prefer to use TCPDF because it allows me to easily create the content based on […]

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:

How to Create a WordPress Plugin

WordPress is carefully designed so plugins we third party can easily customized it without editing the core files. Editing the core files is not recommended because if you do, you can no longer update the WordPress core or you will lose all the edits. The best way to edit the default functionality or add new […]

Why Choose WordPress As Your Website CMS Platform

There are diverse website platform emerging nowadays. For those new to websites, website platform is the one used to run and manage your website. Mostly, it has administrator section where the website owner can manage the website contents without the need to have knowledge in website programming. WordPress is one of the website platform that […]

How to Add/Update Your Plugin Files on WordPress Repository

This tutorial assumes that your plugin has been submitted and approved by WordPress . https://wordpress.org/plugins/add/ Download and install TortoiseSVN Create a folder on your pc, e.g. Documents -> WordPress_Repository -> My Plugin_Name Right click on the folder and click SVN Checkout On the pop up window (see screenshot above), enter the SVN repository path, click […]

How To Create WordPress Child Theme

Why Create Child Theme Oftentimes, we need to customize bought theme to suit with our requirements. But with doing so, we won’t be able to update the theme to it’s latest version or else the changes we made will be overwritten. The avoid this, instead of doing the changes to the theme, we will need […]

How to add New Thumbnail Size in WordPress

If you want to add new thumbnail size, just add the ff: if ( function_exists( ‘add_image_size’ ) ) { add_image_size( ‘my-thumb’, 220, 180, true ); //(cropped) }   to retrieve the image, simple call get_the_post_thumbnail(get_the_ID(), ‘my-thumb’); Note: You have to rebuild thumbnails of older images in the media. To do this, go to Media -> […]

Hide a Post by Displaying the 404 Error Page

Create a function which will check your condition. If the condition is met, set $wp_query->is_404 to true. Then call that function like add_action(‘template_redirect’, ‘functionName’); function functionName() { global $wp_query, $post; if (condition here) { $wp_query->is_404 = true; } } add_action(‘template_redirect’, ‘functionName’);