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?
- Extend Media Library
- WordPress 3.5: Setting custom “full URL path to files” in the Media Library?
- Upload images to remote server
- How to show all available images in WP’s media library when using the Polylang plugin?
- Which filters or actions to use after a media upload and delete?
- Stop WordPress from reserving slugs for media items?
- 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
- Password protect some uploaded files, so only logged-in users can view them
- Attach Files Metabox
- How to protect uploads in multisite if user is not logged in?
- Append button to WordPress Image Details modal
- Ignore a filter on the media library
- WP3.5 Media Uploader – how to make it accept multiple images?
- How to Removing fields from the Media Uploader/Gallery on a Custom Post Type Edit Page
- Restricting access to files within a specific folder [duplicate]
- WordPress media upload “HTTP error”
- How to disable WordPress Media resize different size version?
- 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
- Add select field to media uploader that adds a class to the image
- 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 to retrieve alt attribute for an attachment (uploaded image)?
- 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?
- Duplicate Custom Header Functionality into the post edit screen
- 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)
- Uppload image from another source wp.media
- Media Gallery Images – safe to change permalink?
- Multisite – Images often getting uploaded to the wrong month directory
- move_uploaded_file() not working on wordpress front end
- 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
- How to upload WordPress Images to remote web server and display those images in WordPress gallery [closed]
- What is the alternative to “ when it comes to calling Media (image) files in the ‘attachment.php’ file?
- How to get the return value of wp.media({ frame: ‘post’ }) in all cases?
- Media library only shows for admin. Doesn’t show editor or below [closed]
- WordPress media uploader – upload tabs not hiding
- Images uploaded to the media library has strange colors. However, in the edit screen the color is ok
- 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
- Migrating media files (documents only) to a fresh install and maintaining the same directory structure
- 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?
- WordPress media upload issue could not insert attachment into the database
- Thumbnail images missing in WP media library
- 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
- What if I have a large file on the server that I want the wp library to have?
- 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
- Can’t upload format files on media library
- How to add HTML into error message
- Code snippet to add filter pre_post_link to change Media URL (post_type attachment permalink/slug)
- unsharp thumbnails after uploading image
- 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