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
- Any way for get_next_post() to use the actual post order instead of publish order?
- How to create media library for each user?
- Get all images in post and comments like Twitter before post title
- Show only posts with images and a fixed amount of posts
- Issue where WP Featured Image will not display
- How would one change the default url structure of attachments?
- Permalink doesn’t get displayed in Twitter button (Local WordPress problem?)
- Retrieve post ID from “querying” URL
- hiding permalink in admin if the user is subscriber
- Why does WP_Post not contain its permalink?
- the_permalink() not working in a root installation
- If statement to check if post has image
- When changing pages to posts, how do you set up 301 redirects for the page URLs?
- How to get a post’s content? [closed]
- Gather posts into a cart/lightbox and share with another user
- Thumbnail Image to go in the post aswell
- Remove Featured Image & All Media Uploaded to the Post
- Disable WordPress Archive Conflict Check
- Second get_permalink inside loop points to wrong URL
- What are the benefits of setting a “featured image” for a WP blog post?
- preg_replace not removed “class”
- update image path with words starting uppercase to lowercase chars
- Two Custom Post Types with Identical Articles Competing for the same Slug
- WordPress custom post type with folder structure in slug
- How to only publish posts with image in it
- Custom Permalink Structure for Pages & Posts
- Uploading images in custom post form
- Upload attachment from external site
- Make insterted image point to post url instead of attachment page
- Get URL from all images in a post
- Disable posts generated from image uploads
- my post slug gets really long and I can’t change it
- Replace image name on upload to the new post name on front-end form
- Edit the post title from the frontend
- how to give multiple post thumbnails to a post
- custom word in custom permalink structure
- Posts page not showing correct image
- Images showing up in Post Editor, but not in Published Post
- How to allow multiple thumbnail upload for Posts?
- how do prevent wordpress from creating permalinks for media files
- Image behind the post’s title
- get_children returns older images
- How to display post title inside thumbnail?
- Show custom post with custom categories with specific slug
- register_post_type permalink
- Updating permalink structure using ‘post_link’ filter results in 404 error for posts
- Post is blank when I click on the link
- How to remove text and retain in caption image using the_content function
- How to retrieve certain number of images from a wordpress post?
- Custom permalink for each post
- Auto update post title and slug when post status is changed
- Unabled to Change Permalinks – Even Using the “Edit” (Resets to Original Permalink on “Update”)
- Show more than 200 images in one post
- How to get all inline images in post content? [duplicate]
- Hide thumbnail if there is a gallery on the post
- Post/page title to permalink transformation – what is behind the scenes?
- Image on rss feed on post
- Change the background of each post according to the category
- When WP_Query only returns 1 post, how do I automatically redirect to that post?
- post type slug vs page slug
- How to Featured content with images in home page?
- Where to insert the other site image url for our wordpress post
- Post titles and thumbnails as links to custom post types?
- select post preview image from nextgen gallery
- How to show a featured image inside a post in only 1 single category
- Inserting Media to WordPress Posts
- Author Avatar as default first image
- Internal linking to posts permalink fail because of spaces and stripe at postname
- Making posts permalinks consistent numbers
- How to get the next and previous image title from attachment or gallery?
- Attachment image single page
- How to change the order of elements within a post?
- Only show featured image on exerpt and exclude images in post
- WordPress as CMS: How to manage/handle images assigned to a post as full-sized background images in a slideshow?
- Can Permalink structure of %postname%/%post_id% improve performance
- How to link post titles on page A to its posts on page B?
- How to call WordPress First Image Post or else Attached Image or Default
- Problems with WordPress in subfolder, posts show a blank page