Unable to include two widget Files through locate_template in functions.php

I can successfully include one widget in functions.php →

$found = locate_template( 'inc/widgets.php', TRUE, TRUE );

But as soon as I try to install the second like this →

$found = locate_template( 'inc/widget-post.php', TRUE, TRUE );

or like this →

$found2 = locate_template( 'inc/widget-post.php', TRUE, TRUE );

then it generates the →
HTTP ERROR 500

whats wrong?

Read more here: Unable to include two widget Files through locate_template in functions.php

Leave a Reply

Your email address will not be published. Required fields are marked *