Working on FIW.ME!

We are currently working on a next generation URL shortener!

Category: Tips and Tricks

Create your own WordPress theme from scratch [Part 3]

In last part we have coded index.php and header.php,  here we will code content.php, this page will display the posts and search results, and posts under categories, pages , etc. here is the code for content.php

The above code looks to0 complicated, let me break it for you line by line.

Create your own WordPress theme from scratch [Part 2]

Here is a basic theme idea, how the things are gonna be arranged in the theme. First, create a empty folder in wordpress’s main directory -> wp-content -> themes, name the new folder as testtheme. Now create a new css style sheet named style.css and add the below code to it and save it to empty folder of theme.

Download and save content from web to local storage using PHP

You may want to automate the task downloading files from the web or remote area to your local storage space, you can use the PHP for this purpose. It can be done by using the code below.

fopen() : this function is used to open the file in specified mode. There are several file open modes in php. ‘r’…