WordPress is my preferred CMS to use. I use it on all of my websites. Wordpress is used on 58% of the websites that are active in 2015. There are 76,500,000 WordPress users ; obviously if your developing websites there is a good chance that you need to be familiar with this CMS. There are many files that make up the WordPress infrastructure and I want to give you an overview of them.
Basic Template Files
There are many components to a WordPress developed website. There are a number of different Worpress themes so not all of them are going to be exactly alike. It’s important that whenever you’re updating a piece of your website you know the file or files your looking for, so you can make the needed changes. The core files are the index.php (main content), sidebar.php (sidebar), header.php (header), and the footer.php (footer). There are many other template files like the style.css, comments,php, page.php, etc.
The header functions controls a number of different elements of your website’s header. These files will be in the header.php file. When you view the source of a WordPress site this will be all the data that is between the tag. This can be the title of a post/page, WordPress version, HTML version, etc.
The navigation menu is a vital part to our WordPress sites navigation. Wordpress has a very robust navigation menu which is very easy to customize. It’s vital that you know how to change the navigation menu if your specifying a category, page, etc. in your navigation menu.
Functions are fancy names for code that call on specify page/post, sidebar, comments, etc. These functions help us to get WordPress to do exactly what we it to do. This is often used to call on different plugins so that we can get the desired result that we want.
Loops are a very important part to the WordPress infrastructure. The loop is called upon so you can show different post to your visitors. This fetches the data from your database and shows the specified pieces of content.
I have found some good resources that explain WordPress theme files, functions, loops, etc. Please also check out these resources:
Below is an infographic that I created so that you can have it on hand whenever you’re making changes to your WordPress sites. If you would rather have this graphic in .pdf format please feel free to download it here. Please feel free to embed this infographic on your companies website and share it as you see fit.
Embed This Image On Your Site (copy code below):