It’s not your permalink settings, it’s the fact that foo.jpg
was uploaded first and “stole” the slug foo
– you need to change it to something else, then set your page slug.
Go to Media > foo.jpg
> Edit (if you are in grid view, you need to go to “Edit more details”)
From this page you can edit the permalink/slug (just like pages/posts, right beneath the title field) and set it something that isn’t foo
.
Now go re-save your page with slug foo
.
Related Posts:
- Is there a user-facing interface to edit an attachment’s permalink?
- Make attachment pages require a base url
- Adding File Extensions to Attachment Page Permalinks
- WordPress auto generates small medium and large of an image on upload, how can we guess their links?
- Images in media library have suddenly disappeared
- Double Slash After Media Path (uploads//)
- How to Protect Uploads, if User is not Logged In?
- How to Fix HTTP Error When Uploading Images?
- WordPress 3.5: Setting custom “full URL path to files” in the Media Library?
- Upload images to remote server
- Which filters or actions to use after a media upload and delete?
- Protecting direct access to PDF and ZIP unless user logged in (without plugin)
- How to wp_upload_bits() to a sub-folder?
- Change Media Uploader default directory
- How to hide media uploads by other users in the Media menu?
- “Add Media” only shows “Full Size” under Attachment Display Settings
- Where do the favicons for Media Files come from
- Is it possible to trigger some JavaScript when Media Popup is opened?
- How to call WP3.5 Media Library manager?
- Creating a metabox to upload multiple images, Ignoring The Featured Image
- Attach Files Metabox
- How to protect uploads in multisite if user is not logged in?
- Ignore a filter on the media library
- WP3.5 Media Uploader – how to make it accept multiple images?
- Restricting access to files within a specific folder [duplicate]
- WordPress media upload “HTTP error”
- shortcode to output multiple images urls from media library id
- Restrict file types in the uploader of a wp.media frame
- Media library storing files in uploads not folders within in uploads
- How to host different file formats/types for a media attachment without creating multiple attachments?
- How to import 55k images (uploaded via FTP) into WordPress Media libary? [closed]
- Different upload path per file type
- Site icons with alpha channel for self-hosted WordPress blog network
- How do I get allowed Media Library upload file extension list?
- Cannot upload .mp3 file to wordpress media
- HTTP Error when uploading files above 7mb unless using GD Image Editor
- How to link to “most recent” document in the Media Library?
- How to replicate Media Library “Add New” on Plugin Settings Page
- Dynamically create Permalinks for uploaded files?
- How do I fix permalink and media library issues on a LEMP stack?
- Switch between tabs on “Insert Media” dialog
- Bulk edit of EXIF data for jpeg images uploaded in the media library?
- Cannot upload anything via wordpress
- How organize uploaded media in WP?
- Restrict WordPress Media Library for a specific user role (users can only see/select own media)
- Display attachments by the ID of the post being edited in the wp.media frame (frontend)
- Media Gallery Images – safe to change permalink?
- Multisite – Images often getting uploaded to the wrong month directory
- WordPress Issue : The uploaded file could not be moved to wp-content/uploads/
- Convert (-) and (escape) signs to (_) when uploading files on wordpress media library automatically
- Migrated from Windows to Linux. Any bulk methods for fixing case sensitivity?
- Using wp_enqueue_media() with switch_to_blog() issue
- Media library only shows for admin. Doesn’t show editor or below [closed]
- WordPress media uploader – upload tabs not hiding
- Too slow Image upload in WordPress Media Library as image number increases
- upload_max_filesize is set to 64 MB already but WordPress is still showing 2 MB
- PHP error when trying to upload .mp3 files via Media Library [closed]
- Media/attachment urls don’t redirect with fake URL structure
- Get images attached to a specific page
- A link (not in the post) to download a specific PDF file
- How does wordpress handle media files?
- wp.media issue with selected image
- Is there a way in WordPress to convert images to WebP without a plugin?
- how do prevent wordpress from creating permalinks for media files
- How to change the text of the “You are about to permanently delete these items…” alert message when deleting media from the media library?
- Open Media Uploader Link in single post or page
- Remove Media File Items From Server That Do Not Exist in Media Library
- Add SWF file to wordpress through custom template
- Uploaded images result in a file url with full path on disk appended
- Using WP-CLI “wp media import” to sync files to the media library
- Efficient way to move media folder to another folder
- WordPress append -1 to the image name
- Make inline uploader (plupload) on options page upload to a specific folder
- How to add HTML into error message
- Code snippet to add filter pre_post_link to change Media URL (post_type attachment permalink/slug)
- WordPress image title attribute becomes permalink? [duplicate]
- Images not displaying on site or media library
- All files in public_html, Cannot launch WordPress site via wp-admin
- Replicate Media Galley Edit view in Add Media View
- How to Protect Uploads, if User is not Logged In?
- Front-End Upload media with category
- How to manually set an attachment in a post?
- Handle image file and save it to media
- Adding attachment custom field metadata to TinyMCE tag
- Media not displaying other users uploads – WordPress 4.9.2
- Organising and display thousands of photos in media library
- Organizing the Media Library for Cleanup
- Issues with WordPress 3.9.6 media libraries on XAMPP
- Insert media while posting is not working with new wordpress update
- controlling whether upload is attached to post or not
- How to split my uploaded media into directories?
- Missing Images in Uploads Directory (Server Only)
- Edit Image/Image Details – Replace button missing
- Media Library is not loading on grid view in admin panel
- Blurry Images WordPress 5.8.1
- Save Custom Meta Value on Media Upload
- How to use ‘blogs.dir’ as media upload instead of ‘uploads’ directory in WordPress multisite setup
- What is the proper use of guid for images in wp_posts?
- upload image to wordpress media library failed for custom post type
- Image in binary in the data to WordPress media library