Support » Fixing WordPress » Why isn't this working?

  • Resolved perthmetro

    (@perthmetro)


    display posts according to different categories using the same index.php template…

    This is place inside my loop

    <?php if( is_category('1') ) : ?>
    <h1>Perth <?php the_title(); ?> Limestone Rendering</h1>
    
    <?php elseif( is_category('7') ) : ?>
    <h1>Perth <?php the_title(); ?> Rendering</h1>
    
    <?php endif; ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Why isn't this working?’ is closed to new replies.