For organisation, I'm trying to split up the functions.php file into separate files. In particular the functions for shortcodes in a separate file, with the shortcodes being defined in functions.php. Here's the code in the functions.php:-
locate_template( array( 'inc/shortcode-functions.php' ), true, true ); add_shortcode( 'abc-row', 'echo_abc_row' ); add_shortcode( 'abc-span', 'echo_abc_span' );
I have taken the code out of inc/shortcode-functions.php into the functions.php, so does appear to work, and no error is coming up in debug mode, so I'm a bit stumped. Any ideas?