2

OH I figured it out. <?php $myvariable = get_the_title( ''. '', false ); echo "<a href='website.com/view/$myvariable'>View on website.com</a>"; ?> Hopefully this helps someone else!


1

https://developer.wordpress.org/reference/functions/wp_add_inline_script/ should be a preferred option nowadays EDIT: From the docs above: function mytheme_enqueue_typekit() { wp_enqueue_script( 'mytheme-typekit', 'https://use.typekit.net/.js', array(), '1.0' ); wp_add_inline_script( 'mytheme-typekit', 'try{Typekit.load({ async: true });}catch(e){}' ); ...


Only top voted, non community-wiki answers of a minimum length are eligible