У вас есть форма в функции. Вы вызываете функцию где-нибудь?
Если вы не хотели, чтобы это было частью функции, переместите последнюю }
над отверстием <ol>
Итак, это должно выглядеть так (если вытащить его из функции)
<?php function make_user_feedback_form() {
global $wpdb;
global $current_user;
$ufUserID = $current_user->ID;
$ufResponses = serialize($_POST["responseFields"]);
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'updateFeedback' ) {
$ufDataUpdate = $wpdb->insert( 'wp_user_feedback', array( 'date' => current_time('mysql'), 'responses' => $ufResponses ) );
}
}
?>
<ol>
<form method="post">
<li>Question 01<br /><input type="text" id="responseFields[]" value="" /></li>
<li>Question 02<br /><input type="text" id="responseFields[]" value="" /></li>
<li><input name="submit" type="submit" id="submit" class="submit button" value="Send feedback" /></li>
<?php wp_nonce_field( 'updateFeedback' ); ?>
<input name="action" type="hidden" id="action" value="updateFeedback" />
</form>
</ol>
<?php
add_action('the_content','make_user_feedback_form');
?>