Category excluder no longer working
-
I run a promotional website for an actress at helengrace.co.uk, and use WP to power my news and articles sections, with a PHP include so that only posts in the relevant category appear on the relevant page (as opposed to displaying all posts in all categories).
Unfortunately, this doesn’t seem to be working since I upgraded to 2.5.1 (can’t remember which version I was running before but it was at least a year old). Now all the pages within the WP loop display a “sorry, no posts match your criteria” error message.
The code is this: `
<?php
/* Short and sweet */
if (!isset($cat)) {
$cat = “38”;
define(‘WP_USE_THEMES’, false);`The site started running on WP over 3 years ago, before many of WPs current functions existed (built-in themes and pages etc) so I’m well aware it could do with a sprucing up in general. But, until I have time to re-design it, is there any way I can fix it just so that the posts are at least displaying as and where they should be?
- The topic ‘Category excluder no longer working’ is closed to new replies.