The is_singular() conditional tag check if the user is displaying a single post, a single page or an attachment, which are respectively check with is_single(), is_page() and is_attachment(). With these conditional tags come three usefull classes nested in the body tag: .single, .page or .attachment. But, no .singular classe to rule them all! Continue reading
Tag Archives: is_attachment()
No description for tag is_attachment(). Suggest the administrator to fill a helping blurb.
Two Conditional Tags with grouping scope
There are many Conditional Tags to deal with WordPress contexts. Some of these Conditional Tags groups several conditions. They works like «Catch them all» tags. It’s very handy. It avoid multiple loops when you test some conditions. Continue reading