-
Hi,
I have a custom filter for generating overlay image for the og:image (opengraph image), but it’s not working anymore, although before it was working.
I am using the following filter:
add_filter( “rank_math/opengraph/facebook/image”, function( $attachment_url ) {
global $post;return $attachment_url = get_template_directory_uri() . ‘/generate-og-image.php?p=’ . $post->ID;
});When i disable this filter the og:image appears in the source code, of a page in the site, but when i use this filter it doesn’t show anymore.
What i am doing wrong? Can you please check it?
Thank you,
Munteanu Ramiro
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
You must be logged in to reply to this ticket.