Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #1377


    What is the exact custom field name for setting the thumbnail. I have been using the Feature Image which works fine but I can see in the code that a custom field can be set to override it.

    Many thanks


    In kriesi_post_thumb.php the overwrite value is defined in following line:

    // get the default image:
    // first check for a custom field "overwrite" value:
    if (isset($option['size'][1]))
    $image_customfield = get_post_meta($this_post, $option['size'][1], true);

    You can add another if statement, so that the function checks your “overwrite” value too.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Exact custom_field name to override feature Image setting’ is closed to new replies.