How to add image to a post
-
Hello.
I have downloaded an image from an outside website url and I want to add it to a specific post.
How can I do this (I mean how can I write the code)?
I try some php but it doesn’t show me the image sizes, so I need some short example on how to add the image to a post and how to add the data for the image in the wp-posts and wp-postmeta.
The url to the image is something like this:
localhost/wp-contents/upload/year/month/image_title.php
What exactly I need is to create the data from wp-postmeta.Thanks in advance
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to add image to a post’ is closed to new replies.