Friday , 17 November 2017
Home / Tag Archives: programming (page 3)

Tag Archives: programming

Extending Classes – PHP OOP Tutorial

Extending Classes

Let’s talk about extending classes for a moment. One of the benefits of using classes is that it’s easy to share your classes with other developers. They can extend the class if you allow them to.  So instead of going into your class and updating the code, they can create a different class that only changes a few things here …

Read More »

Classes, Objects, Instances – PHP OOP Tutorial

Classes, Instances, Instances

Let’s get started by creating our first class and learn a little about what classes, objects, and instances really are. You’ll find that creating classes isn’t so hard. Create a new file called pet.class.php. You don’t have to append the .class after your file name, but it’s common practice to do that so other developers know that this file contains …

Read More »

Getting Started – PHP OOP Tutorial

PHP OOP Tutorial

Welcome! This PHP OOP tutorial series will help you get started with object oriented programming in PHP. If you’ve ever wanted to expand your knowledge, then you’ve come to right place. By learning how to use OOP, you open up new doors that will make your code more efficient and flexible. Before you get started This tutorial assumes you have …

Read More »

Conclusion – WordPress Theme Tutorial

Conclusion

Congratulations! You now know how to create a WordPress theme. Of course, your journey isn’t over yet. You should take it to the next level by learning how to create Plugins. You should understand that WordPress offers it’s APIs for both plugins and themes. For a list of WordPress’s APIs then click here. http://codex.wordpress.org/WordPress_APIs While we didn’t cover these APIs, …

Read More »

Custom Templates – WordPress Theme Tutorial

Custom Templates

By creating our own templates for certain pages, we make our theme dynamic and flexible. Though, in some situations you’ll want to create a template that WordPress isn’t aware of. For example, our page template is one way to display a page, but what if we wanted a full width page instead of one with widgets. We still want to …

Read More »

Error 404 Page Template – WordPress Theme Tutorial

Error 404 Page Template

Creating your own custom error messages in WordPress is easy. We’ll be creating a template for our 404 page. Create a new file called 404.php and add this bit of code. [crayon-5a0f50a3b53b1481139345/] Try visiting a random page in your blog and you should see this message appear. Very simple right? WordPress will automatically look for this page when someone visits …

Read More »

Single Post and Page Templates – WordPress Theme Tutorial

Single Post and Page Templates

WordPress is pretty smart when it comes to knowing what pages to use. The only template file you need is index.php. While it works great for our home page, it doesn’t work so well for displaying categories, archives, pages, and single posts. You can actually create a template for those pages. Before WordPress decides on what page template to use, …

Read More »

The Loop – WordPress Theme Tutorial

The Loop

In this tutorial, we’ll be discussing how to use the WordPress loop. The loop is PHP code by WordPress that displays posts for us. It’s quite simple to use and it gives us tons of information about a post. It allows us to display and format posts in any way we want. Let’s open up our functions.php file and add …

Read More »

Creating Widget Areas – WordPress Theme Tutorial

Creating Widget Areas

Let’s start creating widget areas in our WordPress theme. We will have a total of 5 widget areas. One will be our sidebar and the other 4 will be put in the footer. Creating a widget area is very simple. Registering A Widget Area Open up your functions.php file and add this bit of code. [crayon-5a0f50a3b7068088999895/] The register_sidebar() function is …

Read More »

WordPress Theme Menu Support

WordPress Theme Menu Support

Having a dynamic theme is important. It allows the user to customize  your theme to their liking. In this tutorial, we’re going to learn how to add WordPress theme menu support. This will allow our users to change the items in the menu with their own titles and links. Adding WordPress Theme Menu Support Before we start displaying the menus, …

Read More »
ULTIMATE WORDPRESS DEVELOPMENT COURSE
Want to learn how to create your own custom WordPress plugins and themes? Check out my course!
Get 93% off my course. You'll also learn how to integrate WooCommerce and BuddyPress into your projects. This is a limited time offer
Yes, I would like to get 93% off your course!
No Thanks!
close-link