• I’m trying to use another layout for my site, and line by line, I’m copying over the appropriate php/WP tags into the new layout.
    But.
    I’ve got the_author, the_date, etc plugged in where they’re supposed to go, but the data isn’t showing up. It’s showing as ‘[] @ ‘ (in other words, the php isn’t being interpreted correctly.
    Now, since bloginfo is working elsewhere, I’m thinking it has something to do with this line:
    <?php if ($posts) { foreach ($posts as $post) { start_b2(); ?>
    Where does it need to be? I’ve tried various places in the <body> but it renders a blank page whenever it’s included anywhere (when it’s not included, I get the situation described in the 2nd paragraph.)
    Can anybody help?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Laughinglizard

    (@laughinglizard)

    That is the beginning of the b2 loop. It counts down the number of posts according to the variables set (no. of posts on main page, archives, category, etc.) There is also a closing curly brace for the b2 loop which indicates the end of the loop (where the php goes back to find another $post object) Find these two and put all of the b2template functions inside this loop (as they appear on the original template). That should fix it. If not, email me the php file and I will take a look at it for you.
    Peace.

    southerngal

    (@southerngal)

    Cena, I’m sorry you are having problems with this. I use .CSS for my layouts. Why are you messing with the code? Are you using a MT template? *LOL*
    Laughing Lizard is right about the b2 loop. ??

    Thread Starter Cena (a11n)

    (@cena)

    I know, I know…I’m supposed to just be changing the .css. The template is actually just a standard xhtml-compliant layout. It works fine until I get to the <body>, then everything breaks. *sigh* I suppose I should actually *learn* xhtml/css, rather than blindly fiddling around and hoping it works. ??
    LL: I’ll look for that, thanks. Try, try again…

    Thread Starter Cena (a11n)

    (@cena)

    LL: Okay, I got the closing braces thing figured out. However, I’m still having trouble with the layout (things like everything bunching up in one skinny column…stop laughing, SG! ?? ) and would appreciate the help if you’re still up for it. You can email me at cena AT cox-internet DOT com and I’ll send you the link/.php if you can help.
    thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Template tags and non-WP template.’ is closed to new replies.