• johnisjohn

    (@johnnnnnnnnnnnn)


    Hello, I am trying to take the og:img parsed and either set it as my featured image for the post or set it as the og:img for the post.

    I have been trying to edit your plugin to do either and cannot. So I ask for help or suggestions.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello
    also i’m in this situation and i like it to be a feature of this plugin.
    But because of security and SSL error this feature must download and randomize name of file.

    Thread Starter johnisjohn

    (@johnnnnnnnnnnnn)

    I think we need to add something like this to the plugin but I cannot get it to work. Any ideas?

    	function og_imgyay() {
    		$og_imghya = $this->get_document_image();
    		?>
    			<meta property="og:image" content="<?php echo esc_url( $og_imghya ); ?>" />
    		<?php
    	}
    	add_action('wp_head', 'og_imgyay');
    Thread Starter johnisjohn

    (@johnnnnnnnnnnnn)

    But I think the best implementation is downloading the image and setting it as the post featured image :p

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘set image as featured image’ is closed to new replies.