WordPress.org

Ready to get started?Download WordPress

Forums

Custom Content Type Manager
How To Attach Form Submissions To Custom Type (3 posts)

  1. ecoevolver
    Member
    Posted 1 year ago #

    Hi There,

    I've created a custom content type called "Plants", and each "plant" I'd like to attach gravity form submissions. For example, I have a daily maintenance form. I'd like all forms submitted for a particular plant to be listed on that Plant's page.

    So you can see a record of form submissions on the plant page. I don't need to load the data from the gravity forms, just the title and link to the data.

    Can someone point me in the direction of how i might do this?

    http://wordpress.org/extend/plugins/custom-content-type-manager/

  2. ecoevolver
    Member
    Posted 1 year ago #

    I'm thinking this the other way around...How do I query the database to grab all Posts of type "Plant". If I can get a list of id's I can store the plant id in the gravity form.

    Thanks!

  3. fireproofsocks
    Member
    Plugin Author

    Posted 1 year ago #

    If you want to grab a list of posts, you can use WP's built-in functions (which I do not recommend), or use the CCTM's included GetPostsQuery class, either in your template files or via a shortcode:

    http://code.google.com/p/wordpress-custom-content-type-manager/wiki/get_posts
    http://code.google.com/p/wordpress-custom-content-type-manager/wiki/get_posts_examples
    http://code.google.com/p/wordpress-custom-content-type-manager/wiki/summarize_posts_shortcode

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.