Wordpress - Images not showing up in the Media Library

前端 未结 12 1954
春和景丽
春和景丽 2021-01-01 15:48

I have a huge problem with my Wordpress. My uploaded images don\'t list in the Media Library.

It is weird tho, it says I have 75 images, but display none. Take a loo

12条回答
  •  既然无缘
    2021-01-01 16:21

    Ubuntu stores uploads in /var/lib/wordpress/wp-content/uploads . So what you need is to have this directory within your wordpress installation. Something like:

    sudo ln -s /var/lib/wordpress/wp-content/uploads /var/www/www.mysite.com/wp-uploads
    

    (replace mysite.com with your domain, the file should exist) should do the trick.

    (Note that I've not tested this with multiple wordpress installations on one server.)

    Further note that to make upload work at all (but this wasn't the question), you need to change Settings / Media / Store uploads in this folder to

     wp-content/uploads
    

    (no leading slash).

提交回复
热议问题