ID, '_ast_meta_title', true ); $description = get_post_meta( $post->ID, '_ast_meta_description', true ); $keywords = get_post_meta( $post->ID, '_ast_meta_keywords', true ); if ( ! $title ) { $title = get_the_title() . ' | ' . get_bloginfo( 'name' ); } if ( ! $description ) { $description = wp_trim_words( $post->post_content, 20 ); } echo "" . esc_html( $title ) . "\n"; echo "\n"; if ( $keywords ) { echo "\n"; } // Open Graph tags echo "\n"; echo "\n"; echo "\n"; echo "\n"; // Twitter Card tags echo "\n"; echo "\n"; echo "\n"; } } }