Home › Forums › Quform WordPress › Custom Post Type Page help
This topic is: resolved
- This topic has 3 replies, 2 voices, and was last updated 5 years, 2 months ago by aaron1988.
Viewing 4 posts - 1 through 4 (of 4 total)
- AuthorPosts
- January 23, 2019 at 9:17 am #28318aaron1988Participant
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
AaronJanuary 25, 2019 at 4:54 pm #28335AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
January 25, 2019 at 5:19 pm #28340aaron1988ParticipantThanks 🙂 i will test this tonight or monday and then give you an update.
Thanks
AaronJanuary 30, 2019 at 11:06 am #28367aaron1988ParticipantThanks, it worked 🙂
- AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.