Platform Guide
Add automatic OG images to your WordPress site with the official plugin or a code snippet.
Pick the option that works best for your setup:
Recommended
The easiest way to get started. Install directly from WordPress.org, automatic updates included.
Step 1: In your WordPress admin, go to Plugins → Add New
Step 2: Search for MyOG Social
Step 3: Click Install Now, then Activate
Step 4: Open Settings → MyOG Social, follow the setup screen, then enable OG image output.
Or install directly from wordpress.org/plugins/myog-social.
Step 1: In your WordPress admin, go to Appearance → Theme File Editor
Step 2: Select functions.php from the right sidebar
Step 3: Add this code at the end of the file:
Preview anonymously. Sign in to get complete install code for your account.
Sign in to get install codeNote: If you change themes, you'll need to add this code again to the new theme's functions.php.
Tip: MyOG detects content and branding automatically. You can choose an optional layout (Brand Card, Screenshot Right, Screenshot Bottom, Screenshot Only) in the MyOG.social dashboard.
This method survives theme changes and is easier to manage.
Step 1: Create a file called myog-social.php with this content:
Preview anonymously. Sign in to get complete install code for your account.
Sign in to get install codeStep 2: Upload this file to /wp-content/plugins/ via FTP or your hosting file manager
Step 3: Go to Plugins in WordPress admin and activate "MyOG Social"
Step 4: The generated mini plugin is ready to activate.
Using Yoast, RankMath, or AIOSEO?
These plugins may set their own OG images. To use MyOG.social, you can:
Use our OG Preview tool to test any page on your site, or share a link on Twitter/LinkedIn to see your new OG image in action.
Sign up for free and add page-specific social cards to your WordPress site.
Already have an account?
9355e1d0af85531fec59b28108cfa489a0cb1a32