The option for setting the url to none using “Attachment Display Settings” is available through the gallery option, using “Add Media”. How are you adding your images—through featured image or directly in your post/page? You can remove the my image if it’s in the post itself.
For featured images, you’ll have to go into your template file and remove the link wrapper from your images. If you have conditions for this functionality, like for example, only certain categories become unlinked, you can add a condition for that circumstance.
<?php if ( has_post_thumbnail() ) : ?>
<a href="https://wordpress.stackexchange.com/questions/198737/<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail(); ?>
</a>
<?php endif; ?>
to this:
<?php if ( has_post_thumbnail() ) : ?>
<?php the_post_thumbnail(); ?>
<?php endif; ?>
Related Posts:
- Change website URL without breaking links or images? WP 3.3
- How to use relative links on my pages?
- How can I store page ID in a post instead of other selected permalink?
- How to get a page url by a page id?
- Why does WP not use relative links when linking pages?
- Menu Link Redirect Based on Username or User ID
- Social Media Links on homepage – within posts/post loop
- Redirect user if it’s not logged in
- Attachment page 404 not found when image is attached to post
- I copied my site to another site but all links point to old site
- Best way to add internal link in widget
- Confusion about how a URL is being parsed
- Attachment Page Permalink/URL Rewrite Issue. How to change the actual rewriting?
- Automatically append ID to at the end of specific URLs
- why some permalinks adding characters/ruining links
- How to change old permalink?
- how to link post-thumbnail to original img in a lightbox?
- Migrated from Windows to Linux. Any bulk methods for fixing case sensitivity?
- How to eliminate permalink prefix in WordPress Multisite
- Get the url of a page template without using the page slug and ID
- How to generate a list of all urls
- Stop Images Linking to Themselves?
- Format HTTP links
- Edit permalink for certain pages
- cannot link a external url, present page url acting as parent url
- Can WP give a value a post ID?
- Moved site, Old links in pages still pointing to old host
- How to use page jumps to top of banner and page title?
- Image URL and size
- Create custom links for excerpts with php dynamically
- How can I see a list of all pages my WordPress site has generated?
- How to make different urls for some tags pages
- A dash can replace a period in a link, how to fix it
- My WP homepage works, but the other pages don’t when accessing from out side of my network
- Can I link to content dynamically from a page to a new page?
- Propper way to set anchor and url param
- How to search for images and get it’s link?
- Find internal links to post
- rebuilding/ rewriting a url to make it SEO friendly
- Remove link function from oembed image or video
- Image upload ruined my links
- How to change dynamic link to relevant post
- Difference and usage of uri (e.g. get_directory_uri) and absolute path (e.g. get_directory)
- Possible to hide parts of the slug from get_template_directory_uri and bloginfo(‘template_directory’)
- After changing permalink settings, everything works fine except for the two most recent posts
- Latin character conversion
- Pretty links for PHP pages above WP /blog directory?
- Permalink / sub-template issue
- Permalink structure as code in back-end?
- What is the issue with our links? It creates a loop
- wp_get_attachment_url not working
- AllowOveride All causes assetts and Admin Urls to 404
- Support Gallery link to pages
- Image not Showing (Can see image in inspect element)
- Make all internal links relative, or otherwise make a website accessible from multiple domains
- WordPress Version 6.6 facing “This block has encountered an error and cannot be previewed.” which edit text on page with link
- Unable to access a folder that does not belong to WordPress installation
- After post URL change also automatically change references in posts to that new URL?
- Page linking issue
- I have Akamai pointing to a WordPress installation with a different URL. Is there a way to make WordPress use this for link generation?
- Permalink issue with WordPress Site at domain root and another WordPress Site in a Subfolder
- Issue with wp_insert_post when modifying permalinks with “.html” extension
- Custom optional parameter in page URL
- How to change permalink for listings
- WooCommerce product id as permalink
- WordPress Pages that use Domain URL
- Posts containing a specific tag and a category in one permalink
- 404 page not found – Yet open admin page it works
- Custom permalink question
- Author Meta in Author URL Link
- Disable -2 Permalink Addition
- Permalink in relation with the files
- Permalinks don’t update nor link properly
- How can I put WordPress in a directory but keep just the home page at the domain root?
- followup to: Page begins with number, WordPress adds 2
- One post but two separate permalink structure and template views
- Add /blog prefix for all WordPress front end url
- permalinks constantly needs re-saving
- Permalink structure has suddenly changed
- Link to a custom page without a permalink?
- Pages with parent pages giving 404 errors
- Getting 400 Bad request Error when trying to open posts after updating to wordpress 5.0
- How to experiment with permalink structure on a select number of posts
- In a multisite, how can I get posts from one site and display their permalinks in another site?
- How to change permalink for pages in WordPress?
- Disable “similar permalink” redirect [duplicate]
- Problem with get_permalink, to get page content
- Why does page for hierarchical taxonomy parent term go 404?
- Rename Custom Post Slug using taxonomy
- Change permalink structure with post id
- Link works although page was moved to another location
- How to allow different authors to use same post slug?
- Custom permalink gives 404 error only in some pages
- Question About Permalink in wordpress
- Logging in to installation in subdirectory renders broken dashboard (no CSS, broken links)
- while changing permalink, page redirected you too many times
- Woocommerce product page 404 not found
- Recovered WordPress installation (on localhost) links broken and images not showing
- WordPress – Permalink custom Structure – 404
- I noticed only on 2 pages I keep getting permalimks changed with added -2 or -3?