WordPress.org

Ready to get started?Download WordPress

Forums

Image Credit
Credit Info Not Saving (3 posts)

  1. mrwweb
    Member
    Posted 2 years ago #

    On my local test install, the credit information doesn't seem to be saving on an existing image both when saved in the media library and entered directly on the insert image dialogue.

    Additionally, when editing the image in the media library, it seems the plugin added an "Insert into Post" button even though that doesn't work.

    Are others experiencing this issue?

    http://wordpress.org/extend/plugins/image-credit/

  2. Jon Brown
    Member
    Posted 2 years ago #

    same problem

  3. hatesspam
    Member
    Posted 2 years ago #

    If I add

    add_filter('attachment_fields_to_save', 'wp_image_credit_save_credit', 10, 2);
    function wp_image_credit_save_credit($post, $attachment) {
      update_post_meta($post['ID'], WP_IMAGE_CREDIT_META_NAME, $attachment['credit']);
      update_post_meta($post['ID'], WP_IMAGE_CREDIT_META_NAME_LINK, $attachment['credit_url']);
      return $post;
    }

    it seems to work (though I cannot get the credit link to work).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic