Web hosting domain - WORDPRESS Context-sensitive information is the bee s knees Giving
WORDPRESS Context-sensitive information is the bee s knees Giving information to the user that is both contextually correct as well as useful should be the goal of any webmaster. A prime opportunity to do this is when a reader is browsing your category pages. You will find on Chris s site, where appropriate, a list of other resources specific to the cat egory you are browsing in the left-aligned column. Two prime examples are the Tutorial (www.chrisjdavis.org/category/tutorials) and Web Standards (www.chrisjdavis.org/ category/web-standards) categories. On each one, you find links to offsite resources. Now this is a very limited example of per category templates. If you want, you can change every aspect of the way the Page is displayed, load alternate stylesheets . . . anything! The sky s the limit. But think before you go crazy, people. So what does one need to do to tap in to the power of per category templates? Glad you asked! Let s write some code, shall we? After the previous discussion, creating these templates will be a piece of cake. We ll start by making sure we actually have a category.php file to begin with. You will find it very helpful to have a good layout with which to browse categories, and your readers will, too. If you don t have one, simply open a new file in your favorite text editor and enter this code to get you started with a category template:
WordPress database error: [Table 'armadillowebhosting_com_-_apache.wp_comments' doesn't exist]
SELECT * FROM wp_comments WHERE comment_post_ID = '280' AND comment_approved = '1' ORDER BY comment_date