wp print_thumbnail 功能不起作用 [英] wp print_thumbnail function is not working

查看:17
本文介绍了wp print_thumbnail 功能不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

wordprees print_thumbnail 功能在测试服务器上正常工作,但在在线服务器上无法正常工作并提供错误的图像路径,例如 */var/www/vhosts/vinehospitality.co.za/httpdocs//wp-content/上传/2011/12/slide-10-108048_56x56.jpg*.所以请帮助我获得正确的网址.

wordprees print_thumbnail function is working correctly on testing server but it's not working on online server and giving wrong image path such as */var/www/vhosts/vinehospitality.co.za/httpdocs//wp-content/uploads/2011/12/slide-10-108048_56x56.jpg*. So kindly help me to get proper url.

网站链接:http://vinehospitality.co.za.plesk15.wadns.net

在此服务器上托管时发现同样问题.

Same problem is found in hosted on this server.

问候尼拉吉

推荐答案

它不仅有效,而且对我来说更容易.

Not only did it work, it was SO MUCH easier for me.

只需删除您在媒体设置中拥有的任何自定义链接.如果你没有,那就把任何东西放在那里..

Simply, delete whatever custom link you have in Media Settings. If you don't have one just put anything there..

然后保存,再次,放回原来的路径,保存.

Then save, again, put back the original path you have before, save.

成功了!

不知何故,当您移动服务器并且不重新保存媒体设置时,wordpress 似乎读取了错误的值.

Somehow it seems wordpress reads the wrong values when you move servers and you don't resave media settings.

这篇关于wp print_thumbnail 功能不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆