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"
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 运筹学排序问题中的在线排序
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥30 求一段fortran代码用IVF编译运行的结果
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 lammps拉伸应力应变曲线分析
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题