SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2013
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Displaying image with custom fields

    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.

  2. #2
    SitePoint Enthusiast
    Join Date
    Feb 2013
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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:

    Code:
    http://codex.wordpress.org/Inserting_Images_into_Posts_and_Pages

  3. #3
    SitePoint Enthusiast
    Join Date
    Feb 2013
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am talking about custom fields not post. Please read again.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •