在我的wordpress网站博客页面上, 一些帖子具有特色图片, 在舔这些图片时, 它们重定向到其路径, 我希望它们重定向到该帖子链接。
如何实现呢?
#1
在wordpress中的” the_post();”之后循环(主题中的index.php):
href="<?php the_permalink(); ?>"
在自定义循环中:
href="<?php echo esc_url(get_permalink($single_post->ID)); ?>"
其中$ single_post是posts数组的元素
来源:
https://www.srcmini02.com/65437.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_37284.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57