Why does this line of code make photo albums appear?

This line has wrong syntax:

<?php if ( is_singular() ) wp_enqueue_script ( 'comment-reply'); wp_head() ; ?>

The call to wp_head() should not be on the same line as the conditional for the comment-reply script.

Change it to this:

<?php 
// Conditional to determine if comment-reply form script should be included
if ( is_singular() ) wp_enqueue_script ( 'comment-reply'); 
// Fire the `wp_head` hook, which should happen always, on every pageload
wp_head(); 
?>

Leave a Comment