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.

add custom fields data to post body

  1. I search for a while any answers, but I didn't find one... I know I have to use the pre_ hook, but there isn't a clear documentation to do that?

    Thanks, I need help!

    Posted 13 years ago on Friday December 3, 2010 | Permalink
  2. To add the content of a custom field to your post body, enable the Post Content Template of your post body field. This will allow you to build your post body and insert custom field variables in it.

    Posted 13 years ago on Friday December 3, 2010 | Permalink
  3. Jade
    Member

    Hi Alex,

    I tried to do this, but not sure exactly how to actually create fields within the post body. Is there a way to require contributors to enter, for example, Date and Time WITHIN the post body? I am trying to get contributors to share events, and although I can use advanced fields to have them enter the date and time of the event, it doesn't show up in the post.

    Thanks very much!

    Posted 13 years ago on Sunday January 2, 2011 | Permalink
  4. The Content Template functionality of the Post Body field works exactly like the Notification Message Body and the Confirmation Text functionality.

    You edit the Post Body, you check the checkbox to enable the Content Template functionality and then you are presented with a Insert Field Value drop down and a text area.

    Whatever you enter in that text area field is what will be used to create the Post Body for the post that is created. You then use the Insert Field Value drop down to insert merge codes that output field values in your Post Body.

    Here is a screenshot of the Content Template functionality being used on the Post Body field:

    http://grab.by/8b4j

    Please note the form field variables for your form will not be the same, they are form specific.

    Posted 13 years ago on Monday January 3, 2011 | Permalink
  5. Jade
    Member

    Thanks Carl!

    One more thing: How do I position the image uploaded via another custom field within the post body? I've put it into the post body with {Image:15} but it's only posting the url of the image in the post body. I've gotten the actual image to show up in the post before, but through edits lost it.

    Posted 13 years ago on Wednesday January 12, 2011 | Permalink
  6. You should be able to use html like this:

    <img src="{Image:15}" alt="" />

    :to put the image wherever you'd like.

    Posted 13 years ago on Wednesday January 12, 2011 | Permalink
  7. Hi
    Asa newbie I am struggling with getting beyond the basics. This plugin is great and I know it can do everything I want - problem is don't know that I can everything I want.
    I have a registered user upload function on new site: http://photodesk.org/
    All swell - except I wish a custom field I created where a user enters url >>Your Website<< to show on the post when it is published.
    Would also like to add a couple extra fields in this manner....
    Have spent day trying to sort this out - found this thread but still not getting it!!!
    BTW Gravity Forms for Dummies would be great
    Any advice please.
    Cheers
    Paul

    Posted 12 years ago on Friday August 19, 2011 | Permalink
  8. Any feedback on this?

    Posted 12 years ago on Sunday August 21, 2011 | Permalink
  9. If you accept the URL in the form, just add that merge field to the content template, so that it will be shown with the post body they submitted.

    Can you post the form somewhere public? You mentioned 'registered user' but I am not.

    Are you using the content template now? Click on your Post Body field, and be sure "Create content template" is checked. Then, from the "Insert form field" drop down, find the field that you use to accept their URL, and insert that into the template either before or after the content, and image or whatever else you're using.

    If you insert it by itself, it will just be plain text in your post body. You will need to create the HTML link and insert that merge tag twice. It will look something like this:

    Visit my site: <a href="{Your Website:2}">{Your Website:2}</a>

    That can be either before or after the post body and image and whatever else you are putting into the post.

    Posted 12 years ago on Sunday August 21, 2011 | Permalink