WordPress uses the attachment filename to create the attachment post slug.
If your file was named something else, there would not be any conflicts.
If you have your post permalinks set to /%postname%/
, and you upload an image FIRST, and then create a post SECOND, then WordPress has to make a choice between the two when someone tries to access the Permalink.
To solve the issue, you would either have to change your permalink structure OR change the name of either the post or the attachment.
Related Posts:
- Where is the old post permalink slug stored?
- Use category base slug in posts’ permalink
- How to automatically generate a unique random slug
- Change the Slug of Post Type post to baseurl/post/%postname%
- Download external images if post is publish
- How to control which category will be picked for the slug of a post?
- Change slug with custom field
- Get post embedded image caption
- Remove image from post also removes photo from media library
- Remove permalink from images when inserting into post
- Bulk update post slugs through database
- How to handle broken links created by permalink/slug changes?
- Visting slug for ‘post’ post type shows 404 not archive?
- how do i add posts-page slug before posts slug in permalinks
- Redirect to another page using contact form 7? [closed]
- Link post images to post
- How to 301 redirect from url with post id to permalink with post name (slug)?
- Post images are not displayed in media library
- Schedule image post on download
- My post permalinks are always the same
- post_name is not stored until post is published… where should I store my slug until it goes live then?
- Get attachment if matches a variable
- Delete the original big size image after upload and leave only 3 images crunched by media gallery
- Custom permalink structure only for default posts
- Different permalink for posts and authors
- Keep getting same permalink with WP_Query?
- How to remove images from showing in a post with the_content()?
- upload featured image from front end using wordpress add media button
- Must permalinks always point to single post pages?
- How to update all post at once?
- generate unique slug while inserting post
- Permalink Settings: optional settings doesn’t apply to editor
- How to change the page break URL from ../post/2 to …/post/page2/
- How to get only text from wordpress post content?
- Get all images out of the posts content
- how can I put an image in a post with original size
- How to retrieve the postID in a “image_send_to_editor” hook function?
- Comma separated all attached image ID numbers except featured image ID number
- Removing rel=”nofollow” from links posted in Post Content
- Load post attached images on a single page site with fancybox
- Set size for attachments
- I have a site where attachments in the wp_posts table have guid values of guid, how did this happen?
- Automatically add date to the auto generation of post slug
- How could I change my Permalink from blog to custom structure? [closed]
- Show only posts with images and a fixed amount of posts
- Permalink doesn’t get displayed in Twitter button (Local WordPress problem?)
- If statement to check if post has image
- How to get a post’s content? [closed]
- What are the benefits of setting a “featured image” for a WP blog post?
- How to only publish posts with image in it
- Replace image name on upload to the new post name on front-end form
- Posts page not showing correct image
- How to allow multiple thumbnail upload for Posts?
- how do prevent wordpress from creating permalinks for media files
- get_children returns older images
- How to display post title inside thumbnail?
- register_post_type permalink
- How to remove text and retain in caption image using the_content function
- Auto update post title and slug when post status is changed
- Post titles and thumbnails as links to custom post types?
- Inserting Media to WordPress Posts
- Author Avatar as default first image
- Internal linking to posts permalink fail because of spaces and stripe at postname
- Only show featured image on exerpt and exclude images in post
- how can display a post on home screen without images
- how to create a sub section in posts
- Categories Listing and Highlighting current category item
- Changing The Default Header POST Title and Description text by category in wordpress
- Permalink Short code showing unnecessary link text inside the loop
- Get post slug and match with menu item slug to change css
- Pinterest button shows image options from different posts
- Modified core/image rendering not showing in posts – only on pages
- Blog images not showing on homepage
- Prevent Archive URLs
- Category URL to use same string as Post URL Permalink
- Integrate video and iframe in a post type gallery
- How to give priority to page than to posts permalink structure?
- how to create other sizes of original image in one go wordpress uploads
- Post & Category Archives URL structure
- Embed image in post from external url
- Post as frontpage – avoid duplicate content
- Is there a way to change the complete URL of the blog post for a redirecting tracking link?
- WordPress with static posts page and custom permalink structure doesn’t find posts with numeric permalinks
- WordPress Media URLs?
- Can’t seem to replicate permalink structure for localhost development site
- My posts section for logged in user
- Make assigning post to a specific category equivalent to assigning it to all categories
- How to mix pages and sub-categories in a url
- Changing permalink of custom category
- Overwrite URL on blog posts
- 301 Redirecting posts without %postid% (just %post_name%) in permalink to ones with %post_name%_%postid%
- How do I add /blog/ on my permalink without affecting the portfolio project types permalink?
- Assign custom class to post content images
- Permalink remain the same on each page
- Echo author slug in post edit page
- After the local installation of an old WP website I can see the homepage but I can’t access to the articles, why?
- Broken images after importing posts and opening in Gutenberg
- Search doesn’t display posts with images
- Why can posts never have a number as the link?
- Inside post image title has been posting as a post title on my main post page