title: Wordpress: List multiple post types on Index Page
body: <p>I am working with a child theme of the twothousand-seventeen-theme because I would like to change a few things.
  But I've got a problem in realizing this one idea:</p>
  
  <p>I have created a custom post type named 'video' but on the index-page (index.php) I want to show both types of posts, the default post-type and the custom 'video' post-type, ordered by publishing date.</p>
  
  <p>Since I really like the way the index.php features the latest posts a don't really want to create a custom archive (I guess I have to keep the get_template_part() function for that). All I wanna do is to show both post-types on the index page.</p>
  
  <pre><code>&lt;?php if ( have_posts() ) : ?&gt;
      &lt;header class="page-header"&gt;
          &lt;?php
              the_archive_title( '&lt;h1 class="page-title"&gt;', '&lt;/h1&gt;' );
              the_archive_description( '&lt;div class="taxonomy-description"&gt;', '&lt;/div&gt;' );
          ?&gt;
      &lt;/header&gt;&lt;!-- .page-header --&gt;
  &lt;?php endif; ?&gt;
  
  &lt;div id="primary" class="content-area"&gt;
      &lt;main id="main" class="site-main" role="main"&gt;
  
      &lt;?php
      if ( have_posts() ) : ?&gt;
          &lt;?php
          /* Start the Loop */
          while ( have_posts() ) : the_post();
  
              /*
               * Include the Post-Format-specific template for the content.
               * If you want to override this in a child theme, then include a file
               * called content-___.php (where ___ is the Post Format name) and that will be used instead.
               */
              get_template_part( 'template-parts/post/content', get_post_format() );
  
          endwhile;
  
          the_posts_pagination( array(
              'prev_text' =&gt; twentyseventeen_get_svg( array( 'icon' =&gt; 'arrow-left' ) ) . '&lt;span class="screen-reader-text"&gt;' . __( 'Previous page', 'twentyseventeen' ) . '&lt;/span&gt;',
              'next_text' =&gt; '&lt;span class="screen-reader-text"&gt;' . __( 'Next page', 'twentyseventeen' ) . '&lt;/span&gt;' . twentyseventeen_get_svg( array( 'icon' =&gt; 'arrow-right' ) ),
              'before_page_number' =&gt; '&lt;span class="meta-nav screen-reader-text"&gt;' . __( 'Page', 'twentyseventeen' ) . ' &lt;/span&gt;',
          ) );
  
      else :
  
          get_template_part( 'template-parts/post/content', 'none' );
  
      endif; ?&gt;
  </code></pre>
  
  <p>I've tried many ways but none of them worked for my idea...
  There's got to be a way to select both post-types in the wp-query and show them on the index page, ordered by publishing date and in the default content template.
  Like to select all posts (of post and video type) for the get_post_format() function (but i am not really into PHP)</p>
  
  <p>I appreciate any idea.</p>
  
  <p>Regards,
  Malte</p>