CMS & WordPress
I am trying to display an image and some text beneath my content i have made two custom fields one containing only text and one with image url. The text is is working fine, image is not displaying
I have added this code to my my page template <img scr="<?php echo get_post_meta($post->ID, 'megabilled', true); ?>" />
In firebug i can see the picture but not on the page. I have tried using "mysite/wp-content/uploads/2013/02/image.png" and an absolute url.
Btw i am new to Wordpress.
Just go to your post,
click on the image button in the text editor and click on upload.
Then upload the image from your computer.
Change the alignment and the size.
Once you are done with it, just click on insert.
Then hit enter and type your text beneath the Image.
Here is a good tutorial for the same:
I am talking about custom fields not post. Please read again.
This topic is now closed. New replies are no longer allowed.