WordPress.org

Forums

Parse error: syntax error, unexpected ' (2 posts)

  1. cricketism
    Member
    Posted 2 years ago #

    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(); ?>
  2. Andrew
    Forum moderator
    Posted 2 years ago #

    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(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic