[Solved] How to nest php inside if statement
I like this syntax myself ( when working in mixed HTML/PHP ) <?php $blogname = get_bloginfo(‘name’); if ($blogname == ‘Wobbling Willy’): //-note- colon not semi-colon ?> <meta name=”description” content=”<?= bloginfo(‘description’); ?>” /> <meta name=”keywords” content=”keyword1, keyword2, keyword3” /> <?php endif; ?> OR <?php $blogname = get_bloginfo(‘name’); if ($blogname == ‘Wobbling Willy’){ //open bracket ?> <meta … Read more