Creating an external file to manage functions separately from the theme


show more Creating an external file to manage functions separately from the theme provides you with in-depth training on Design. Taught by Morten Rand-Hendriksen as part of the Create an Online Portfolio with WordPress show less
please wait ...

Creating an external file to manage functions separately from the theme

This course revolves around using custom post types and custom taxonomies to create separate buckets for separate types of content. These custom post types and custom taxonomies are defined in the functions.php file in the theme. The functions.php file is where core theme functionality is called or created and custom post types and custom taxonomies are core theme functionalities in WordPress. The problem with using custom post types and custom taxonomies is that since they are defined in the functions file for each theme, if you switch to a different theme, the post types and taxonomies disappear.

To avoid this we will create the custom post types and custom taxonomies in a separate file. This file can then be called with an Include function from within the functions.php file in the current theme, and can also be called from any of the other themes, if you're using those instead. I like to call this an obstruction layer. The first step in this process is to create the file where we a...

Creating an external file to manage functions separately from the theme
Video duration: 5m 2s 3h 13m Advanced

Viewers:

Creating an external file to manage functions separately from the theme provides you with in-depth training on Design. Taught by Morten Rand-Hendriksen as part of the Create an Online Portfolio with WordPress

Subjects:
Design Web
Software:
WordPress
Author:
please wait ...