View Single Post
  #1 (permalink)  
Old 17-04-2008, 06:01 PM
jeffross's Avatar
jeffross jeffross is offline
Command Z aficionado
 
Join Date: Mar 2008
Location: Not Ramsbottom
Gender: Male
Posts: 731
Default Adding PHP code to a WordPress blog

I'm pretty new to PHP and WordPress, and I'm looking for a little bit of assistance.

My client is wanting to add a "Country" text box to the comment form area of their blog. (Right now, we just have "Name," Email," and "Website.") Here's how that code sits right now...

HTML Code:
<input name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" type="text"><label for="author"><small>Name </small></label>

<input name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" type="text"><label for="email"><small>Mail (will not be published) </small></label>

<input name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" type="text"><label for="url"><small>Website</small></label>
Is all that's required to add this is the following code?...

HTML Code:
<input name="location" id="location" value="<?php echo $comment_location; ?>" size="22" tabindex="4" type="text"><label for="location"><small>Country </small></label>
I just want to make sure I'm not messing something up, or forgetting to add something somewhere else.

EDIT: Sorry I can't seem to get the code to show as just plain text... Any help on how to get it to show up correctly...?

Last edited by jeffross; 21-04-2008 at 10:42 PM.
Reply With Quote