Skip to content

header.entry-header in loop.php not outputting h1 or h2 #4

@cwcage

Description

@cwcage

Within the loop.php file it seems that the h1 or h2 tags are not getting printed out in the HTML.

There are two places in the file where I see this:

      <?php $post_title_tag = is_single() ? "h1" : "h2"; ?>
      <<? print $post_title_tag ?> class="entry-title"><?php the_title(); ?></<? print $post_title_tag ?>>

What ends up rendering is this:

    &lt;<!--? print $post_title_tag ?--> class="entry-title"&gt;TrueCar releases average transaction prices<!--<? print $post_title_tag ?-->&gt;

I'm not a programmer by any means, but I figured out if I added 'php' before each 'print', it would work.

    <<?php print $post_title_tag ?> class="entry-title"><?php the_title(); ?></<?php print $post_title_tag ?>>

Is there a different way to get this to work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions