Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
1answer
11 views

Adding Facebook's image and meta description retrieval capabilities to a WordPress post

When a URL is shared on Facebook, Facebook is able to automatically pull a relevant image and the meta description for use in the post. Would it be possible to code similar functionality into ...
0
votes
1answer
14 views

bloginfo url in javascript

I'm trying to set <?php bloginfo('template_url'); ?> in a variable on Javascript, and then to set src of an img element, but in the html it's been printed as src="<?php bloginfo('template_url'...
0
votes
1answer
15 views

How to show a full page when someone links directly to an image on my site

My site contains a lot of custom images. I've searched the web and found a lot of websites that link directly to the images on my site. Meaning, they link to the jpeg itself, not to the actual page on ...
0
votes
0answers
15 views

Image from URL Wordpress Plugin

I'd like to know if there is an existing plugin in Wordpress that can do the following - Allows to upload multiple images from URLs - Has the feature to create a gallery/slider/carousel out of the URL ...
0
votes
1answer
46 views

WPALLIMPORT Exporting images from repeater field [closed]

I am getting this ouput when I export the custom field image, s:267:"a:9:{s:10:"sm-field-0";s:4:"1228";s:10:"sm-field-1";s:4:"1229";s:10:"sm-field-2";s:4:"1230";s:10:"sm-field-3";s:4:"1231";s:10:"sm-...
-1
votes
1answer
39 views

Are image addresses security relevant?

I have a website, where images are like: <img src="upload/test.jpg"/> But I checked some larger sites and they have a different src as: <img src="imgrur.com/9keqqq"/> My question is, ...
-1
votes
2answers
174 views

img src not working correctly in custom post type

I am new to wordpress. i have a raw html box in my page having img link <button><img src="./wp-content/uploads/2018/05/video-popup.png" ></button> it shows img url as ''mysite/...
0
votes
1answer
27 views

I'm unable to call img path using single quotes in an array?

I would like to call an image next to input field in wp comment form. But I'm unable to do that. I call image when '' <= single quotes doesn't exist. But I don't know how to call an image in single ...
0
votes
1answer
1k views

Need to convert image url to a Base_64 data url with wordpress function..

I need to convert an image url (wordpress avatar) to a base_64 encode data using a wordpress function . I have a shortcode that has the image url for all wordpress users... For example... [...
1
vote
1answer
47 views

How to add an image to a custom url?

how can I create a custom URL for my WordPress site and add an image there? For instance, if my site is www.incrediblesite.com, how can I insert an image into www.incrediblesite.com/images/...
0
votes
1answer
310 views

Bypass wp_safe_remote_get()?

I have a PHP(Laravel) application that pushes data to WooCommerce through the WooCommerce REST API, everything works except for images. I was able to pin this down to wp_safe_remote_get() and $args['...
4
votes
5answers
16k views

Mixed content warnings after changing site adress from HTTP to HTTPS

I changed my site address from HTTP to HTTPS by simply changing the URL in Settings -> General (Wordpress address and Website address.) Absolutely no issue in the admin area, anything works fine. ...
0
votes
2answers
264 views

Using Switch Statement to Change Image According to Last Digit of Topic ID

I am trying to build a function, which gives out different image-urls, according to the last digit of bbp_get_topic_id(). This is, what i've got so far: function bg_image_topic_titlearea() { $...
0
votes
1answer
61 views

Is it possible to enable the 'Link To' field under 'Attachment Display Settings' for a Featured Image?

When inserting a photo into a content region, you get the option to enter a link URL. Is it possible to enable this field on the "Featured Image" picker? I know I could achieve the same thing with a ...
1
vote
0answers
46 views

images not showing after transfer

After transfer Wordpress to another host some images not shown on pages. I fixed all permissions firstly but I realized that images which contains characters like ç,ş not recognised by server. In ...
2
votes
0answers
456 views

Wordpress url image redirect to the homepage

Need help please. I have run into an issue with image pages on my site. All url image, redirect to the homepage. I have double check in YOAST SEO and Redirection and found nothing. img: ...
0
votes
1answer
27 views

Which tools should I use for a gallery that uses an API and url for the path of the images?

I am pretty new in Wordpress and I am a little overwhelmed with the amount of elements and possibilities we have to build our site. So I would like some advices. The first think I want to do is a ...
0
votes
2answers
34 views

Using a .pdf file as a page in wordpress

I'd like to create a link on my wordpress site to a .pdf that I have already created. Ideally create mywebsite.com/filename.pdf or mywebsite.com/foldername/filename.pdf I do not need a link or a ...
0
votes
1answer
2k views

link featured image to external link

I made custom post type "Collections" and I populate every post through featured image. Now I need to link every featured image to appropriate external link. So far I managed to add meta box to ...
0
votes
1answer
36 views

List sub pages with custom field content converting image ID to URL

I am using the ACF plugin to create static (non-ecommerce) product pages. I am now making a page that lists all the sub pages with product name and the image added to the product_logo custom field. I ...
1
vote
1answer
3k views

Why would image paths in wordpress suddenly change?

I'm using the Everglades WP theme, and have had no issues until suddenly I found all the images have different paths in the browser. Where they are: http://localhost:8888/dev.brickandpixeldesign/wp-...
0
votes
1answer
433 views

Embed image in post from external url

Is there a way in Wordpress that I can embed an image to a post when I want to include it like this: <img src="....." /> So I want to add this manually. Is this possible? Now, I get the URL, ...
0
votes
1answer
514 views

How to get image URL from media_sideload_image?

I upload external images for media library using following way. $new_image_url = media_sideload_image($new_url, $post_ID, $title); This method return complete img src tag or 'src' for the image URL. ...
0
votes
1answer
213 views

How to list all images used on a specific page?

How do I list all the image(s) used on a specific WordPress page. I would like it to include the following if possible, Url to image Name of image Url to thumbnail of the image [Edit] I would like ...
0
votes
1answer
696 views

Scrape a webpage for image and add it to post

I was wondering if there was a way to scrape an external webpage for its first/best image and add it to a new post in Wordpress. This seems like it would not be too complicated, but I can't seem to ...
6
votes
1answer
31k views

How to reference a theme image in a stylesheet?

I have a global element as part of my theme and I need to reference and image as a background image. I need the URL to the image. I assume that it's bad practice to hard-code the URL and that the URL ...
0
votes
1answer
613 views

Scrape external webpage for first image and add it to new post

I'm looking for a way to scrape an external page for its first/best/largest image and insert a copy of that image as the featured image of a new post on my Wordpress site. The way that I was hoping ...
2
votes
2answers
1k views

Broken urls with http site and https wp-admin

I am currently using a wordpress installation in which all the website is intended to be shown in http while the https part is protected by a self signed certificate, distributed manually to the ...
0
votes
1answer
141 views

Images not showing on homepage after migration [duplicate]

I have a website with one section not displaying images after migration, the src attribute returns empty urls, the site is intpro.co.zw and the section im referring to is on Latest Properties What ...
0
votes
1answer
693 views

Exclude image url from search query

I have a question today. I have recently completed a website and there is search box integrated. And, I have a post which has an attachment(attachment's url is www.sample.com/image/sampleimage.jpg) ...
-1
votes
1answer
1k views

Function to get custom post image URL

I have to retrieve the URL from a custom post image, just the URL, like: http://example.com/wp-content/uploads/blablba.jpg. The code which I have to filter is this: <?php cp_get_image_url(); ?&...
0
votes
1answer
10k views

Redirect Image Url to a page via htaccess

I am trying to redirect Image Urls to a page. I have used 301 Redirection plugin, but that doesn't seem to work. For ex : http://mywebsite.com/wp-content/uploads/2015/02/Contestant-11.jpg should ...
3
votes
1answer
1k views

Having Problem On Getting WP Post Gallery Images URL

I need to get the URL (actual Size) of all images of gallery associated with a post in single.php. The following code from Codex returns all images in very small size 150x150 which is not suitable for ...
2
votes
1answer
3k views

Remove the http protocol from images

I've been banging my head on the wall trying to filter my posts to remove the http: protocol from the img src and I think I may have found a solution. Does anybody see anything wrong with this ...
0
votes
0answers
823 views

Change default URL of image attachment

I have only one image attachment per post, as featured image. Every post have just one image, featured image, and no any other image in post content. By default URL of image attachment is: http://...
9
votes
2answers
42k views

Function to get URL of original uploaded image - full size

I am currently using the following code to get the URL of the featured image of a wordpress post: URL="<?php if (function_exists('wp_get_attachment_thumb_url')) {echo wp_get_attachment_thumb_url(...
1
vote
1answer
4k views

Update image links in database

I recently changed the URL of a wordpress site and I can't seem to find some of the image links I was able to update most of the links in the wp_posts tables update wp_posts set guid = REPLACE(guid, ...
0
votes
0answers
283 views

Change the image for a certain URL

Currently we have an image at url /wp-content/uploads/sites/3/2014/07/filename.jpg The image contains incorrect information, and we've already sent emails out containing links to this image. We'd ...
1
vote
1answer
31k views

How to change image url?

How can I change the image url from this http://i0.wp.com/example.com/wp-content/uploads/2014/06/imagename Into this: http://www.example.com/image/imagename.jpg Or into this: http://www....
1
vote
0answers
1k views

Change media URL (images)

Similar questions have been posted, but none have been resolved. I'm looking to, programmatically on upload, change the URL of a media file to its URL on a CDN. I.e. modify site.com/wp-content/uploads/...
0
votes
1answer
1k views

get_post_custom: get image URL instead of image ID

I know the value of a image custom field will give me the attachemnt ID. In a loop over all custom fields, how can I found out if the field is an image? And then get the image URL of the attachemnt? ...
0
votes
1answer
516 views

Setting name of attachment URL

I have a problem I need to fix with the URLs that are generated for the attachment pages of images with metadata. I’m working on a photography site where individual photos are displayed as ...
0
votes
1answer
213 views

Search and replace image urls in posts

I'm struggling with my recently imported posterous data. All the image urls in the imported posts looks like this: http://getfile1.posterous.com/getfile/files.posterous.com/temp-2013-03-30/...
0
votes
1answer
297 views

Retrieve first image url from custom post with pagination

On my custom page with pagination I have 6 pictures from the last posts, so far so good. Have a look here: http:sayami.de My code: <?php global $wp_query; $paged = (...
0
votes
0answers
247 views

Protocol relative url not pulling up images on IE, FF, and OPERA

I'm running into an issue where I'm using the protocol relative url for the images from the wordpress Amazon s3 plugin on my SSL pages. In Chrome, all images are loading fine but when I tested it on ...
0
votes
1answer
168 views

How to redirect homepage to actual URL?

I have a stupid problem. In the custom header template I include on all pages are some images. When I set the links to the images as images/image.png it works on the homepage but not on other pages. ...
2
votes
2answers
869 views

Use image url with add_image_size

I am looking for a way to use an image url with the WordPress function add_image_size, I have already setup an image size called 'custom-thumb' For example, instead of... the_post_thumbnail( 'custom-...
0
votes
1answer
2k views

How to pass on a value as parameter via url to another page

I'm dealing with a problem I can't solve myself. I did a few hours of research about it, but I didn't manage to make it work. I want to send a parameter via the url to the page I'm forwarding to and ...
0
votes
1answer
47 views

Inserting Media to WordPress Posts

If I insert an image to a WordPress docuament via "Add Media -> Insert from URL", and after submitting the URL and inserting to my post, is the image linked to my page or copied to my site? Thanks.
0
votes
1answer
121 views

Broken image URL

I seem to be having a problem with broken URL links in posts for images. If you click on the image from the post you will see the URL but if you try to then copy and paste that URL it will show as a ...