Frontier Post – Custom Fields
If you want to implement custom field support for Frontier Post, you you can now do this by adding code to your functions.php in your child theme – Below example adds a Rating field:
Custom fields requires fairly advanced php and WordPress skills. Custom fields will not be supported, unless there is a bug in the Frontier Post code – In other words, I cannot support your custom code.
Updated February 2017
//***************************************************************************************
//* Add custom fields to Frontier Post
//***************************************************************************************
// ********* Text field - Buttom of form *******
function fp_my_custom_text_field( $thispost, $tmp_task_new)
{
// New table cell containing additional fields
echo '<tr><td class="frontier_no_border">';
echo '<fieldset class="frontier_post_fieldset_additional">';
echo '<legend>Additional fields</legend>';
// a table to hold the fields and ensure alignment
echo '<table class="frontier_no_border"><tr>';
// Simple text field
$simple_txt_fld = get_post_meta( $thispost->ID, 'fp_text_fld', true );
echo '<td class="frontier_no_border">Text field:</td>';
echo '<td class="frontier_no_border">';
echo '<input name="fp_text_fld" id="fp_text_fld" value="'.$simple_txt_fld.'" size="40" type="text">';
echo '</td>';
echo '</tr></table>';
echo '</fieldset>';
echo '</td></tr>';
}
// add the action
add_action( 'frontier_post_form_standard_top', 'fp_my_custom_text_field', 10, 2 );
// ********* Rating field - Buttom of form *******
function fp_my_custom_rating( $thispost, $tmp_task_new)
{
// New table cell containing additional fields
echo '<tr><td class="frontier_no_border">';
echo '<fieldset class="frontier_post_fieldset_additional">';
echo '<legend>Additional fields</legend>';
// a table to hold the fields and ensure alignment
echo '<table class="frontier_no_border"><tr>';
// rating field
$rating = intval(get_post_meta( $thispost->ID, 'fp_rating', true ));
echo '<td class="frontier_no_border">Rating:</td>';
echo '<td class="frontier_no_border">';
$tmp_html = '<select class="frontier_post_dropdown" name="fp_rating" id="fp_rating" >';
$tmp_html .= '<option value="0"'.($rating == 0 ? ' selected="selected" >' : '>').'Not rated</option>';
// Build from 1 to 5 star rating
for ($i = 1; $i <= 5; $i++)
{
$tmp_html .= '<option value="'.$i.'"'.($rating == $i ? ' selected="selected" >' : '>').$i.' Stars</option>';
}
$tmp_html = $tmp_html.'</select>';
echo $tmp_html;
echo '</td>';
echo '</tr></table>';
echo '</fieldset>';
echo '</td></tr>';
}
// add the action
add_action( 'frontier_post_form_standard', 'fp_my_custom_rating', 10, 2 );
// *** End display frontier post custom fields
//***************************************************************************************
//* Get custom field values, and save them
//***************************************************************************************
function fp_save_my_custom_fields($tmp_post, $tmp_task_new, $input_values )
{
// Rating
if ( array_key_exists('fp_rating', $input_values) )
{
update_post_meta($tmp_post->ID, 'fp_rating', intval($input_values['fp_rating']) );
}
// Text Field
if ( array_key_exists('fp_text_fld', $input_values) )
{
update_post_meta($tmp_post->ID, 'fp_text_fld', $input_values['fp_text_fld'] );
}
}
add_action( 'frontier_post_post_save', 'fp_save_my_custom_fields', 10, 3 );
// ** End save Frontier Post Custom fields **

Comments
Frontier Post – Custom Fields — No Comments
Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /var/www/wpfrontier.com/public_html/wp-content/plugins/frontier-buttons/include/frontier-buttons-hooks.php:395 Stack trace: #0 /var/www/wpfrontier.com/public_html/wp-content/plugins/frontier-buttons/include/frontier-buttons-hooks.php(395): implode(Array, ',') #1 /var/www/wpfrontier.com/public_html/wp-includes/class-wp-hook.php(324): frontier_buttons_teeny_init(Array, 'comment') #2 /var/www/wpfrontier.com/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #3 /var/www/wpfrontier.com/public_html/wp-includes/class-wp-editor.php(804): apply_filters('teeny_mce_befor...', Array, 'comment') #4 /var/www/wpfrontier.com/public_html/wp-includes/class-wp-editor.php(312): _WP_Editors::editor_settings('comment', Array) #5 /var/www/wpfrontier.com/public_html/wp-includes/general-template.php(3971): _WP_Editors::editor('', 'comment', Array) #6 /var/www/wpfrontier.com/public_html/wp-content/plugins/frontier-buttons/include/frontier-buttons-hooks.php(468): wp_editor('', 'comment', Array) #7 /var/www/wpfrontier.com/public_html/wp-includes/class-wp-hook.php(324): frontier_buttons_comments_editor(Array) #8 /var/www/wpfrontier.com/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #9 /var/www/wpfrontier.com/public_html/wp-includes/comment-template.php(2681): apply_filters('comment_form_de...', Array) #10 /var/www/wpfrontier.com/public_html/wp-content/themes/weaver-xtreme/comments.php(89): comment_form() #11 /var/www/wpfrontier.com/public_html/wp-includes/comment-template.php(1631): require('/var/www/wpfron...') #12 /var/www/wpfrontier.com/public_html/wp-content/themes/weaver-xtreme/single.php(55): comments_template('/comments.php', true) #13 /var/www/wpfrontier.com/public_html/wp-includes/template-loader.php(113): include('/var/www/wpfron...') #14 /var/www/wpfrontier.com/public_html/wp-blog-header.php(19): require_once('/var/www/wpfron...') #15 /var/www/wpfrontier.com/public_html/index.php(17): require('/var/www/wpfron...') #16 {main} thrown in /var/www/wpfrontier.com/public_html/wp-content/plugins/frontier-buttons/include/frontier-buttons-hooks.php on line 395