WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Handle pages and post separately? (3 posts)

  1. paper-doll
    Member
    Posted 6 years ago #

    Hi!

    In my index.php file I want to handle posts and pages separately, for different looks. Is there something I can use, like "<?php if (is_page()) { ?>" to make some content available only on pages?

    Thanks,
    Karen

  2. BPartch
    Member
    Posted 6 years ago #

    You can make content appear on "pages" by adding it to the page.php file in your themes folder. Though yes there is a tag as you mentioned. http://codex.wordpress.org/Conditional_Tags

  3. paper-doll
    Member
    Posted 6 years ago #

    Thank you very much BPartch, I got it to work!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.