1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Help] Small help need in PHP

Discussion in 'PHP & Perl' started by mangobajito, Jun 19, 2012.

  1. mangobajito

    mangobajito Power Member

    Joined:
    Aug 21, 2010
    Messages:
    527
    Likes Received:
    264
    Occupation:
    Student
    Location:
    INDIA
    Actually i have added custom code in functions.php in wordpress theme
    it consists like

    PHP:
    global $post;
    $posturl urlencode(get_permalink()); //Get the post URL
    but i need it to add for custom fileds of wordpress posts....then how to make changes to it
     
  2. dario111cro

    dario111cro Junior Member

    Joined:
    Feb 5, 2012
    Messages:
    180
    Likes Received:
    203
    Location:
    cloud
    What do you actually need?
     
  3. wickedguy

    wickedguy Supreme Member

    Joined:
    Jul 22, 2009
    Messages:
    1,402
    Likes Received:
    1,379
    Location:
    BHW--> South Africa
    Home Page:
    Can you be a bit more clear pls?
     
  4. mangobajito

    mangobajito Power Member

    Joined:
    Aug 21, 2010
    Messages:
    527
    Likes Received:
    264
    Occupation:
    Student
    Location:
    INDIA
    actually the function code is to add small watermark image to every image in the the posts
    but i used a image gallery theme
    in this theme i no need to upload images in posts
    it has custom fields to add images

    So the watermark image is not added to the images
    if i upload the image in posts and then published it showed the watermark
     
  5. zerodtk

    zerodtk Regular Member

    Joined:
    Jan 23, 2009
    Messages:
    210
    Likes Received:
    74
    Home Page:
    you can call the custom fields with
     
    • Thanks Thanks x 1