functions that return a single boolean value depending on what is currently being viewed

learn more… | top users | synonyms

-1
votes
2answers
104 views

Delete backgound for ID with conditional if statement

how can I delete a background for #main only on my posts. I know that I have to create a conditional if statement in my functions.php file with if (is_post()) but I'm just not sure how to write it.
13
votes
2answers
7k views

Check if we're on the wp-login page?

How can I check if the current page is wp-login.php or wp-signup.php ? Are there more elegant solutions than using $_SERVER['REQUEST_URI'] ?
26
votes
6answers
74k views

If is custom post type

I am looking for a way to test if a post is a custom post type. For example, in say the sidebar I can put code like this: if ( is_single() ) { // code here } I want code testing for only a ...