As the code has been removed, can you add it to http://pastebin.com and post the link back in a reply.
It looks like you have an unclosed <?php ; ?>
statement, check the code before line 44 and look for any missing braces }
or php end tags ?>
An example that would error would be:
<?php get_header();
<div id="container">
The closing tag ?>
is missing (close php and open html), should be:
<?php get_header(); ?>
<div id="container">
Else if:
<?php if($condition==1) : ?>
<h2 class="entry-title">Blah Blah<h2>
<?php elseif($condition==2) : ?>
<h1 class="entry-title">Blah Blah<h1>
<?php else : ?>
<h3 class="entry-title">Blah Blah<h3>
<?php endif; ?>
HTH
David
Whoops!
http://pastebin.com/TqwswuD0
Thanks for the reply – much appreciated.
I think it must be this code as the page works fine without it?
You have mixed code php
and html
you need to break the php code.
Solution.
<?php if( in_category('sponsored-posts') ) { ?>
<?php } elseif( in_category('guest-posts') ) { ?>
<?php } else { ?>
<?php } ?>
Or UNTESTED updated code using :
;
and not {}
.
http://pastebin.com/Sp4BECHZ
HTH
David
Thank you Ever so much for your help – worked perfectly.
Just 1 final question!
In the sponsored-posts category, I don’t want any code (I don’t want anything to display) so can I just leave it blank or should I add {} which I have seen in other examples?
Just leave it blank, also could you mark this as resolved please.
David