WordPress.org

Ready to get started?Download WordPress

Forums

Types - Custom Fields and Custom Post Types Management
Custom Field for Images is not disp (2 posts)

  1. kimmi_baby
    Member
    Posted 1 year ago #

    Hi,

    I've created a custom field to upload an image and I've used the following code to display it.

    <?php echo(types_render_field("image_1", array("alt"=>"Product image",
          "width"=>"209","height"=>"298","proportional"=>"true"))); ?>

    Nothing is displaying tho... Am i doing something wrong?

    http://wordpress.org/extend/plugins/types/

  2. kimmi_baby
    Member
    Posted 1 year ago #

    I've found that this it has something to do with the following code above it

    <?php $pic_of_week = rg_get_social_pic_of_the_week();
    						$url = get_post_meta($pic_of_week['id'], 'social_pic_facebook_url', true);
    					?>

    Once I remove the code, the image appears... If I place it above the code, it appears but not below the code. Any reason why this could be happening?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.