/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
'post_type' => 'here_goes_my_post_type', 'category' => 'Here Goes My Category', )); ?> <?php while ( $posts->have_posts() ) : $posts->the_post(); ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <h2><?php the_title(); ?></h2> <?php the_content(); ?> </div> <?php endwhile; ?> <?php wp_reset_query(); ?>
Comments
