dsb0003795 2015-07-07 20:05
浏览 47
已采纳

是什么将我的图像位置更改为nas / wp / www / cluster?

In trying to debug an issue, there is a Wordpress image slider. It uses ePanel and Chameleon theme. You can set the featured image and the theme will display the featured image in a slider on the home page.

Set up the image for the post as a featured image, save, view the front page it works. Refresh the page 30-seconds later the image is gone. Looking at the page source when the image works it's found at [sitename]/wp-content/uploads/et_temp/Image.png

When the image doesn't work (30 seconds later) it somehow is now looking for the image at [sitename]/nas/wp/www/cluster-####/wp-content/uploads/et_temp/Image.png

Where could the /nas/wp/www/cluster-#### possibly have come from? Confused on where to start looking.

  • 写回答

1条回答 默认 最新

  • dongzhunqiu4841 2015-07-07 20:28
    关注

    try these options to display images on wordpress,

    src="<?php echo base_url()?>your_theme_dir/image_dir/img.ext"
    
    OR
    
    src="<?php bloginfo('template_url'); ?>/image_dir/img.ext"
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效