WordPress.org

Ready to get started?Download WordPress

Forums

page, post content (1 post)

  1. James
    Member
    Posted 1 year ago #

    Hi,

    How to write a code for the display the dependent content for page & post. For Ex:

    <header>
    if (is_page()){ //display the page content }
    else { //display the post content }
    <footer>

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by James
  • This topic is not a support question
  • WordPress version: 3.4.2