SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    724
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    custom fields in a wp page. can they contain images

    hello all:
    was wondering what I could get way w/putting into a custom field in a wp page? Are they limited to strings or could I use them for images as well.
    (my money is on no...but i can always hope)
    D

  2. #2
    SitePoint Addict deadmix's Avatar
    Join Date
    Jun 2009
    Location
    france
    Posts
    210
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    hello there,

    sure you can insert an image on a custom field.. there is 2 ways to use that, a plugin called advanced Custom Fields : Link or by using a function.. here is an example : Link

    Goodluck

  3. #3
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    724
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    hey Deadmix thank you for the link and the luck wishes. am sure will need it.
    cheers
    so far put this in the value custom field
    Code:
    <img src="<?php bloginfo('template_directory'); ?>/imgs/image.jpg" alt="paulett eberhart"/>
    didn't fly will test it/an outside url. see what haps
    D


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
  •