Why “Store uploads in this folder” option is not showing in Media Settings in WordPress

wordpress.stackexchange https://wordpress.stackexchange.com/questions/321402

  •  14-04-2021
  •  | 
  •  

Pregunta

I have two sites running WordPress 4.9.8

On one site I can see "Store uploads in this folder" option on in Media Settings

enter image description here

On another site I cannot see "Store uploads in this folder" option in Media Settings

enter image description here

I am admin on both sites. Why it happens? How to make it visible on both sites? Thank you

¿Fue útil?

Solución

While the other answers cover part of the answer (old WP install), it is important to note: The options appear, if one of the options is set. They are stored via the keys upload_path and upload_url_path.

Before:

enter image description here

Run (or add directly in the DB)

$ wp option set upload_path foo
$ wp option set upload_url_path bar

After:

enter image description here

As has been mentioned, these options are deprecated and shouldn't be used anymore.

Otros consejos

IIRC the option was softly deprecated sometime in the past, but if you have an old install it will still be indicated that it should be displayed and let the user edit it.

The second site is probably newer

(answering the question literally, if you need to be able to change it and can not find the relevant option, just say so in the comments)

I think that the second site is running on a newer WordPress version, rather than 4.9.8. That's why, you are not seeing the "Store uploads in this folder" option in Media Settings. However, you are seeing it in the first site, as it is running on 4.9.8.

Licenciado bajo: CC-BY-SA con atribución
scroll top