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
- to perform the requested action wordpress needs to access your web server. please enter your ftp
- How can I make add_image_size() crop from the top?
- wp.media.view.ImageDetails – Save settings as HTML5 data-* attributes for image
- Prompted for FTP details even with FS_DIRECT set to true
- how to get path to images in the uploads folder to be used in a plugin
- How to prevent a post from being deleted?
- Is there a way (plugin?) to restrict a user to being able to edit just one page?
- How to custom crop each image size?
- Is it possible to “freeze” a WordPress blog?
- Can’t install new plugins because of the error “Could not create directory”
- Preserve custom URL parameter on more pages
- How to Delete All regenerated thumbnails but keep the original ones?
- How to stop wordpress from changing default .htaccess permissions to 444
- Cannot install plugins even though www-data has write permissions
- How to upload image with simple form?
- Resizing all images
- Using Advanced Custom Fields with WordPress and Lightbox
- Which method is best to enqueue scripts
- Display (and manage) webcam images?
- Way to force media uploader use custom image size
- Cropping, Re-sizing and Saving images from one folder to another folder in wordpress
- Automatically Import Image into Posts from URLs on the Web?
- How can I attach images to a post from the media library?
- How does WordPress update plugins, without running into permissions issues?
- Plugins won’t auto-update on IIS
- How do I change the description of the same image which is to be found in multiple instances?
- How to select featured images for 1500 posts?
- Rename existing old uploaded images containing accented French characters (not during upload)
- Thumbnail with different sizes
- Woocommerce different URL for every table placed in the restaurant
- Author Specific URL’s in WordPress
- How to extract images of post and pages excluding header and logo image in wordpress?
- Is it possible to block subscriber users to changing its password?
- Use Media Uploader in Plugin
- While Using Static Pages, How Can I Get /blog into the URL of Each Post?
- Add query string to plugin URL
- Upload images from custom plugin using the media modal
- WordPress roles – Protect administrator role
- Disabling post images for not logged in users
- resize only height using wp_get_image_editor
- How to upload thousands of images?
- I need to generate the CSS for my plugin from a function, how do i map a request to a function in the front-end?
- Standard permissions for wordpress; Plugin installation asks for FTP credentials
- 403 Forbidden – You don’t have permission to access /wp-admin/admin-ajax.php on this server
- Generated Images sizes do not match Media Settings Image Size
- Is revealing just the AUTH_KEY a security issue?
- Converting a simple plugin to be placed inside of functions.php
- Get uploaded image url
- There’s some way to add a wrapper around posted images?
- How to get CMB2 to show a single image at a specific size
- Layout shop page: resize images and columns
- How to crop image from center using wp_image_editor
- 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]
- How to change Thumbnail size of next Gen Gallery plugin?
- Could not create directory
- How can I pass a variable to a page with a SEF url?
- How to remove the whitespace in image name and save the new file
- locate_template with multiple categories?
- Creating Custom Roles for use on a WordPress Multi-site Instance?
- Getting media library popup in custom plugin admin page
- How to change ID of an attachment in wp_posts and its related tables correctly?
- How do I create a full-bleed background image on text mouseover? [closed]
- bulk change of image setting “link to” to “link to: image url “
- custom taxonomy and custom post type url conflict
- Why does deactivating a plugin cause error: “You do not have sufficient permissions to access this page”?
- Can’t use the built-in wordpress install/upgrade plugin feature [closed]
- Plugin/Folder permission issues with Azure
- Converting Attachment to Images?
- Bulk Image Uploader to create new post from each image [closed]
- Regenerate images with automatic ALT and TITLE attributes
- Correct wp-content ownership and permissions
- Is it possible to insert images directly from the server?
- Advanced Custom Fields/User Role Editor – how to hide ACF for certain users?
- How to add a random image to a post from gallery and only show one?
- Get the url of the full sized attachment image using post ID?
- How create a role with admin capability less 1 or 2?
- How to add css class to a specific set of images?
- How do I make images clickable so as to enlarge them using lightbox?
- Find the URL of the current plugin directory
- Rewrite url without flushing the database?
- Adding Attachment Display Settings in custom media frame
- Advanced Custom Fields
- Custom page slug without creating a WP page
- Why isn’t “background-image: url”working with Bootstrap carousel on WP?
- Find unused images?
- Best way to hook a custom url?
- Are these wp-content permissions safe?
- How to generate video out of images via WordPress plugin
- Image gallery plugin [closed]
- Changed permalink structure. Need help with redirecting old posts
- What is an arbitrary URL?
- How to upload images to WP Panel keeping correct folder in FTP