Support » Plugin: Custom Post Type UI » Display 3 custom post on the homepage

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey Red,

    I use something similar to:

    $args = array( 'post_type' => 'events', 'posts_per_page' => 4 );
                                $loop = new WP_Query( $args );
                                while ( $loop->have_posts() ) : $loop->the_post();
    //please your display code here e.g. the_title();
    endwhile;

    Hope this helps.

    Plugin Author Michael Beckwith

    (@tw2113)

    redefinered the snippet that lord_dev posted will put you on the right path. The plugin itself doesn’t handle content display from the custom post types or taxonomies, it just registers them for you easily.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display 3 custom post on the homepage’ is closed to new replies.