Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/293.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
Php 无法从“图像”文件夹中获取img_Php_Wordpress_.htaccess - Fatal编程技术网

Php 无法从“图像”文件夹中获取img

Php 无法从“图像”文件夹中获取img,php,wordpress,.htaccess,Php,Wordpress,.htaccess,到03.png的实际路径是: public_html/wp-content/themes/discovery/images/03.png footer.php(放置在主题根目录中): 这是我的.htaccess文件,放在public_html中 # Do not remove this line, otherwise mod_rewrite rules will stop working RewriteBase / 我尝试了各种文件/文件夹权限-755-744-644,但没有成功 任何帮助

03.png
的实际路径是:

public_html/wp-content/themes/discovery/images/03.png
footer.php(放置在主题根目录中):

这是我的.htaccess文件,放在public_html中

# Do not remove this line, otherwise mod_rewrite rules will stop working

RewriteBase /
我尝试了各种文件/文件夹权限-
755-744-644
,但没有成功

任何帮助。

试试这个

<img id="smoothup" src="<?php echo get_template_directory_uri() . '/images/03.png';?>" alt="top">  
“alt=”top“>
试试这个

<img id="smoothup" src="<?php echo get_template_directory_uri() . '/images/03.png';?>" alt="top">  
“alt=”top“>

@Starkeen,这是我的
htaccess
文件。我在wordpress帮助中看不到我需要在其中写入内容的地方。@Starkeen,这是我的
htaccess
文件。我在wordpress的帮助中看不到我需要在其中写点什么。
<img id="smoothup" src="<?php echo get_template_directory_uri() . '/images/03.png';?>" alt="top">