The problem was down to my use of rel="attachment"
in the anchor, with this removed the editor allows the link to remain pointing to the file url and not the attachment.
Related Posts:
- Set JPEG compression for specific custom image sizes
- Removing default image size list in Media Box
- How to reduce original image quality on upload?
- Best way to programatically add “rel” attributes to page and post images
- Disable auto-resizing of uploaded images, but only for certain filename
- Insert image in WordPress with HTML5 tag and caption function
- Remove Actions/Filters added via Anonymous Functions
- Add class to menu items of one specific menu (nav_menu_css_class)
- How to influence the information displayed on widget inside wp-admin
- How to add a class to the attachment images
- Filter the query ONLY for the search results page
- How to use get_template_directory_uri() to load an image that is in a sub-folder of my theme?
- opening links in new tab using – add_filter( ‘the_content’, ‘make_clickable’);
- How to add classes to images based on their categories?
- Using add_filter() in Widgets
- Customize WordPress Media Manager – Media Window
- Is it possible to use a forgot password url filter?
- Is it possible to maintain image aspect ratio when scaling images?
- Wrap gutenberg block ‘div’ in other elements/extra HTML
- Generating Responsive Background Image Sizes in PHP
- Remove Page Title from Static Frontpage
- Default or Preset Content for Custom Post Types
- Override a class function to include a custom template
- How to auto-update child posts whenever the parent post is updated?
- Display height and width properties with the_post_thumbnail() or related function
- How to run a function once on every post in database?
- Custom image size in Media Dropdown
- Removing the first image in content
- Function to auto-set a featured image that is already in use
- Actions according to image type and size
- How to use IF Statement in WordPress?
- Woocommerce Storefront WordPress Ignore Media Gallery Images and use External 3rd Party Host
- Gravity Forms field entries into wp_query loop [closed]
- Post Pagination Showing Same Posts Every Page
- modify a function filter
- How would go about if I just want a temporary function?
- Generating rel=prev and rel=next only on wordpress categories
- How to make applyFilters function return false via functions.php
- Accepted arguments value in hook functions
- Get current page_id before loop, in functions.php
- Which action hook to use for function?
- str_replace function in theme
- Modify a function without editing template
- How to add nav menu items to a specific position within a menu
- Twentyten Child Theme: header images display messed up in admin panel
- How to control WordPress image metadata (using Imagick)?
- How to make custom column Admin>Users sortable?
- Filter out other users comments. Visualize only own comments and editor role users’ comments
- Get Current Post ID in functions php, meta query filter
- Output and filter data from a XML url
- Add to cart php not working [closed]
- What did I do wrong in my functions code, that will not change the “Get New Password” text to “Send It”?
- create filter in functions.php
- How to filter $content in shortcode function
- How to construct function for applying filter?
- WordPress functions.php – Execute plugin specific user online
- Events: Check for other event with same start date and category [closed]
- Redirect to another page using contact form 7? [closed]
- Add Element as a Filter to the_content
- Can’t properly set the_title add_filter to show short_URL
- (Woocommerce) Order by price when entering specific category
- Limit dimensions of “Full” size images
- Filter nav menu items HTML tags and wrap inner text with span
- Where do I go to edit this area? [closed]
- How to add custom li item to wordpress menu
- Need To Change WordPress Meta Tags… Includes wordpress shortcodes
- How to Add Shortcode to html img code?
- How to add a new image size and apply it to posts only?
- Is it possible to use add_filter in an included file in the child theme’s functions.php?
- Insert Content Before div#main from the functions.php File
- Problem in using Customizer
- Custom Image Size in Insert Media
- Perform function on publish AND save (not just save)
- get_image_tag() html output : empty src attribute
- Changing the text of Upload/Insert on Posts and Pages Screen
- Conditional custom menu?
- Need To Resize Images Exactly Without Losing Image Details
- Get URLs for AJAX Filter Checkboxes WordPress
- How to display an image before title text in menu items
- Filter works on last selection but no others
- custom error message for empty username and password using authenticate filter not working
- blank page with wp_get_attachment
- Prevent function from triggering on current page
- Assign IDs to headings in ACF using functions.php
- Redirect specific author posts to another url
- save_post function keeps triggering: Warning: array_map(): Argument #2 should be an array… when restoring from trash
- Featured image on archive page based on post type
- $content is empty while using DOMDocument
- Best way to add image to recent posts widget?
- Different body image backgrounds on different pages, posts and categories
- image_send_to_editor filter – Unwanted paragraphs and line breaks
- Print all inline styles to head
- Full size image option removing problem
- Function Reference for custom link in Admin Menu Management Page
- Force resize for all video content
- Way of getting queried loop before the query with a filter hook?
- When the WP_EDITOR button is pressed, the user is prompted to select a photo from their device
- How to crop image in WordPress with aspect ratio for any size of image
- How can I modify or filter this variable in an existing class? (Mai Theme)
- Get category of post inside save_post hook