• I decided to modularize my code as I have a site with various non “blog” functions (to be revised at a later date). At the moment I’ve got a frickin’ FrankenSite on my hands though. 2 pages with the new “look”, 3 pages with the old look. Very “pro”.
    Anyway, where was I? Oh yeah, decided to modulerate (since we’re making up words) the code. The modularizination part worked fine, it is now . . .
    ‘<? include(‘head.php’); ?>
    a bunch of content
    <? include (‘foot.php’); ?>
    but I had it set up so on index.php it only includes the “updates” category. I don’t want to put this in the header because then it will only include “updates” on every page, or I’ll have to have several headers. (Hint: I want to be able to edit ONE header and ONE footer).
    I tried putting the “show category”* in the content part of the index and it just ignored it.
    So . . .what am I doing wrong?
    * = show category with:
    ‘<?php
    $blog = 1;
    if (!isset($cat)) {
    $cat = “1”;
    }

Viewing 4 replies - 1 through 4 (of 4 total)
  • it has to go BEFORE any call to the wp-blog-header.php file. presumably that’s in your head.php file ???? The reason being is because wp-blog-header.php is the part of WP that reads what was passed in to decipher what to display.
    TG

    Thread Starter TMo

    (@tmo)

    Yeah, that’s in my head.php. So I guess I have to make different headers or figure out a way to modularize that stuff.

    just put it right before the call to include wp-blog-header.php. even if it doesn’t get used, there’s no harm in including it.
    TG

    Thread Starter TMo

    (@tmo)

    Oh. Dur.
    There’s a reason you’re a Gnome and I am only a Monki.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Modularized Code – Show One Category?’ is closed to new replies.