• I’m trying to create a custom page to pull posts from a specific category. I’ve tried to find the code but am not being so successful. Any help would be appreciated.

    Jacob

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter jwood

    (@jwood)

    <?php query_posts(“cat=14”); ?>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    …output data…
    <?php endwhile; else : endif; ?>

    is what i’m trying to do, but no luck.

    Thread Starter jwood

    (@jwood)

    i’m having trouble trying to get this, is there a code that can be like

    if category is 14, then query the last 5 articles.

    Thread Starter jwood

    (@jwood)

    Currently

    <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>

    ….

    goes in an inf. loop

    this is not exactly you need but will give you a direction
    [spam link removed]

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘page customization’ is closed to new replies.