I've created a simple site specific functions plugin but I'm having some trouble including additional files to it.
Basically I'm trying to keep things separated so I've got one php file for general functions (The default plugin file) and another for custom post types and taxonomies.
Here's a sample of my current code, does anyone know where I'm going wrong?;
<?php
/*
Plugin Name: Functions Plugin
Description: Site specific functions
*/
include( plugin_dir_path( __FILE__ ) . 'types.php');
/* General Functions Here */
?>
types.php
and it exists in the same folder of plugin file? How have you tested that the including is not working? Have you tried your plugin with only this code? If you replaceinclude
withrequire
what happen?