WordPress.org

Forums

[resolved] is_post question (3 posts)

  1. trubble
    Member
    Posted 7 years ago #

    Hi
    I've just installed wp 2.2

    what code do I need to put around the code that displays the date written/category something is in so that it only shows if it's a post rather than a Page?

    I was wondering if it's something to do with "is_post" but i'm not sure of the actual syntax/code to use....

    thank you!!

  2. moshu
    Member
    Posted 7 years ago #

    Nope.
    You need a Page template (the default is page.php) and edit out/delete whatever you don't need. If the file exist - WP knows it has to use it for displaying Pages.
    Save your index.php as page.php and edit it...

  3. trubble
    Member
    Posted 7 years ago #

    gotcha - i see what you mean.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic