Yes, I know that we have get_template_directory_uri();
in referencing to the theme's directory. It's working when I put the following code inside index.php
or in header.php
:
<img src="<?php echo get_template_directory_uri(); ?>/images/sample.png">
But when I'm adding an image inside pages when editing via text, not in visual, it isn't working. How can I get the images from theme's images directory into the pages?
Thanks!