Check if post or page – Conditional Tags WordPress

by KishPress on September 25, 2011

There may be many occasions where you may need to check if the viewing page is a WordPress Post or a WordPress Page and do accordingly. To check this you can use the conditional tage is_page()

if(is_page()) {
   //do what ever you want
}

Related posts:

  1. Tags from previous posts show up on the new post – WordPress I feel this could be because of some bug from...
  2. How to get Shadow effect for the post titles on your WordPress Blog? You might have noticed the post titles of the blog...
  3. Adding pictures to a WordPress blog post? Adding pictures to a WordPress post is very simple. You...
  4. Top WordPress Plugins which you should not miss WordPress is a wonderful tool to manage your blog which...
  5. Free Version of Kish Twit Pro available at WordPress Plugin Directory I have released a free version of Kish Twit Pro...

Leave a Comment

Previous post:

Next post: