Filtering blog posts by category

Ok, with a bit more digging, it seems there are two things I can do:

  1. Use the Categories menu option, which will then make use of the archive.php template – nice and easy.

  2. Use the WP_Query() function to make a direct DB query for a particular category .. I think this is exactly what I want to do.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)