Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- query_posts( array(
- 'category_name' => 'notice',
- 'posts_per_page' => 1
- ) );
- while ( have_posts() ) : the_post();
- echo '<h1>','<a href="<?php the_permalink(); ?>">';
- the_permalink();
- the_title();
- echo '</a>','</h1>';
- echo '<p>';
- the_content();
- echo '</p>';
- endwhile;
- wp_reset_query();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement