Wordpress Thesis Theme Page Conditional Tags for Page Customization

by Darren

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…. }
}

Comments on this entry are closed.

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

Next post: You stomped the Towel and look at you now. When are they going to learn do not disrespect the Towel?