Custom Post Type Page help

Home Forums Quform WordPress Custom Post Type Page help

This topic is: resolved

This topic contains 3 replies, has 2 voices, and was last updated by  aaron1988 5 months, 2 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #28318

    aaron1988
    Participant

    Hi,

    I have installed a plugin called: CPT UI to create custom post types, Then i have installed another plugin called:

    Admin Columns Pro. which allows me to add in custom fields to the custom post type i.e.

    Title | Date | Listening | Reading | Writing | Spoeaking for me to get the information from the custom post type insert script for quform to show this information do i need to change this piece of code to anything:

    // Creatint Custom Page
    add_filter('quform_post_process_6', function (array $result, Quform_Form $form) {    
      $title = 'Personal Performance Plan';    
      ob_start();
        include __DIR__ . '/personal-performance-plan.php';
        $content = ob_get_clean();
     
        $post = array(
            'post_title' => $title,
            'post_content' => $content,
            'post_type' => 'ielts_emails',
            'post_status' => 'publish'
        );
     
        wp_insert_post($post);
     
        return $result;
    }, 10, 2);

    Thanks
    Aaron

    #28335

    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #28340

    aaron1988
    Participant

    Thanks 🙂 i will test this tonight or monday and then give you an update.

    Thanks
    Aaron

    #28367

    aaron1988
    Participant

    Thanks, it worked 🙂

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Be inspired. © 2019 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy