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.

Form posts as Testimonials, not traditional Blog Posts

  1. Good morning everyone. Probably a simple question, but I can't find a thread that helps me solve it on my own... here goes:

    I have built a nice testimonials form on a site, and have no problem creating new posts that display correctly on the site. However, the post data is stored as a POST. I would like to know if / how I can set the form (or create a new one) that stores post data as a TESTIMONIAL - and accessible when clicking on the default TESTIMONIALS menu item within the default Wordpress installation.

    In case you're wondering why - its driven by how I want to display the testimonials on my site. My Site My Way has a great framework and elegant styling for TESTIMONIALS which are handled differently than typical post data. I would like to take advantage of these elements (if possible), but need guidance on how to use GF to achieve the above.

    URL: http://mindsparkconsulting.com/clients/ut2/feedback/

    thanks in advance for your help!

    Posted 12 years ago on Thursday September 20, 2012 | Permalink
  2. There is no default Testimonials menu on a WordPress installation. Is it possible that your framework includes a custom post type of testimonial? If that's the case, you can change the post type after the form is submitted using the gform_post_data filter: http://www.gravityhelp.com/documentation/page/Gform_post_data

    add_filter("gform_post_data", "update_post_type", 10, 2);
    function update_post_type($post_data, $form) {
        // maybe the custom post type is 'testimonial'?
        $post_data["post_type"] = "testimonial";
        return $post_data;
    }
    Posted 12 years ago on Saturday September 22, 2012 | Permalink