Good morning all,
So, this morning I attempted to add the following snippet of code to our company's blog:
if ( has_tag ('bleh'))
{
<body <?php body_class( 'tag-bleh' ); ?>>
}
That's it. If a new post has bleh tag, add bleh. Which was already added to the custom CSS without issue.
As the title states, the moment I updated, the site crashed with http 500.
We recovered and when I checked the code it was there with some extra characters added in (data corruption I imagine). I am now hesitant to go clean up the characters because I do not wish to crash it again (bosses don't like that sort of thing).
We are using the zoran theme if that matters.
I would appreciate any offerings of what I did incorrectly and obviously how to avoid it in the future.
Thanks for the help.