I’m trying to add extra info to my projects page using the existing hooks ‘projects_before_single_project_summary’ & ‘projects_after_single_project’. How can I set this up so that users can input multiple list items in the backend? Right now everything that’s entered just shows up as one list item. Here’s my code:
function display_quick_facts_field() {
global $post;
$facts = esc_attr( get_post_meta( $post->ID, '_facts', true ) );
echo '<div class="facts">' . '<h3>' . __( 'Quick Facts: ', 'projects' ) . '</h3>' . '<ul>' . '<li>'. $facts . '</li>' . '</ul>' . '</div>';
}
add_action( 'projects_before_single_project_summary', 'display_quick_facts_field', 10 );
https://wordpress.org/plugins/projects-by-woothemes/