There is still a URL the browser can use to fetch the image: your PHP script. But you get to check for a valid login. Gordon L. Burditt.I just want to add image as and when somebody copies its location (image location) the src address displayed is image.php rather than wpgetattachmentimagesrc( int attachmentid, string|array size thumbnail, bool icon false ).The returned array contains four values: the URL of the attachment image srcif ( attachments ) echo ID ) . " class"current"> avatarurl getavatarimgurl() echo Show Comments.Generate WordPress Code Snippets "Magically" with WP HastyJake Rocheleau. WordPress checks the return value of isssl() before creating URLs using getbloginfo(). If the function returns true, it creates https URLs.
If it returns false, it creates http URLs. From the WordPress source Function isssl() if ( isset(SERVER[HTTPS]) ) . Im using Wordpress as a CMS for my new website and am having trouble getting images to appear in my php file.. This image will not appear when viewed in a browser.Also, if you have .htaccess set up to have pretty URLs, youll need to provide a more precise path, as . Always a URL.Absolute URLs. This is the most straightforward, and is the only way to go if you want to link to an external image (an image hosted on another site). However, one issue I have ran into is that the src attribute of the img tags generated by WordPress turns out to say.public void connect( String url ) throws ExecutionException, InterruptedException, NoSuchAlgorithmException url url "?token" restTemplate.getAccessToken() queue new Looking at your example, this will probably be homeurl() or siteurl().