In the previous post, I wrote about the evolution of my blog. The code for the WordPress plugin is in the next post. In this post, I discuss my motivation to create the plugin for Dynamic Social Sharing Cards using ChatGPT.
With Gatsby, I had written a custom plugin to automate the generation of GIFs for social sharing cards for every blog post. When I decided to migrate my blog to WordPress, I wanted to ensure I could have a custom social sharing card generated for each blog post and, and offcourse automate it via a plugin.
To my surprise, there were no straightforward WordPress plugins for my usecase. Writing a WordPress plugin was the least I had in my mind, but there you go! I asked ChatGPT to help me out and I had a custom plugin ready in a few hours.
What does the plugin do
Every time you share your post on social media, you get a preview of how your post looks. For example, you can check on social media any posts that have been shared or you can use opengraph.xyz to get a preview. Following is a preview of how my post appears.

There are different ways to customise how you want to generate a preview for your post on social media. My usecase was that I wanted the post heading to appear on a base image I had which already contains my logo.
The image from the screenshot is generated through the plugin.
In the next post, I will explain the code.






Leave a comment