i had an error while comment.php loading . the error is :
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in C:\xampp\htdocs\word\wp-content\themes\3thoob\comments.php on line 57
<div id="commentreplycontainer"> <?php if ( post_password_required() ) : ?> <div class="must-log-in"><?php _e( 'هذه التدوينة محمية ، أدخل كلمة المرور لمشاهدة هذه التدوينة' ); ?></div> </div><!--END commentreplycontainer --> <?php /* Stop the rest of comments.php from being processed, * but don't kill the script entirely -- we still have * to fully load the template. */ return; endif; ?>
<?php // You can start editing here -- including this comment! ?> <?php if ( have_comments() ) : ?> <div id="commentscontainertitle"> <h2>التعليقات على هذه التدوينة : <?php comments_number( '0', '1', '%' ); ?></h2> </div>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ( comments_open() ) : // If comments are open, but there are no comments ?>
<?php else : // or, if we don't have comments:
/* If there are no comments and comments are closed, * let's leave a little note, shall we? * But only on posts! We don't want the note on pages. */ if ( ! comments_open() && ! is_page() ) : ?> <p class="must-log-in"><?php _e( 'التعليقات مغلقة' ); ?></p> <?php endif; // end ! comments_open() && ! is_page() ?> <?php endif; ?>
It's not the default form because you have added a bunch of stuff. The WordPress built-in themes (twentyeleven) simply use the comment_form() function.
when i am not log in , there is a duplicate form , one from mine and other the default wordpress form .
this is my single.php :
<?php get_header();?> <div id="featuredslider"><!--this div contain any things about featured slider--> </div><!--END featuredslider-->
<div id="container"><!-- this div includes ( posts main area + sidebar )-->
<div id="posts"><!--this div include posts & its own-->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <!--START the loop--> <div class="post"><!-- this div contain all single post and its info--> <div class="posttitle"><!-- this div contain the title of post--> <a href="<?php the_permalink(); ?>"><?php the_title('<h2>', '</h2>'); ?></a> </div><!-- END posttitle-->
<div class="commentsnumber"><!-- this div contain the comments number which will take u to the comments of the specific post--> <span class="spanDash">|</span>التعليقات : <a href="<?php comments_link(); ?>"><?php comments_number( '0', '1', '%' ); ?> </a> </div><!-- END commentnumber-->
</div><!--END postmetadata-->
<div class="postimage"><!-- this div contain picture post--> <img src="<?php bloginfo('template_directory'); ?>/images/postlongimage.png" alt="صورة التدوينة"/> </div><!--END postimagelong-->
<div class="postcontent"><!-- this div contain the content of the post-->
<?php the_content( '<div class="more-link">أكمل القراءة</div>' ); ?> <!-- the content + READ MORE styling-->
<?php endwhile; ?> <?php else : ?> <p>عفوا ، يبدو أنه لا يوجد أي تدوينات </p> <?php endif; ?> <!--END the loop-->
</div><!--END posts--> <?php get_sidebar();?> <div id="pagination"><!--this div include any things related to PAGINATION pages--> </div><!--END pagnation--> <?php get_footer(); ?>
the error is :
what is the wrong ....!!!???
Then add:
And then go one by one through your arrays until you find the problem.
also im tired with this mess ..
but still there are problems ...
look at this image : Your text to link...
when i am not log in , there is a duplicate form , one from mine and other the default wordpress form .
this is my single.php :
Would need to see what's in there.