Wordpress Thesis Theme Page Conditional Tags for Page Customization

by Darren on September 3, 2009

If you want to post certain information for a particular page or post in Wordpress or Thesis, you can use a conditional statement like the one listed below. The statement can be altered to perform whatever content you want and how that content is displayed on a particular page depending on how it matches with the condition you create.

For example, if you want to display something custom on the home page of your blog and something  different in your single posts you can use the statement below. Here is more information on conditional tags for customizing WordPress.

function custom_something() {
if (is_page()) { …dothis… }
elseif (is_single()) { …dothis… }
else { …dothis…. }
}

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • FriendFeed
  • Ping.fm
  • Reddit
  • StumbleUpon
  • Technorati
  • Twitter

Comments on this entry are closed.

Previous post: PPC Tactics That Could Pull Your ROI Out of the Gutter

Next post: Canoeing Antietam Creek September 5, 2009