Support » Plugin: Projects by WooThemes » Add Dynamic List Items

  • Resolved megseoh

    (@megseoh)


    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/

Viewing 1 replies (of 1 total)
  • Thread Starter megseoh

    (@megseoh)

    Ended up using Advanced Custom Fields to display my projects pages.
    Was not able to configure the WooThemes Projects plugin in order to suit my needs & they were unhelpful b/c it’s a free plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Add Dynamic List Items’ is closed to new replies.