Code in comments issue
-
My site gets a lot of code poste din comments and yesterday when someone posted a block of code it did not display properly.
I tried to post the same code myself in comments and it didn’t display properly either. I took the same code and posted it into a regular post and it displayed fine.
This is the code here
<?php if ( is_single() ) : ?> <h1 class="entry-title"><?php the_title(); ?></h1> <?php else : ?> <h1 class="entry-title"> <a href="<?php the_permalink(); ? rel="nofollow">" rel="bookmark"><?php the_title(); ?></a> </h1>
This is what it ends up looking like https://postimg.org/image/esafhwm1h/
Any idea why this particular bit of code isn’t displaying properly in just the comments? Other code posted into comments displays perfectly. Crayon Syntax Highlighter and other plugins I’ve tried display it fine but I’d like to keep using this one.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Code in comments issue’ is closed to new replies.