Support » Themes and Templates » Parse error: syntax error, unexpected '

  • I’m not php developer, While posting a standered post, post get published but when I tried to view it from my blog it returned

    Parse error: syntax error, unexpected '<' in /home/cricket3/public_html/wp-content/themes/graphene/single.php on line 3

    I dont know how to rectify it, can any one help me?

    My single.php read as follows

    <?php
    /** * The Template for displaying all single posts. * * @package Graphene * @since Graphene 1.0 */
    <div class="commentsblock">
    <?php comments_template(); ?>
    </div>
    get_header(); ?>
    <?php
       /* Run the loop to output the posts.     * If you want to overload this in a child theme then include a file     * called loop-single.php and that will be used instead.     */	the_post();	get_template_part('loop', 'single');    ?>
       <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
  • Moderator Andrew Nevins

    (@anevins)

    Try this

    <?php
    /** * The Template for displaying all single posts. * * @package Graphene * @since Graphene 1.0 */
    ?>
    <div class="commentsblock">
    <?php comments_template(); ?>
    </div>
    get_header(); ?>
    <?php
       /* Run the loop to output the posts.     * If you want to overload this in a child theme then include a file     * called loop-single.php and that will be used instead.     */	the_post();	get_template_part('loop', 'single');    ?>
       <?php get_footer(); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Parse error: syntax error, unexpected '’ is closed to new replies.