• I have looked through the support forum and have not found an
    exact answer to my question, so I am posting here to see if there
    is one.

    What I’m looking to do is modify the comments form (hope I’m using
    the correct terminology) so that when someone posts a comment to
    a topic, they have more fields than just the comment textarea field.

    As an example, let’s say the topic was between 3 colors, red, green,
    and blue. So, could I add a combo box to the comments form, so that
    when someone posted a comment as to why they prefer the color red,
    they select it from the combo box and then tab into the comment
    textarea field. They add their text, and then post.

    The end result is the ability for me to search for all posts where
    the color choice is ‘red’ so that I can see those comments. ???

    Is this possible?

    Thanks in advance,

    Michael

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there,
    I am looking for something similar. As Michael said before, the comment form underneath each post contains currently four formfields (#commentform #name, #commentform #email, #commentform #url, #commentform textarea).

    I would like to add any number of additional textfields (i.e. #commentform #jobopening), then display that user-supplied information as part of the posted comment, much like #commentform #author is used in the META data for each comment. I would like to use this information to make the posted comment easier to scan.

    Here’s the example I have in mind: I would like to use the commentform as a way for people to post job openings at a university. Rather than have them login as a subscriber and supply all that information in custom fields (using rc-custom-field-gui plugin), I would like to simply add a field in the commentform.

    Any website visitor would enter in the commentform fields their contact info, what they are looking for, check some radio buttons, and post a brief resume in the comment textarea. After submitting the comment, the comment would appear with custom-styled information that is easy to scan.

    Any chance anyone has come across this? Thanks.

    Uli
    uli_nyc [at] yahoo.com

    amcgall

    (@amcgall)

    I would like to remove the URL field from the comments form so users can not leave a web site address. Getting lots of spam because of this.

    Kafkaesqui

    (@kafkaesqui)

    amcgall, then just edit it out of your current theme’s comments.php template (if it doesn’t have one, it will use the default theme’s comments.php). The field is not a required one for comments.

    By the way, it’s always a good idea to start a new topic thread in the forums, rather than piggyback on one which barely relates to your issue.

    I’m also looking to add custom fields in my comments form.

    Here’s a helpful tutorial on how to add a field to your WordPress comments. I haven’t worked through it yet but a quick glance suggest that it’s likely to work.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Modifying the comments form to add custom fields’ is closed to new replies.