• Resolved HitchB

    (@hitchb)


    Hi,

    Would like to have your support on how to add values I get from another plugin to a table post using your plugin.
    I’m using Quform Plugin which enables me to create sophisticated forms to display on the front end, but I need to post the entries submitted in a post.
    Entries are collected in the back end normally but it’s possible
    to post the entries in a post.Just need to find a way to present them in a clean table using your wonderful plugin.

    https://www.ads-software.com/extend/plugins/wp-table-reloaded/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter HitchB

    (@hitchb)

    This is the code used to post the values and it works. However I need to present them in a clean table.

    add_action('iphorm_post_process_2', 'mytheme_create_wp_post', 10, 1);
    
    function mytheme_create_wp_post($form)
    
    {
    
        $title = $form->getValue('iphorm_2_1'); // Unique ID field referring to the form.
    
    $content .= '<br>Country:<br />' . $form->getValue('iphorm_2_11'); // iphorm_x_x is the ID of the field.
    
    $content .= '<br>Location:<br />' . $form->getValue('iphorm_2_12');
    
    $content .= '<br>Company:<br />' . $form->getValue('iphorm_2_2');
    
    $content .= '<br>Website:<br />' . $form->getValue('iphorm_2_4');
    
    $content .= '<br>Category:<br />' . $form->getValue('iphorm_2_7');
    
    $content .= '<br>Description:<br />' . $form->getValue('iphorm_2_8');
    
    $content .= '<br>Expiry Date:<br />' . $form->getValue('iphorm_2_10');
    
        $post = array(
    
            'post_title' => $title,
    
            'post_content' => $content
    
        );
    
        wp_insert_post($post);
    
    }

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question.

    You don’t really need my plugin for this, and I don’t see a way to use WP-Table Reloaded for this. Adding data from another plugin to a table in WP-Table Reloaded is not possible.
    To create a table, you will just have to re-format that code you have, so that it prints out HTML code for a table.

    Regards,
    Tobias

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP-Table Reloaded] Adding values from external plugin’ is closed to new replies.