• Resolved fneumeier

    (@fneumeier)


    Hi,

    I love the straight-forward approach of thie plugin. However, it doesn’t seam to generate the og:image:width and og:image:height tags which are quite essential.

    Is there any way to force generating these tags, e.g. with a default value?

    Thanks and kind regards,
    Franz

    • This topic was modified 7 years, 7 months ago by fneumeier.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Alex MacArthur

    (@alexmacarthur)

    Hi! I’m just starting to dig into why they’re not being set automatically (they should be) and will let you know when a new version is out that fixes this. Until then, if you’re comfortable/able to modify your functions.php, you’re welcome to add a filter that adds them:

    
    add_filter('complete_open_graph_all_data', function ($data) {
      $data['image:width'] = array(
       'attribute' => 'property',
       'value' => NUMBER
      );
      
      $data['image:height'] = array(
       'attribute' => 'property',
       'value' => NUMBER
      );
    
      return $data; 
    });
    
    • This reply was modified 7 years, 7 months ago by Alex MacArthur. Reason: fixed code example
    Plugin Author Alex MacArthur

    (@alexmacarthur)

    Hi, Franz —

    Version 3.0.0 of the plugin has fixed this bug. Thanks again for reporting.

    Alex

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘height and width not beeing set …’ is closed to new replies.