WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Excerpts tips (3 posts)

  1. riteshskumar
    Member
    Posted 4 years ago #

    Hi All,

    I want a conditional show of excerpts on category listing.

    dummy code:-

    If category is video
    then show full post, // <?php the_content(); ?>
    else
    only excerpts. //<?php the_excerpt(); ?>

    I am very new to php. Please help me to construct this if conditoin.

    Blog in question is http://www.rashmi.net
    version - wp 2.9.2

    Rgds,
    RSK

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    <?php if( is_category{'Video') ) the_content();
    else the_excerpt();?>

    http://codex.wordpress.org/Conditional_Tags

  3. riteshskumar
    Member
    Posted 4 years ago #

    thanks esmi.

    it worked.

    Rgds,
    RSK

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.