parse error (while making wordpress theme comments.php)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
puikaaa
Forum Newbie
Posts: 2
Joined: Wed Apr 28, 2010 3:01 am

parse error (while making wordpress theme comments.php)

Post by puikaaa »

Hi!
I've problem thath i can't solve by myself. So i hope someone can help me here with this code that i wrote for Wordpress theme, comments.php.
Soo, here is the problem:
Parse error: parse error in \wp-content\themes\b&w\comments.php on line 84
Here is the broken line:

Code: Select all

<?php if ($post-> comment_status == "open" && $post->ping_status == "open") { ?>
And here is FULL php code of comments.php: http://paste.php.lv/796b3170cf0bfe0bc28 ... 8?lang=php
With regards,
Rich
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: parse error (while making wordpress theme comments.php)

Post by Eran »

I hope you have && and not the entities equivalent (&&) in your code
puikaaa
Forum Newbie
Posts: 2
Joined: Wed Apr 28, 2010 3:01 am

Re: parse error (while making wordpress theme comments.php)

Post by puikaaa »

:banghead: :lol:
yeah stupid unicode
tq. i should wach closer. at least now my code is debuged. :)
With Regards,
Rich
Post Reply