Support » Fixing WordPress » is_post question

  • Resolved trubble


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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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…

    gotcha – i see what you mean.


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘is_post question’ is closed to new replies.