• I am trying to show an example of how to format a link by editing the comments.php file like something shown below

    What parameters or tags do I use to let the raw HTML show?

    <h3 id="respond">Leave a Reply</h3>
    Please format your HTML like this: <a href="WebsiteURL" target="_blank"> Title Of Website
Viewing 4 replies - 1 through 4 (of 4 total)
  • best bet is to use this tag
    <?php echo allowed_tags(); ?>

    Basically it will say all the stuff users can use in the comment field. So

    The following tags are allowed: <?php echo allowed_tags(); ?>

    Thread Starter houdy

    (@houdy)

    Thanks Mark,

    But is there any why to show the exact code like this?

    <a href="WebsiteURL" target="_blank"> Title Of Website

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Instead of using < and > characters, use the text &lt; and &gt;. That will show up as those characters on the page.

    Thread Starter houdy

    (@houdy)

    Thanks Otto, Worked like a charm!

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

The topic ‘How do I Show Sample HTML Code In comments.php file’ is closed to new replies.