How to get string from add_theme_support(‘title-tag’) for meta tag and beautify?
I don’t have a good way to query a title string to fill in the content You can use wp_get_document_title() to get the document title. So for example in your case: (see the docs for details on esc_attr()) <?php // Put the title (string) in a variable. $title_esc = esc_attr( wp_get_document_title() ); ?> <meta property=’og:title’ … Read more