Render dynamic og images in WordPress
{{variable}}
syntax.
Learn more about dynamic images with variables.
Template example, dynamic variables are marked with {{}}
{{title}}
and the image URL is marked with {{image}}
. By default the template will render the title and the image URL that you have uploaded.
Example of the image generation URL
TEMPLATE_ID
with the ID of your template and provide the values for the variables in the query parameters.
urlencode()
php function.
header.php
file or use plugin to add the meta tags to your WordPress site.
We recommend using a plugin like Head, Footer and Post Injections to add the meta tags to your WordPress site.
(If you are using this plugin, don’t forget to enable PHP in the advanced tab)
Just add the php code in the head tag of your WordPress site.
Add the image generation URL in the head tag of your WordPress site
Add the image generation URL in the head tag of your WordPress site