How to get the current WordPress Page Name?

A friend had the question tonight “How do i pull the pagename of the current page in wordpress?.” Turns out he wanted to display different padding around his paragraphs on different pages. Here is the solution I came up with: The code, which can be placed at the top of header.php in your theme. <?php [...]


File-icon plugin hack, sorted list.

Today, i installed the WordPress File Icons Plugin (v2.0) by  Roland Rust and discovered something really annoying whilst so great at the same time. I think the file icon plugin is a great idea, but contains 2 problems.