PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

user generated posts

  1. peregrino
    Member

    Hi,

    sorry, my english is not so good, but I'll try to explain;-)

    i want to use Gravity Forms for user-generated posts. If they know a hostel, they should answer some questions, where it is, how many beds, a radio-button box... And when they press submit, there should be a new post. I guess, I need to use the custom fields, but I really don't know what I have to do. Could you please give me an idea?
    Thanx, peregrino

    Posted 14 years ago on Friday April 9, 2010 | Permalink
  2. RichardBest
    Member

    Hi there

    This is one of the coolest things about Gravity Forms. You can do precisely what you're after. Just create a form using fields from the "Post Fields", and you're good to go!

    R.

    Posted 14 years ago on Saturday April 10, 2010 | Permalink
  3. peregrino
    Member

    Hi:-)

    I tried what you told me and it works:-) great! It is exactly what I was searching for.
    but...just the body-field and the title-field. When I want to use the custom-fields, it doesn't work...? Do I have to enable something in the advanced-options? Or do I have to write something in the single-post-template? I'm sorry, I am a little bit stupid with that...

    peregrino

    Posted 14 years ago on Saturday April 10, 2010 | Permalink
  4. You have to add the code your page template to display the values of the custom fields. Only the title and body are displayed by default. You can find more information on custom fields here.

    http://codex.wordpress.org/Custom_Fields

    Posted 14 years ago on Saturday April 10, 2010 | Permalink
  5. RichardBest
    Member

    Indeed.

    In case you're interested, there are also two other ways of doing it. The first, and very basic way, is to prepopulate the body content in your form with certain text that acts as prompts to the answers/information you want. Those using the form then just complete that populated text. Of course, this is very basic, as it wouldn't - for example - enable sorting by reference to custom field values.

    The second and more complicated way is to use the Gravity Form hooks and some function calls, so that when WordPress processes a form/post submission, it inserts content into your post depending on the answers to the questions in the forms. This can be done with or without the use of custom fields, though I guess using custom fields would be preferable, as it'd give you flexibility later on if you wished to output data by reference to custom field values (although you could probably achieve the same effect through a creative use of categories and subcategories).

    I probably won't have time to do this, so can't promise anything, but why don't you post all your requirements here. Either I or one of the GF crew will probably be able to help you make this happen.

    R.

    Posted 14 years ago on Saturday April 10, 2010 | Permalink
  6. peregrino
    Member

    Hi Richard,

    would you do that for me? Awesome:-) Here http://pilgrimsdiary.de/blog/herbergen/herbergen-hinzufugen you can see the form-fields I need. And I don't know if it's possible but I would like, that the posts looks a bit different than a simple list, for example the uploaded picture in the left corner, the adress in the right...? But it's not that important. I would be happy, if it works:-). The new posts should be in the category "Herbergen"...

    If you need more information, please tell me:-)

    Posted 14 years ago on Sunday April 11, 2010 | Permalink