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

报告相同问题?