Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6822607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:41:02+00:00 2026-05-26T21:41:02+00:00

I am getting the following error: Parse error: syntax error, unexpected ‘<‘ in /home/u7mtb69/public_html/wpsitehrhhw/wp-content/themes/hrhhw.1.1/functions.php

  • 0

I am getting the following error:

Parse error: syntax error, unexpected ‘<‘ in /home/u7mtb69/public_html/wpsitehrhhw/wp-content/themes/hrhhw.1.1/functions.php on line 1201

I am trying to add meta boxes to a custom post section in my function.php file.

The file works great, until I add the <div> container, then I get an error – but the container looks correct.

Can anyone tell me what the issue is?

// Add WHEELS meta boxes

    add_action( 'add_meta_boxes' , 'wheel_meta_boxes' );
    function wheel_meta_boxes() {
        add_meta_box(
        'wheel_info',
        __( 'Wheel Info'),
        'wheel_info_div',
        'wheels'
        );
    }

    function wheel_info_div( $post ) {
      // Use nonce for verification
      wp_nonce_field( plugin_basename( __FILE__ ), 'wheel_noncename' );
    }

// WHEELS fields for data entry

<div>
    <label for="tire_code">
        <?php _e("Tire Code");?>
    </label>
        <input type="text" name="tire_code" value="<?php echo get_post_meta($post->ID, 'tire_code', true);?>" />
        <br>

    <label for="tire_name">
        <?php _e("Tire Name");?>
    </label>
        <input type="text" name="tire_name" value="<?php echo get_post_meta($post->ID, 'tire_name', true);?>" />
        <br>

    <label for="tire_bname">
        <?php _e("Tire Brand");?>
    </label>
        <input type="text" name="tire_bname" value="<?php echo get_post_meta($post->ID, 'tire_bname', true);?>" />
        <br>

    <input type="button" value="Create" id="create" />
    <input type="button" value="Replace" id="replace" />
    </div>

// NEXT

// END

?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:41:02+00:00Added an answer on May 26, 2026 at 9:41 pm

    The problem is that you put HTML inside a PHP block. Don’t do that.

    You must remember that PHP and HTML are completely distinct. There is no relationship whatsoever, other than that the HTML your browser sees is the result of a PHP interpreter running your PHP script (which may include some hard-coded HTML to keep in the output, like your <div>). So when you see a PHP error, it’s not going to be HTML at fault.


    Wrong:

    <?php
    $somePHPCodeHere = 3;
    
    <p>Some HTML here.</p>
    ?>
    

    Right:

    <?php
    $somePHPCodeHere = 3;
    ?>
    
    <p>Some HTML here.</p>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting the following error: Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION
I am getting the following error: Parse error: syntax error, unexpected T_OBJECT_OPERATOR in.. on
I keep getting the following error in my log PHP Parse error: syntax error,
i'm getting the following syntax error: Parse error: parse error in C:\wamp\www\merry_flowers\controllers\merry_parents_controller.php on line
I am getting the following error in one of my php file Parse error:
I keep getting the following error when trying to parse some html using BeautifulSoup:
I am getting following error when i parse my XML org.apache.harmony.xml.ExpatParser$ParseException: At line 1,
I'm getting the following error when I boot my rails 3.1.3 application: psych.rb:148:in `parse':
Am getting following error message on calling WCF service: The formatter threw an exception
I am getting following error when I am trying to get WebResponse using WebResponse

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.