Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
未加载到我的wordpress主题中的图像_Wordpress_Image - Fatal编程技术网

未加载到我的wordpress主题中的图像

未加载到我的wordpress主题中的图像,wordpress,image,Wordpress,Image,我制作了一个网站的html/css模型,并希望将该静态网站集成到wordpress中。但是,图像没有出现,我得到的图像路径是urllocalhost/wordpress/logo.png 我正在本地主机上开发它,因此localhost/wordpress/wp content/themes/mytheme 以及localhost/wordpress/wp content/themes/mytheme/images/上的图像 我听说每个图像中都必须使用一些php代码。谁能帮帮我吗 对于您需要的内容

我制作了一个网站的html/css模型,并希望将该静态网站集成到wordpress中。但是,图像没有出现,我得到的图像路径是url
localhost/wordpress/logo.png

我正在本地主机上开发它,因此
localhost/wordpress/wp content/themes/mytheme
以及
localhost/wordpress/wp content/themes/mytheme/images/
上的图像


我听说每个图像中都必须使用一些php代码。谁能帮帮我吗

对于您需要的内容,您必须使用以下内容:

<?php echo get_template_directory_uri() . '/images/logo.png; ?>

您的问题中没有任何代码,很难确定问题。如果图像的url是
localhost/wordpress/logo.png
为什么您希望在
localhost/wordpress/wp content/themes/mythemes/images
中找到它?此外,这不是wordpress中的图像应该放在哪里,它们放在
。/wordpress/wp content/uploads
如何/在哪里插入图像?它不允许我建议编辑,因为它<6个字符。缺少结束报价。