You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
34 lines
1.1 KiB
<?php get_header(); ?>
|
|
<div hidden>
|
|
<h1><?php bloginfo( 'name' ); ?></h1>
|
|
<h2><?php bloginfo( 'description' ); ?></h2>
|
|
</div>
|
|
|
|
<main id="main">
|
|
<section class="section wrapper">
|
|
<?php
|
|
$args = array( 'post_type' => 'movies' );
|
|
$movies = new WP_Query( $args );
|
|
|
|
if ( $movies->have_posts() ) : while ( $movies->have_posts() ) : $movies->the_post();
|
|
?>
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
|
<header class="entry-header">
|
|
<h1 class="entry-title"><?php the_title(); ?></h1>
|
|
</header>
|
|
<div class="entry-content">
|
|
<?php the_content(); ?>
|
|
</div>
|
|
<div class="movie-meta">
|
|
<p><strong>Movie Title:</strong> <?php echo get_post_meta( get_the_ID(), 'movie_title', true ); ?></p>
|
|
</div>
|
|
</article>
|
|
<?php endwhile;
|
|
wp_reset_postdata();
|
|
else :
|
|
echo 'No Movies';
|
|
endif;
|
|
?>
|
|
</section>
|
|
</main>
|
|
<?php get_footer(); ?>
|