• vgs87

    (@vgs87)


    i have my Page.php of my template and this is the originale code:

    <div id="system">
    
    <?php if (have_posts()) : ?>
    
        <?php while (have_posts()) : the_post(); ?>
    
        <article class="item">
    
            <header>
    
                <h1 class="title"><?php the_title(); ?></h1>
    
            </header>
    
            <div class="content clearfix"><?php the_content(''); ?></div>
    
            <?php edit_post_link(__('Edit this post.', 'warp'), '<p class="edit">','</p>'); ?>
    
        </article>
    
        <?php endwhile; ?>
    
    <?php endif; ?>
    
    <?php comments_template(); ?>

    Now, i have insert this other code under togheter:

    http://nopaste.info/84fc080ad2.html

    And the page say to me this error:

    Parse error: syntax error, unexpected T_VARIABLE in /home/onlyimg/public_html/test/wp-content/themes/yoo_balance_wp/layouts/page.php on line 21

    Please help me.

Viewing 4 replies - 1 through 4 (of 4 total)
  • jevets

    (@jevets)

    You’re probably missing a semicolon or a closing ?> tag on
    /home/onlyimg/public_html/test/wp-content/themes/yoo_balance_wp/layouts/page.php on line 21

    Check that file for syntax around line 21.

    Thread Starter vgs87

    (@vgs87)

    Jevets, do you have see my code? can you check please?

    jevets

    (@jevets)

    Line 21 looks ok, no syntax error that I can spot.

    Make sure you’re looking at the right file, the code above seems to be a page template, possibly page.php right in the theme’s root, whereas the error refers to yoo_balance_wp/layouts/page.php. Check this file around line 21.

    Thread Starter vgs87

    (@vgs87)

    http://nopaste.info/84fc080ad2.html <— where is the error in line 21?

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