ID, '_ast_og_title', true );
$og_description = get_post_meta( $post->ID, '_ast_og_description', true );
$og_image = get_post_meta( $post->ID, '_ast_og_image', true );
$twitter_title = get_post_meta( $post->ID, '_ast_twitter_title', true );
$twitter_description = get_post_meta( $post->ID, '_ast_twitter_description', true );
$twitter_image = get_post_meta( $post->ID, '_ast_twitter_image', true );
?>
ID, '_ast_og_title', true ) ?: get_the_title( $post->ID );
$og_description = get_post_meta( $post->ID, '_ast_og_description', true ) ?: get_the_excerpt( $post->ID );
$og_image = get_post_meta( $post->ID, '_ast_og_image', true ) ?: get_the_post_thumbnail_url( $post->ID, 'large' );
$twitter_title = get_post_meta( $post->ID, '_ast_twitter_title', true ) ?: $og_title;
$twitter_description = get_post_meta( $post->ID, '_ast_twitter_description', true ) ?: $og_description;
$twitter_image = get_post_meta( $post->ID, '_ast_twitter_image', true ) ?: $og_image;
// Open Graph meta tags
echo '' . "\n";
echo '' . "\n";
echo '' . "\n";
echo '' . "\n";
if ( $og_image ) {
echo '' . "\n";
}
// Twitter Card meta tags
echo '' . "\n";
echo '' . "\n";
echo '' . "\n";
if ( $twitter_image ) {
echo '' . "\n";
}
}
}
}