• I upgraded to 1.5 recently, but it seems as though something has changed with the method that you use to show only one category (i.e. on index.php

    It used to be:

    ‘<?php $blog = 1;
    if (!isset($cat)) {
    $cat = “17”;
    }
    ?>

    Did this change? If so, how do I fix it? I read the codex and did some searches, but maybe I’m just missing something?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Did you place that in the index.php residing in the root directory of your blog? I’d also recommend this:

    <?php $blog = 1;
    if (!isset($_GET['cat'])) {
    $cat = "17";
    }
    ?>

    My 1.2 category exclusion rule seems broken in 1.5. Looking at the wiki it appears the category_ID tag has been “deprecated”.

    Am i totally screwed to make a category exclusion to the frontpage? For reference I’m working on this site where the “staff” tab is a page of things posted to a specific category that does not appear on the main page… that is till my otherwise painless upgrade.

    Thread Starter TMo

    (@tmo)

    Yeah, I checked those NM, but couldn’t really find what I was looking for.

    Thanks Kafkaesqui, sticking my old code in the root index.php worked. Wasn’t sure if you were/could/should supposed to modify that.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘1.5 – Show 1 Category On The Main Page?’ is closed to new replies.