Try using absolute paths in src
attribute.
If your images are in your theme folder, you can use:
<img src="https://wordpress.stackexchange.com/questions/184062/<?php bloginfo("template_url'); ?>/yourImageFolder/yourImage.jpg" />
This way, URLs will be absolute even if you move your WordPress site to another server.
Related Posts:
- How to make WordPress use protocol indepentent upload files?
- Redirect to another page using contact form 7? [closed]
- Scrape a webpage for image and add it to post
- Offer Download Links for Product Images
- insert og image link in wordpress post
- How can I make add_image_size() crop from the top?
- Cannot install plugins even though www-data has write permissions
- Way to force media uploader use custom image size
- Woocommerce different URL for every table placed in the restaurant
- Add query string to plugin URL
- Upload images from custom plugin using the media modal
- Standard permissions for wordpress; Plugin installation asks for FTP credentials
- How to show category images (from plugin) on a regular page (page-example.php)?
- Saving/Writing/Adding file to upload folder
- How to limit 1 image per post on homepage only?
- Flickr plugin that will display photos from multiple group pools? [closed]
- Creating Custom Roles for use on a WordPress Multi-site Instance?
- How to change ID of an attachment in wp_posts and its related tables correctly?
- Why does deactivating a plugin cause error: “You do not have sufficient permissions to access this page”?
- Plugin/Folder permission issues with Azure
- Bulk Image Uploader to create new post from each image [closed]
- Regenerate images with automatic ALT and TITLE attributes
- Preview featured image using frontend post plugin
- How to resize images due to container width automatically server side/without CSS
- How to create a managed image repository in wordpress
- Why WordPress plugin url ajax doesn’t work?
- Added slug after URL permalink last slash returns different content
- Plugin updates change folder permissions
- wp_generate_attachment_metadata is creating an empty array
- Contact Form 7 Get Image Function [closed]
- How generate 200% image size and save with suffix @2x
- WordPress shows error related to allow_url_fopen
- Subdomains with almost the same content
- Retrieving Meta from Image Attachment
- change content based on url per plugin
- How to upload multiple files/images when developing a wordpress plugin?
- Implementing an image hosting website using WordPress? [closed]
- How to apply lazy loading in background images [closed]
- Woocommerce showing images blurry in description page
- How to Resize the Custom Post Images?
- What are the correct permissions so WP doesn’t ask for FTP credentials if installing plugin?
- How to limit image size for the entire website ? But without editing the post (css/plugin?!)
- Images under 1MB are not being compressed
- WordPress won’t allow for updates to plugins or WordPress Core
- Need to change link URL embedded in multiple posts to new link URL
- How to pass a query string to another page on the same site?
- how to replace hostnames on certain external links?
- Search by Attachment ID
- Plugins & backup not working correctly on new Digital Ocean server
- Overwrite add_image_size defined by theme
- Replace video url with video player
- Optimal image size for wordpress?
- Copy/paste local images not working in WordPress
- How to add height and width to images on a page(using WP Bakery) to improve Google’s CLS score?
- Is classical wordpress eidtor a good option for me to include a large table with a large number of images on my webpage?
- Optimise wordpress database using SQL after deleting registered images from Media Folder
- I need to register and resize images, safe to delete plugin afterwards?
- Displaying all the images from all of my articles
- how to include my homepage and scc in to a plugin
- Plugin updates, change file permissions on WordPress
- How to allow URL with filename & extension in wordpress?
- Remove special characters from filenames
- Why is my site still showing insecure icon even if I have SSL certificate?
- WP Plugin permissions – create new files
- Insert Sponsor logo in custom own theme
- Automatic set a featured image from the first image’s url (or tag) in the article
- flip horizontal images in bulk
- Optimize and delete images in WordPress
- Upload image to wordpress using ionic/cordova with WP REST API V2
- Is there any hook to change media html in post? [duplicate]
- Add image to post
- How to force regenerate thumbnails in WordPress posts?
- resizes images on the fly
- Creating custom URL for async content
- export high ress images to pdf
- Any way to edit/crop my featured image upon uploading?
- URL RewriteRule doesn’t work when using WP Database Participants in my WordPress website
- page creator to leave comments ONLY
- adding image in the header of my dev widget
- Editor have not permissions for a plugin
- How to show post attachment image
- Advanced Custom Fields (ACF) Plugin – Random Image in Sidebar
- Unwanted Links and Spam WordPress Pages and Posts
- Display Plugin information on specific url
- Images not showing and plugins not installing on wordpress server move
- Make a wordpress site similar to Hot Or Not – Image rating system [closed]
- Any plugins that upload, resize, and display images? [closed]
- Displaying single Instagram images as a tile
- How can I server scaled images?
- Adding hero images to blog posts
- Remove base from the custom post type URL [duplicate]
- WP Job Manger change jobs url (NOT slug)
- Is there a WordPress Plugin like Imsanity that keeps high resolution originals? [closed]
- HTML link within my plugin settings page
- Images get uploaded itself from the computer
- Two sites one PC
- How to give access to the particular page in wordpress for specific username/email NOT roles [closed]
- How to show image caption in Woocommerce gallery
- Gravity Forms and Gravity View Permissions
- LiteSpeed cache image Optimization