WordPress.org

Ready to get started?Download WordPress

Forums

need help pulling posts into a page (3 posts)

  1. jwood
    Member
    Posted 5 years ago #

    My goal is to be able to create a custom page that can pull headline & excerpt from category 14 and display. I have the code wanted, but i'm having a problem pulling just from category 14. Any help would be much appreciated.

    <div id="innerLeft">
    	<div id="OpinionHeader">
    	<h2>OPINION &amp; BLOGS</h2>
    	</div>
    
        <div id="innerContent">
    	<!-- start loop -->
    	<?php is_category('14'); if (have_posts()) : while (have_posts()) : the_post(); ?>
    	<div class="post">
    	<h2 class="archiveTitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  2. Justin Tadlock
    Member
    Posted 5 years ago #

  3. jwood
    Member
    Posted 5 years ago #

    yes thank you greenshady, as you can see, i've attempted to incorprate it and its not working out correctly. could you take a look at my code?

    jacob

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags