Forums

User Form Exposing Specific Custom Fields (2 posts)

  1. seraph
    Member
    Posted 4 years ago #

    Hi all,

    Let me first describe what I'm trying to do. I want to create a form which will allow the user to submit reviews. Now, the first review will actually create a post with a bunch of information from custom fields in the form, and the users review text will become the first comment for that post.

    Now, for each category, there will be varying custom fields. Restaurants might have "Good for groups? {Yes, No}" and ratings (1-5) and so on. Probably ~5-10 fields per category.

    The problem is:

    • I know that posts can have custom fields, but I can't find any reference to this for comments.
    • Handling the field after submission of the form for both posts and comments. I can't find an appropriate hook/action to do this.

    I'm not exactly new to WordPress or PHP (a bit rusty as I've not touched either in a year or more, code-wise) so pointers as to what development direction would be greatly appreciated.

  2. Dgold
    Member
    Posted 4 years ago #

    For letting users submit the initial review in your customized Write Review area, even with Custom Fields, from the frontend of the site without going into the admin areas,
    http://wordpress.org/extend/plugins/tdo-mini-forms/

    For adding Custom Fields to Comments,
    http://www.ideashower.com/our_solutions/wordpress-plugin-extra-comment-fields/

    Hope this helps! Would like to see how your site turns out!

Topic Closed

This topic has been closed to new replies.

About this Topic