WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: WP Maintenance Mode] facebook like…

[Resolved] [Plugin: WP Maintenance Mode] facebook like…

  • hi just added facebook like button to my WP Maintenance Mode and also

    <meta property="og:title" content="coca cola"/>
        <meta property="og:type" content="food"/>
        <meta property="og:url" content="http://cola.com"/>
        <meta property="og:image" content="http://cola.com/cola.jpg"/>
        <meta property="og:site_name" content="coca cola"/>
        <meta property="og:description" content="love my cola"/>

    to site.php but when i like and post to facebook there is only my website url missing other property…

    how can i fix this

    thanks for any help and btw gr8 plugin…

    http://wordpress.org/extend/plugins/wp-maintenance-mode/

Viewing 1 replies (of 1 total)
  • Frank Bueltge
    Participant

    @bueltge

    This OG data was add to the head of site.php.
    Use the hook wp_head to add your OG meta data, like in a small plugin.

    add_action( 'wp_head', 'fb_example_og' );
    	function fb_example_og() {
    	?>
    		<meta property="og:title" content="coca cola"/>
    		<meta property="og:type" content="food"/>
    		<meta property="og:url" content="http://cola.com"/>
    		<meta property="og:image" content="http://cola.com/cola.jpg"/>
    		<meta property="og:site_name" content="coca cola"/>
    		<meta property="og:description" content="love my cola"/>
    	<?php
    	}
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: WP Maintenance Mode] facebook like…’ is closed to new replies.