【问题标题】:Media isn't showing in Wordpress library but is available in uploads folder媒体未在 Wordpress 库中显示,但在上传文件夹中可用
【发布时间】:2020-04-10 05:03:52
【问题描述】:

我正在尝试将我的网站从共享主机迁移到数字海洋。

我已上传 wp-content,我的网站已使用 3 年以上。 现在,当我在仪表板上查看媒体时。

文件未显示。理想情况下,所有月份都应该是可见的,但正如您在图像中看到的那样,只显示了选定的月份。 如何让 Wordpress 显示所有月份和图像? enter image description here

【问题讨论】:

  • 检查文件权限,如果文件夹路径正确,除非有权限问题,否则应该出现

标签: php wordpress ubuntu digital-ocean


【解决方案1】:

让我知道它是否有效!

The image that is not showing for me has this location!

wp-content/uploads/2019/02/spring.png

I have to check, Whether the permission for uploads folder, 2019 folder and then for 
02 folder are same or not
Go to your wp-content folder 

Then check each folder permission they have to be the same!

In my case they are same now go to your database and delete the upload path in your 
wp-database option

Go to wp-options and look for upload path, it can be on the second page also, search 
for it

cut the path and paste it somewhere else, and make the path empty 

现在再次上传和图像,看看它是否显示在媒体库中。

【讨论】:

  • 我认为您误解了这个问题。 wp-content/uploads 中有文件夹,例如 2017 2018 2019 2020,但在 Wordpress 2019 和 2018 图像的媒体选项中只有 2017 和 2020 可见。
  • 我想你错过了理解这个问题。
猜你喜欢
  • 2018-02-11
  • 1970-01-01
  • 1970-01-01
  • 2016-11-13
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多