How do i reference images in a page/post without installing the php plugin or typing it out manually like this:
domain.com/wp-content/themes/mytheme/image.jpg
How do i reference images in a page/post without installing the php plugin or typing it out manually like this:
domain.com/wp-content/themes/mytheme/image.jpg
You must be logged in to post a comment.
Use
get_template_directory_uri()
In child themes use
get_stylesheet_directory_uri()
if you have replaced the image.In a shortcode this would look like this: