• In my index file, I include my blog with PHP. But, all of the code after that include is gone. How can I change that? I have a footer that never shows up on my blog pages. (I need to keep it as an include, don’t ask about that. I just need to close the include and let the rest of my HTML/code show.)

Viewing 8 replies - 1 through 8 (of 8 total)
  • Well, if you include the “whole” blog into your index file (I assume this would be the main site of your site) then you have a lot of errors: you must have two head sections, two body elements and so one…
    Maybe there are better ways to do that if you let us know more details.

    Thread Starter Sparky

    (@sparky)

    I got rid of the blog css and header info., so it’s not things like 2 doc-types and such. my blog header is this:

    <link type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    <link type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    <link type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
    <link href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_get_archives('type=monthly&format=link'); ?>
    <?php //comments_popup_script(); // off by default ?>
    <?php wp_head(); ?>

    and my footer is <!--<?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->
    <?php wp_footer(); ?>

    so i don’t think it’s related to that, or is it?

    First of all. Don’t link a pw protected site to your name… it’s just annoying we can’t get anywhere by clicking and getting the error message.

    Since I have no idea how do you include that “header” and the “footer” and how do you include the blog(?)… I am confused here.

    Thread Starter Sparky

    (@sparky)

    im just fixing up some problems on my site, and it will be open soon. if you want, access it with username kiragave and password usaccess.

    i made a theme which is enabled called blank. it has no formatting or anything style related. i removed everything from the header/footer except the stuff above. then, i use a php include to include the blog in my page. but, the coding that comes after the include (footer/sidebar) won’t show up now.

    OK, I can access the site, but still confused.
    What exactly are you including? and how?
    If you include “the blog” why the header and footer doesn’t come with it? Where is the ‘bare’ blog that is installed in your main page?

    Thread Starter Sparky

    (@sparky)

    my public_html/index.php uses a php include (<?php include() ?>) to include my blog in the page. the blog uses a blank theme with the header and footer above. on public_html/index.php after the include, i have the include for my footer. but, this footer never shows up on the blog pages, only on non-wp pages.

    Getting a better idea 🙂
    Question: Are all the divs that WP is opening in the blog – closed in your non-WP footer?
    Because now you have several non-closed divs which could cause all the troubles you have.
    Just try to validate it and you’ll see.

    Thread Starter Sparky

    (@sparky)

    hmmm… i just figured it out, and there WAS a div that was open and messed it up. i just removed the div and it worked fine. thanks 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Blog included in page, but doesn’t allow HTML after’ is closed to new replies.