• Resolved cyb3rllama

    (@cyb3rllama)


    I am trying to use the WordPress HTML templates on all of my pages. On the very line of index.php, there is “$blog = 1;”.
    I have searched most of the core WP code and yet to locate what this variable does. Can someone enlighten me?
    Also, in future releases of WP, a simple one line comment could save a lot of headaches in dealing with such a prominent variable.

Viewing 2 replies - 1 through 2 (of 2 total)
  • n0ki

    (@n0ki)

    mhh….
    mhh….
    the first line of wp-locations.php:
    <?php $blog = 1; // enter your blog’s ID
    perhaps that is in preparation for an “multiple blog” feature ?
    and thats not all code that are exist but that not used. I found mutch of that stuff. Because i have my “template-hack” done so i analyse mutch of code. By the Way mutch of them not really clearly arranged.
    ___
    visit http://weblog.n0ki.de/ to see my template-hack in action !

    Thread Starter cyb3rllama

    (@cyb3rllama)

    Ah… excellent!
    I will just omit it from everything that isn’t an actual “blog” page. I’m tring to keep my regular pages separate from the /wordpress/ files, but use universal header and footer files so that all the meta tags and footer info is available on every page… whether it is part of the blog or not.
    And yes, I have noticed all the extra code as well and unclear arrangements. Other than that, it’s a great project. Hopefully 2.0 will clean a lot of that stuff up.
    Great template-hack!
    Thanks for the help!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘$blog = WTF?’ is closed to new replies.