Title: php includes making blog elements disappear&#8230;
Last modified: August 18, 2016

---

# php includes making blog elements disappear…

 *  [jennaction](https://wordpress.org/support/users/jennaction/)
 * (@jennaction)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/php-includes-making-blog-elements-disappear/)
 * i’m working on customizing a new theme for my site and everything was working
   just fine and dandy until i started adding my php includes to my ‘online now’
   and ‘counter’. when i add any includes, actually, in my side bar… it makes my
   blog screw up.
 * like, when i add my php include for my ‘online now’ it makes my comment plugger,‘
   previous posts’ and archives not show up over in my blog.
 * [http://action.nu/index2.php](http://action.nu/index2.php) is what i’m working
   on right now. if anyone can help me figure out what’s going on that’d be great.

Viewing 15 replies - 1 through 15 (of 27 total)

1 [2](https://wordpress.org/support/topic/php-includes-making-blog-elements-disappear/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/php-includes-making-blog-elements-disappear/page/2/?output_format=md)

 *  Thread Starter [jennaction](https://wordpress.org/support/users/jennaction/)
 * (@jennaction)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/php-includes-making-blog-elements-disappear/#post-353220)
 * anyone?
 *  [kickass](https://wordpress.org/support/users/kickass/)
 * (@kickass)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/php-includes-making-blog-elements-disappear/#post-353227)
 * Looks fine in firefox and IE6. Did you fix it already?
 *  Thread Starter [jennaction](https://wordpress.org/support/users/jennaction/)
 * (@jennaction)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/php-includes-making-blog-elements-disappear/#post-353228)
 * no, i just took it out…
    it’s in now, see how the comment plugger, blog navigation(
   at the bottom) and you can’t navigate through my archives in the drop down anymore…
   they’re all gone. everything disappears.
 * i don’t get it.
 * … i just noticed my comments disappear too. it says there’s no comments on the
   entry when there is…
    askl;gh. wtf.
 *  [kickass](https://wordpress.org/support/users/kickass/)
 * (@kickass)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/php-includes-making-blog-elements-disappear/#post-353232)
 * Is this how you’re doing your includes?
 * `<?php include ('leftcol.php'); ?>`
 * If not, maybe you should post some code here, then we can tell you better what’s
   going on.
 *  Thread Starter [jennaction](https://wordpress.org/support/users/jennaction/)
 * (@jennaction)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/php-includes-making-blog-elements-disappear/#post-353233)
 * yeah, that’s how i’m doing it.
    <?php include (‘/home/action/public_html/currently/
   current.php’); ?>
 * whenever i add any php include in my sidebar… it makes that stuff disappear in
   my blog.
 *  [kickass](https://wordpress.org/support/users/kickass/)
 * (@kickass)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/php-includes-making-blog-elements-disappear/#post-353234)
 * Oh joy. Are you using WP 2.0.x?
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/php-includes-making-blog-elements-disappear/#post-353235)
 * Hmmm. I don’t think you should be calling your include with the path. I think
   you should be calling it with the href. And you might have to use an absolute
   address….
 *  Thread Starter [jennaction](https://wordpress.org/support/users/jennaction/)
 * (@jennaction)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/php-includes-making-blog-elements-disappear/#post-353236)
 * like a web address?
    like, <?php include (‘[http://…&#8217](http://…&#8217););?
   > ?
 * that never works for me.
 * and i’m using version 2.0.1.
 *  [kickass](https://wordpress.org/support/users/kickass/)
 * (@kickass)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/php-includes-making-blog-elements-disappear/#post-353237)
 * Try this in your stylesheet:
 * `
    .clearA { overflow: hidden; clear:both; height:0; margin:0; font-size: 1px;
   line-height: 0; }
 * Then put this in your template. You might need to try it in a few places, but
   eventually it might help.
 * `<br class="clearA" />`
 * You might also wanna run your source code through the validator at [http://validator.w3.org](http://validator.w3.org)
   and it might show you a couple things that might be wanking your page. For starters
   you’re in quirks mode, no doctype. That’s throwing ALL browsers into tagsoup 
   mode so it could be anything causing this.
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/php-includes-making-blog-elements-disappear/#post-353238)
 * Well, then have you tried a relative address? I’ve never had to use the actual
   path, but sometimes depending on server setup it requires the absolute address
   and sometimes the relative one.
 *  Thread Starter [jennaction](https://wordpress.org/support/users/jennaction/)
 * (@jennaction)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/php-includes-making-blog-elements-disappear/#post-353239)
 * like, where exactly should i put that in my template? i’m clueless… i’ve never
   heard of that. haha.
 * vkaryl… that’s how i’ve always done my includes for as long as i’ve been doing
   them. they’ve always worked fine, until i tried using them in this wordpress 
   theme template.
 *  [kickass](https://wordpress.org/support/users/kickass/)
 * (@kickass)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/php-includes-making-blog-elements-disappear/#post-353240)
 * vkaryl, her path is from root, that should be working.
 * Anyway, I really want you to get this working, I LOVE this design. (shwa? *snort*)
 *  [kickass](https://wordpress.org/support/users/kickass/)
 * (@kickass)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/php-includes-making-blog-elements-disappear/#post-353242)
 * oh, jennaction, I think I’ve got a solution for you. Put the includes in a directory
   INSIDE your theme and name the directory “includes”. Then use this:
    `<?php include('
   <?php bloginfo('stylesheet_directory'); ?>/includes/current.php'); ?>`
 *  [kickass](https://wordpress.org/support/users/kickass/)
 * (@kickass)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/php-includes-making-blog-elements-disappear/#post-353243)
 * Re the br clearer. Put it before or after anything that isn’t working. So if 
   it’s the dropdown archive menu that isn’t working put the br clearer in the template
   before (or after) the call for that and see if it helps. WP 2.0 needs more clearing
   stuff in every template than any static html page ever did, it’s been driving
   me into a straitjacket.
 *  Thread Starter [jennaction](https://wordpress.org/support/users/jennaction/)
 * (@jennaction)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/php-includes-making-blog-elements-disappear/#post-353244)
 * i tried your idea of putting a folder inside my theme… and this is what happened:
   [http://action.nu/index2.php](http://action.nu/index2.php)
    the path didn’t play
   out right… but i can’t figure out how i’d make it work.
 * and thanks for your complements on the design. 🙂 it’s te first thing i’ve made
   in ages that i actually like. lol. and yeah, ‘shwa’ is something i say all the
   time. when sometime like excites me or like, ‘sweeet’=’shwa!’ whatever. haha.
   i dunno. lol.

Viewing 15 replies - 1 through 15 (of 27 total)

1 [2](https://wordpress.org/support/topic/php-includes-making-blog-elements-disappear/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/php-includes-making-blog-elements-disappear/page/2/?output_format=md)

The topic ‘php includes making blog elements disappear…’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 27 replies
 * 3 participants
 * Last reply from: [kickass](https://wordpress.org/support/users/kickass/)
 * Last activity: [20 years, 2 months ago](https://wordpress.org/support/topic/php-includes-making-blog-elements-disappear/page/2/#post-353702)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
