WordPress-找不到请求的URL

<a href="where.php" class="nav-item nav-link">Where Are We</a>

尝试在我的header.php中进行导航栏链接, 但得到404, 尽管该文件与我的index.php位于同一目录中。同样, index.php需要header.php文件。对WordPress不太熟悉。

FTP目录

#1


你必须像这样添加链接

<a href="<?php echo esc_url(get_theme_file_uri('where.php'));?>">where are we?</a>

函数get_theme_file_uri生成指向主题文件夹的URL。

来源:

https://www.srcmini02.com/64478.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_37455.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?