Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove date from wordpress images?

Tags:

php

wordpress

When I upload images in Wordpress I get:

http://test.net/wp-content/uploads/2011/04/test_image.jpg

however I would like it like this:

http://test.net/wp-content/uploads/test_image.jpg

See how the date isn't in the URL on the 2nd one? Anyways, is that possible? To remove the date stamp from the Image URL?

like image 900
test Avatar asked May 01 '11 02:05

test


People also ask

How do I remove the date stamp in WordPress?

From the WordPress DashboardGo to the Admin Dashboard > Settings > General. Look for the Date Format section, then select “Custom Format”. Erase everything there. Save Changes to erase the date.

Can you remove date from WordPress?

You can remove the date from WordPress posts using the WordPress theme editor. To do so, navigate to Appearance > Theme Editor from your WordPress dashboard. Under the Template-parts folder, select the template file, mostly named content. php, and remove the date code.

How do I change the date of a picture in WordPress?

Workaround is to create a post with the same date as the folder you want to upload the image to. Then upload the image from within that post. WP will put it in the matching year/month folder.


1 Answers

Log into your WP admin, and go to Settings > Media and make sure the "Organize my files into month- and year-based folders" option is not checked.

On the same settings page, you can change the default upload folder altogether.

Hope this helps !

like image 60
Valentin Flachsel Avatar answered Sep 28 '22 04:09

Valentin Flachsel