Quantcast
Viewing all articles
Browse latest Browse all 119538

roi_davidsword on "[Plugin: PhotoDropper] Attribution not working for featured images"

I added this:

$id = get_post_thumbnail_id( get_the_ID() );
if($id) {
  $meta = get_post_meta($id,'_wp_attachment_metadata',true);
  if (isset($meta['attributeUrl']))
    $ids[$id] = $meta;
}

to public function getAttrIds() right above the return $ids; in photo-dropper > application > Core > Bootstrap.php and it worked for me, apending the attribution to the bottom of post_content.

Note every time photo-dropper updates this hack will be over-written so it's not a permanent solution.. hopefully this gets added in the in future!


Viewing all articles
Browse latest Browse all 119538

Trending Articles