• Hi Emma. First of all, thanks for a great plugin.

    I only had one issue, and that’s if there’s a caption under the first picture in the article, then the description on Bluesky ends up looking like this:

    [caption id="attachment_51381" align="alignnone" width="1165"] Hi-Fi Klubben Odense. Foto: recordere.dk[/caption] Hifi Klubben flytter ud af ...

    I therefore changed line 205 in the code to:
    'description' => html_entity_decode(string: $og_data['description'] ?? wp_trim_words($post->post_excerpt, 30, '...'), ENT_QUOTES, 'UTF-8'),

    So it uses the excerpt in stead of the body.

    I couldn’t find any repo, so hope it’s OK.

    • This topic was modified 9 months, 4 weeks ago by hummelmose.

The topic ‘I Changed Your code’ is closed to new replies.