Hot answers tagged

4 votes
Accepted

Make PHP work with HTML tags

From your code the proper structure would be if ( is_singular() ) { if (get_post_meta(get_the_ID(), 'square_image', true)) { echo '<img src="' . get_post_meta($post->ID, '...
user avatar
1 vote
Accepted

Javascript code inside "<# #>" in core WordPress files .php

These are Underscore Templates, handled by the wp.template() JavaScript function (source here) which takes in a template ID corresponding to a <script type="text/html" id="tmpl-{...
user avatar
  • 5,165

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