I am a beginner who started creating a site with wordpress.

The plug-in Exec-php no longer works, so it no longer reads php code written directly on a fixed page.

Therefore, I wrote a short code that reads a php file in a fixed page or post,

The short page is read on the posting page, but not on the fixed page.

function include_echo_php ($atts) {
ob_start ();
get_template_part ('template-parts/echo');// read template-parts/echo.php
return ob_get_clean ();
add_shortcode ('include_echo&apos ;,'include_echo_php');

Added the above code to the functions.php file.

I want to read the short code on a fixed page, but it is not reflected.

Do you know where the problem is in the above writing?