• hooopla

    (@hooopla)


    Am I making a mistake by including HTML in the title field of my post?

    Here’s the relevant line from my index.php. Note that I’ve removed the permalink stuff and am simply displaying the post title.

    code<h3 class=”storytitle” id=”post-<?php the_ID(); ?>”><?php the_title(); ?></h3>code

    In the title field, I’m entering things like:

    <a href="https://www.google.ca">This is the post title</a>

    WP 1.5 seems quite happy to let me do this, but I’d appreciate the opinion of somone who’s more technically expert than I am.

Viewing 3 replies - 1 through 3 (of 3 total)
  • carthik

    (@carthik)

    You can do what you please, really. The only thing that would have me worried is how to get the users to the page that has the single post and comments. Maybe you can add a link for that permalink somewhere else.

    Thread Starter hooopla

    (@hooopla)

    Thank you very much, carthik. Yes, I’m putting the permalink into the meta div.

    carthik

    (@carthik)

    Cool! You’re all set then, hoopla ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘HTML in Title field’ is closed to new replies.