未加载到我的wordpress主题中的图像
我制作了一个网站的html/css模型,并希望将该静态网站集成到wordpress中。但是,图像没有出现,我得到的图像路径是url未加载到我的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代码。谁能帮帮我吗 对于您需要的内容
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个字符。缺少结束报价。