I've an include

include ('myfile.php');

Now, I'm using wordpress and to obtain the template path I personally use:

<?php echo get_template_directory_uri(); ?>

My real question is:

How do i use both together?

Like:

<?php

include('<?php echo get_template_directory_uri(); ?>/myfile.php');

?>

Thanks

include(get_template_directory_uri() . "/myfile.php");

The [cde] function just requires a string parameter. Nothing special about this.

You should use caused by the function within the include, although not by echo:ing it. Only use it directly.

include()